mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
Merge pull request #40 from moduon/refresh-after-partitioning
fix: mkfs randomly not detecting just partitioned device
This commit is contained in:
1 file changed
+2
@@ -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))}
|
||||
'';
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user