diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-20 00:22:18 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-20 00:22:18 -0500 |
commit | d01890078c281453db8d5fc8ea7c082d0ce9782b (patch) | |
tree | 90454660cd165760bf063c672b60188fe31606f6 /hscript/disk.cc | |
parent | 1fa3717743c217bb3dbe643a37a7ba96b5ff0ebd (diff) | |
download | horizon-d01890078c281453db8d5fc8ea7c082d0ce9782b.tar.gz horizon-d01890078c281453db8d5fc8ea7c082d0ce9782b.tar.bz2 horizon-d01890078c281453db8d5fc8ea7c082d0ce9782b.tar.xz horizon-d01890078c281453db8d5fc8ea7c082d0ce9782b.zip |
hscript: Finish splitting install env code
Diffstat (limited to 'hscript/disk.cc')
-rw-r--r-- | hscript/disk.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hscript/disk.cc b/hscript/disk.cc index 9d700dd..5d3112f 100644 --- a/hscript/disk.cc +++ b/hscript/disk.cc @@ -47,6 +47,7 @@ bool DiskId::validate(ScriptOptions options) const { /* We only validate if running in an Installation Environment. */ if(!options.test(InstallEnvironment)) return true; +#ifdef HAS_INSTALL_ENV /* Unlike 'mount', 'diskid' *does* require that the block device exist * before installation begins. This test is always valid. */ struct stat blk_stat; @@ -62,6 +63,7 @@ bool DiskId::validate(ScriptOptions options) const { "diskid: " + _block + " is not a valid block device"); return false; } +#endif /* HAS_INSTALL_ENV */ return true; } |