resize-rootfs: wait for partition table to reload
partprobe triggers reloading partition table, but apparently it isn't guaranteed udev re-create device nodes at the time it finishes. This may lead to /dev/mapper/dmroot pointing to nowhere. Fix this by calling udevadm settle after reloading partition table.
This commit is contained in:
parent
2dbdb1e66f
commit
2dcaebd110
@ -13,6 +13,7 @@ case "$(stat -Lc %t:%T /dev/mapper/dmroot)" in
|
||||
# and reload partition table; prefer partprobe over blockdev
|
||||
# --rereadpt, as it works on mounted partitions
|
||||
partprobe /dev/xvda
|
||||
udevadm settle
|
||||
;;
|
||||
ca:*)
|
||||
echo "Unsupported partition layout, resize it manually" >&2
|
||||
|
Loading…
Reference in New Issue
Block a user