types.mdadm: zap raid after creation

This commit is contained in:
lassulus authored and mergify[bot] committed 2023-07-19 19:07:40 +00:00
1 parent 715c211dd7
commit 96815862d8
1 file changed
+2
+2
View File
@@ -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}
'';
};