summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--types.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/types.nix b/types.nix
index 555b483..836a7fb 100644
--- a/types.nix
+++ b/types.nix
@@ -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))}
'';
};