mirror of
https://github.com/nix-community/disko.git
synced 2024-11-05 06:04:20 +03:00
types.mdadm: zap raid after creation
This commit is contained in:
parent
715c211dd7
commit
96815862d8
@ -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}
|
||||
'';
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user