fix: mkfs randomly not detecting just partitioned device

@moduon MT-1248
This commit is contained in:
Jairo Llopis 2022-09-12 11:32:35 +01:00
parent 0d3295fcff
commit 48e250464d
No known key found for this signature in database
GPG Key ID: E47E3BE44B940490

View File

@ -464,6 +464,8 @@ rec {
${concatMapStringsSep "" (flag: ''
parted -s ${dev} set ${toString config.index} ${flag} on
'') config.flags}
# ensure further operations can detect new partitions
udevadm trigger --subsystem-match=block; udevadm settle
${optionalString (!isNull config.content) (config.content._create (diskoLib.deviceNumbering dev config.index))}
'';
};