From 84bb53e9e5944a2bb5d18ea77608af264c85c4c7 Mon Sep 17 00:00:00 2001 From: Zach Marano Date: Mon, 20 Apr 2020 12:38:45 -0700 Subject: Fix disk expand for EL7 race conditions. (#888) --- .../src/usr/share/dracut/modules.d/50expand_rootfs/expand_rootfs.sh | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.1