mirror of
https://github.com/nix-community/disko.git
synced 2026-12-03 14:33: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;
|
} cleanedTopLevel.disko.devices.disk;
|
||||||
in
|
in
|
||||||
cleanedTopLevel // {
|
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 // {
|
disko.devices = cleanedTopLevel.disko.devices // {
|
||||||
disk = preparedDisks.disks;
|
disk = preparedDisks.disks;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user