diff options
author | Zach Marano <zmarano@google.com> | 2019-07-03 16:12:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-03 16:12:11 -0700 |
commit | 962396a22d1564e687cac0779c78c05952e6d572 (patch) | |
tree | 37684958ae5043ecb746fd240e0854bdecd9e9de | |
parent | f9425830058f32c5eee56ed7cb431056da2ea1e6 (diff) | |
download | google-compute-image-packages-962396a22d1564e687cac0779c78c05952e6d572.tar.gz |
Disk expand: Make sure the disk has settled before continuing. (#799)
-rwxr-xr-x | packages/gce-disk-expand/src/expandfs-lib.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/gce-disk-expand/src/expandfs-lib.sh b/packages/gce-disk-expand/src/expandfs-lib.sh index 4bad47a..69f67ed 100755 --- a/packages/gce-disk-expand/src/expandfs-lib.sh +++ b/packages/gce-disk-expand/src/expandfs-lib.sh @@ -111,6 +111,8 @@ parted_needresize() { return 1 fi + udevadm settle + if ! printf "$out" | sed '$!d' | grep -q "^${partnum}:"; then echo "Root partition is not final partition on disk. Not resizing." return 1 |