mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-11 23:50:05 +01:00
fix: mkfs randomly not detecting just partitioned device
@moduon MT-1248
This commit is contained in:
parent
0d3295fcff
commit
48e250464d
1 changed files with 2 additions and 0 deletions
|
|
@ -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))}
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue