summary refs log tree commit diff
path: root/nixos/modules/system/boot/loader
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2015-02-08 22:31:14 -0500
committerShea Levy <shea@shealevy.com>2015-02-08 22:31:14 -0500
commit24c0844cfb43003625d0a0d5bdfc75284ce79dc7 (patch)
tree8d8989ba7803000a20ce7c8db8cb441390288a0a /nixos/modules/system/boot/loader
parent0d80ab2dd971858f2070db4223b7ceee2168876e (diff)
downloadnixlib-24c0844cfb43003625d0a0d5bdfc75284ce79dc7.tar
nixlib-24c0844cfb43003625d0a0d5bdfc75284ce79dc7.tar.gz
nixlib-24c0844cfb43003625d0a0d5bdfc75284ce79dc7.tar.bz2
nixlib-24c0844cfb43003625d0a0d5bdfc75284ce79dc7.tar.lz
nixlib-24c0844cfb43003625d0a0d5bdfc75284ce79dc7.tar.xz
nixlib-24c0844cfb43003625d0a0d5bdfc75284ce79dc7.tar.zst
nixlib-24c0844cfb43003625d0a0d5bdfc75284ce79dc7.zip
Fix grub on nodev installs
Diffstat (limited to 'nixos/modules/system/boot/loader')
-rw-r--r--nixos/modules/system/boot/loader/grub/grub.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/loader/grub/grub.nix b/nixos/modules/system/boot/loader/grub/grub.nix
index ed2249a4ba7a..0cfef7df1972 100644
--- a/nixos/modules/system/boot/loader/grub/grub.nix
+++ b/nixos/modules/system/boot/loader/grub/grub.nix
@@ -29,7 +29,7 @@ let
   grubConfig = pkgs.writeText "grub-config.xml" (builtins.toXML
     { splashImage = f config.boot.loader.grub.splashImage;
       grub = f grub;
-      grubTarget = f grub.grubTarget;
+      grubTarget = f (grub.grubTarget or "");
       shell = "${pkgs.stdenv.shell}";
       fullVersion = (builtins.parseDrvName realGrub.name).version;
       grubEfi = f grubEfi;