diff options
author | Jairo Llopis <yajo.sk8@gmail.com> | 2022-09-12 11:32:35 +0100 |
---|---|---|
committer | Jairo Llopis <yajo.sk8@gmail.com> | 2022-09-12 11:32:35 +0100 |
commit | 48e250464db3abe707312390cafb7f57376ebc2f (patch) | |
tree | 8c4c832933eba27fae3211bb2c43eec4163a49ee | |
parent | 0d3295fcffd67af667296ca20b306dd306a9bd28 (diff) |
fix: mkfs randomly not detecting just partitioned device
@moduon MT-1248
-rw-r--r-- | types.nix | 2 |
1 files changed, 2 insertions, 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))} ''; }; |