summaryrefslogtreecommitdiff
path: root/hscript
diff options
context:
space:
mode:
Diffstat (limited to 'hscript')
-rw-r--r--hscript/meta.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/hscript/meta.cc b/hscript/meta.cc
index 75f4ca1..e42925e 100644
--- a/hscript/meta.cc
+++ b/hscript/meta.cc
@@ -760,8 +760,12 @@ bool Bootloader::execute() const {
} else if(arch == "aarch64") {
method = "grub-efi";
} else if(arch == "x86_64" || arch == "pmmx") {
- if(fs::exists("/sys/firmware/efi")) method = "grub-efi";
- else method = "grub-bios";
+#ifdef HAS_INSTALL_ENV
+ if(fs::exists("/sys/firmware/efi")) {
+ method = "grub-efi";
+ } else
+#endif
+ method = "grub-bios";
} else {
output_error(pos, "bootloader: no default for architecture", arch);
return false;