diff options
author | Zach Marano <zmarano@google.com> | 2020-04-20 12:38:45 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-20 12:38:45 -0700 |
commit | 84bb53e9e5944a2bb5d18ea77608af264c85c4c7 (patch) | |
tree | 5f71b558d9fbdf3ebc7ff42a0e9a73f97bfa243c | |
parent | dad8239611d85fc697ff0905d60f00cc66ad747d (diff) | |
download | google-compute-image-packages-84bb53e9e5944a2bb5d18ea77608af264c85c4c7.tar.gz |
Fix disk expand for EL7 race conditions. (#888)
-rwxr-xr-x | packages/gce-disk-expand/src/usr/share/dracut/modules.d/50expand_rootfs/expand_rootfs.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/gce-disk-expand/src/usr/share/dracut/modules.d/50expand_rootfs/expand_rootfs.sh b/packages/gce-disk-expand/src/usr/share/dracut/modules.d/50expand_rootfs/expand_rootfs.sh index 62d7171..f907772 100755 --- a/packages/gce-disk-expand/src/usr/share/dracut/modules.d/50expand_rootfs/expand_rootfs.sh +++ b/packages/gce-disk-expand/src/usr/share/dracut/modules.d/50expand_rootfs/expand_rootfs.sh @@ -54,6 +54,9 @@ main() { fi kmsg "Resizing disk ${rootdev}" + # Reset the counter for failed job starts to prevent overrunning the default + # start burst limits for systemd-fsck-root.service. + systemctl reset-failed # First, move the secondary GPT to the end. if ! out=$(sgdisk_fix_gpt "$disk"); then |