create_disk: Sprinkle on some `udevadm settle`
Blind attempt to help with
Basically, let's ensure we synchronize with udev after each
time we create a filesystem, to avoid any races with re-probing.
@@ -185,6 +185,8 @@ case "${bootfs}" in
*) echo "Unhandled bootfs: ${bootfs}" 1>&2; exit 1 ;;
esac
mkfs.ext4 ${bootargs} "${disk}${BOOTPN}" -L boot -U "${bootfs_uuid}"
+udevtrig
+
if [ ${EFIPN:+x} ]; then
mkfs.fat "${disk}${EFIPN}" -n EFI-SYSTEM
# BIOS boot partition has no FS; it's for BIOS GRUB
@@ -214,6 +216,7 @@ case "${rootfs_type}" in
exit 1
;;
esac
+udevtrig
# since we normally run in supermin container and we need
# support parallel runs, use /tmp
