From 66c73da5f9fd5939f691ee17f93e7689ccaa5af2 Mon Sep 17 00:00:00 2001 From: Thomas Strobel Date: Sat, 18 Apr 2015 15:31:23 +0200 Subject: Fix grub for "nodev" targets. --- nixos/modules/system/boot/loader/grub/install-grub.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nixos') 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" } } -- cgit 1.4.1