types.mdadm: zap raid after creation

This commit is contained in:
lassulus 2023-07-15 18:49:49 +02:00 committed by mergify[bot]
parent 715c211dd7
commit 96815862d8

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}
'';
};