mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 21:13:28 +01:00
libTests prepareDisks: set grub.devices to nodev if empty
This commit is contained in:
1 parent
7e2a3475f0
commit
2b728ffe02
1 file changed
+1
-1
+1
-1
@@ -28,7 +28,7 @@ let
|
||||
} cleanedTopLevel.disko.devices.disk;
|
||||
in
|
||||
cleanedTopLevel // {
|
||||
boot.loader.grub.devices = preparedDisks.grub-devices;
|
||||
boot.loader.grub.devices = if (preparedDisks.grub-devices != []) then preparedDisks.grub-devices else [ "nodev" ];
|
||||
disko.devices = cleanedTopLevel.disko.devices // {
|
||||
disk = preparedDisks.disks;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user