summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorThomas Strobel <ts468@cam.ac.uk>2015-04-18 15:31:23 +0200
committerThomas Strobel <ts468@cam.ac.uk>2015-04-18 19:22:25 +0200
commit66c73da5f9fd5939f691ee17f93e7689ccaa5af2 (patch)
treec42b156666323cd1cf737308bb4278563bdf9340 /nixos
parentec10a5a67540ecd123fcffa23eaf6774b6507c88 (diff)
downloadnixlib-66c73da5f9fd5939f691ee17f93e7689ccaa5af2.tar
nixlib-66c73da5f9fd5939f691ee17f93e7689ccaa5af2.tar.gz
nixlib-66c73da5f9fd5939f691ee17f93e7689ccaa5af2.tar.bz2
nixlib-66c73da5f9fd5939f691ee17f93e7689ccaa5af2.tar.lz
nixlib-66c73da5f9fd5939f691ee17f93e7689ccaa5af2.tar.xz
nixlib-66c73da5f9fd5939f691ee17f93e7689ccaa5af2.tar.zst
nixlib-66c73da5f9fd5939f691ee17f93e7689ccaa5af2.zip
Fix grub for "nodev" targets.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/system/boot/loader/grub/install-grub.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/system/boot/loader/grub/install-grub.pl b/nixos/modules/system/boot/loader/grub/install-grub.pl
index 2ef1fca19835..81009e9fb821 100644
--- a/nixos/modules/system/boot/loader/grub/install-grub.pl
+++ b/nixos/modules/system/boot/loader/grub/install-grub.pl
@@ -468,8 +468,8 @@ sub getEfiTarget {
         if ($grubTargetEfi eq "") { die }
         else {return "only" }
     } else {
-        # at least one grub target has to be given
-        die
+        # prevent an installation if neither grub nor grubEfi is given
+        return "neither"
     }
 }