mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 21:13:28 +01:00
mdadm: run sgdisk before partprobe
This commit is contained in:
1 parent
5b7c6aafff
commit
e5874ca3ea
1 file changed
+1
-1
+1
-1
@@ -43,11 +43,11 @@
|
||||
--force \
|
||||
--homehost=any \
|
||||
"''${disk_devices[@]}"
|
||||
partprobe /dev/md/${config.name}
|
||||
udevadm trigger --subsystem-match=block
|
||||
udevadm settle
|
||||
# for some reason mdadm devices spawn with an existing partition table, so we need to wipe it
|
||||
sgdisk --zap-all /dev/md/${config.name}
|
||||
partprobe /dev/md/${config.name}
|
||||
fi
|
||||
${lib.optionalString (config.content != null) config.content._create}
|
||||
'';
|
||||
|
||||
Reference in new issue
Block a user