grub-config.xml: handle a null font

wip/yesman
Graham Christensen 6 years ago
parent 23bfa472ad
commit 52de38f5f4
No known key found for this signature in database
GPG Key ID: ACA1C1D120C83D5C
  1. 5
      nixos/modules/system/boot/loader/grub/grub.nix

@ -64,9 +64,10 @@ let
)) + ":" + (makeSearchPathOutput "bin" "sbin" [
pkgs.mdadm pkgs.utillinux
]);
font = if lib.last (lib.splitString "." cfg.font) == "pf2"
font = if cfg.font == null then ""
else (if lib.last (lib.splitString "." cfg.font) == "pf2"
then cfg.font
else "${convertedFont}";
else "${convertedFont}");
});
bootDeviceCounters = fold (device: attr: attr // { "${device}" = (attr."${device}" or 0) + 1; }) {}

Loading…
Cancel
Save