gpt: trigger udev after marking hybrid mbr partitions as bootable

Even though we don't depend on the MBR bootable flag in the following
steps, not running udevadm trigger and waiting for settle can cause
/dev/disk/by-partlabel entries to be absent when formatting filesystems
immediately after modifying the partition table.
This commit is contained in:
Edwin Mackenzie-Owen authored and Jörg Thalheim committed 2025-10-31 08:24:29 +00:00
1 parent 3a9450b26e
commit fec5efebfc
1 file changed
+2
+2
View File
@@ -229,6 +229,8 @@ in
''}
${lib.optionalString hp.config.mbrBootableFlag ''
sfdisk --label-nested dos --activate "${parent.device}" ${(toString partition.config._index)}
udevadm trigger --subsystem-match=block
udevadm settle --timeout 120
''}
'';
};