mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 21:13:28 +01:00
types.mdadm: zap raid after creation
This commit is contained in:
1 parent
715c211dd7
commit
96815862d8
1 file changed
+2
@@ -44,6 +44,8 @@
|
||||
"''${disk_devices[@]}"
|
||||
udevadm trigger --subsystem-match=block
|
||||
udevadm settle
|
||||
# for some reason mdadm devices spwan with an existing partition table, so we need to wipe it
|
||||
sgdisk --zap-all /dev/md/${config.name}
|
||||
${lib.optionalString (config.content != null) config.content._create}
|
||||
'';
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user