diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-11-04 18:46:28 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-11-04 18:46:28 -0600 |
commit | e224416d092e2c9128bbd7c895a4093e048d0eba (patch) | |
tree | cb4bca1472ab2a4f756328e472ffddbb1aea2111 /hscript/disk_lvm.cc | |
parent | 8fef10fbeefd8ce8fe37c16494b40935650e09a0 (diff) | |
download | horizon-e224416d092e2c9128bbd7c895a4093e048d0eba.tar.gz horizon-e224416d092e2c9128bbd7c895a4093e048d0eba.tar.bz2 horizon-e224416d092e2c9128bbd7c895a4093e048d0eba.tar.xz horizon-e224416d092e2c9128bbd7c895a4093e048d0eba.zip |
hscript: Conditionalise more code under HAS_INSTALL_ENV
Diffstat (limited to 'hscript/disk_lvm.cc')
-rw-r--r-- | hscript/disk_lvm.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hscript/disk_lvm.cc b/hscript/disk_lvm.cc index 98ff5c1..70e1ba2 100644 --- a/hscript/disk_lvm.cc +++ b/hscript/disk_lvm.cc @@ -167,6 +167,7 @@ bool LVMGroup::test_pv(ScriptOptions) const { #endif /* HAS_INSTALL_ENV */ } +#ifdef HAS_INSTALL_ENV /*! Determine if a named Volume Group currently exists on a LVM PV. * @param vg The name of the Volume Group. * @param pv The path to the LVM physical volume. @@ -209,6 +210,7 @@ bool does_vg_exist_on_pv(const std::string &vg, const std::string &pv, free(buf); return success; } +#endif /* HAS_INSTALL_ENV */ bool LVMGroup::execute(ScriptOptions opts) const { output_info("installfile:" + std::to_string(line), |