From 48e250464db3abe707312390cafb7f57376ebc2f Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Mon, 12 Sep 2022 11:32:35 +0100 Subject: fix: mkfs randomly not detecting just partitioned device @moduon MT-1248 --- types.nix | 2 ++ 1 file changed, 2 insertions(+) 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))} ''; }; -- cgit v1.2.3