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