Properly filter a possible lack of "grub.device", in case of using only "grub.devices".
svn path=/nixos/trunk/; revision=33009
This commit is contained in:
parent
3c0fdaf877
commit
9e980235bd
@ -171,10 +171,12 @@ let
|
||||
if config.boot.loader.grub.enable
|
||||
then (builtins.parseDrvName config.system.build.grub.name).version
|
||||
else "";
|
||||
grubDevices = let
|
||||
grubDevices = with pkgs.lib; let
|
||||
wrapQuotes = s: "\"" + s + "\"";
|
||||
in map wrapQuotes ([ config.boot.loader.grub.device ] ++
|
||||
config.boot.loader.grub.devices);
|
||||
allDevices = [ config.boot.loader.grub.device ] ++
|
||||
config.boot.loader.grub.devices;
|
||||
definedDevices = filter (s: s != "") allDevices;
|
||||
in map wrapQuotes definedDevices;
|
||||
configurationName = config.boot.loader.grub.configurationName;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user