mirror of
https://github.com/nix-community/disko.git
synced 2024-09-11 06:25:33 +03:00
Merge pull request #40 from moduon/refresh-after-partitioning
fix: mkfs randomly not detecting just partitioned device
This commit is contained in:
commit
c3da181593
@ -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…
Reference in New Issue
Block a user