libTests prepareDisks: set grub.devices to nodev if empty

This commit is contained in:
lassulus committed 2023-07-20 19:03:26 +02:00
1 parent 7e2a3475f0
commit 2b728ffe02
1 file changed
+1 -1
+1 -1
View File
@@ -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;
};