summaryrefslogtreecommitdiff
path: root/hscript/disk_lvm.cc
diff options
context:
space:
mode:
Diffstat (limited to 'hscript/disk_lvm.cc')
-rw-r--r--hscript/disk_lvm.cc2
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),