mirror of
https://github.com/nix-community/disko.git
synced 2024-11-04 05:44:29 +03:00
fix: mkfs randomly not detecting just partitioned device
@moduon MT-1248
This commit is contained in:
parent
0d3295fcff
commit
48e250464d
@ -464,6 +464,8 @@ rec {
|
|||||||
${concatMapStringsSep "" (flag: ''
|
${concatMapStringsSep "" (flag: ''
|
||||||
parted -s ${dev} set ${toString config.index} ${flag} on
|
parted -s ${dev} set ${toString config.index} ${flag} on
|
||||||
'') config.flags}
|
'') 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))}
|
${optionalString (!isNull config.content) (config.content._create (diskoLib.deviceNumbering dev config.index))}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user