From e224416d092e2c9128bbd7c895a4093e048d0eba Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Mon, 4 Nov 2019 18:46:28 -0600 Subject: hscript: Conditionalise more code under HAS_INSTALL_ENV --- hscript/disk_lvm.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hscript/disk_lvm.cc') 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), -- cgit v1.2.3-60-g2f50