diff --git a/lib/types/mdadm.nix b/lib/types/mdadm.nix index 1564e17..65f1715 100644 --- a/lib/types/mdadm.nix +++ b/lib/types/mdadm.nix @@ -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} '';