summaryrefslogtreecommitdiff
path: root/src/op_mode/force_root-partition-auto-resize.sh
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2021-11-25 18:32:31 +0700
committerGitHub <noreply@github.com>2021-11-25 18:32:31 +0700
commit600ebc9cab1b95463d0a2453524fcf19fbbdfa07 (patch)
tree12595f9e917f59162b3f756cbeb44eb6d15adf3c /src/op_mode/force_root-partition-auto-resize.sh
parent0362519a16bac1455beed2aa9057ead458131485 (diff)
parent3f8fe7a43fec410545b3004878de0c023955ee49 (diff)
downloadvyos-1x-600ebc9cab1b95463d0a2453524fcf19fbbdfa07.tar.gz
vyos-1x-600ebc9cab1b95463d0a2453524fcf19fbbdfa07.zip
Merge pull request #1084 from andriiandrieiev/current
filesystem: T3946: GPT table fix after drive resize on Azure
Diffstat (limited to 'src/op_mode/force_root-partition-auto-resize.sh')
-rwxr-xr-xsrc/op_mode/force_root-partition-auto-resize.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/op_mode/force_root-partition-auto-resize.sh b/src/op_mode/force_root-partition-auto-resize.sh
index 4f13e3e03..b39e87560 100755
--- a/src/op_mode/force_root-partition-auto-resize.sh
+++ b/src/op_mode/force_root-partition-auto-resize.sh
@@ -44,7 +44,13 @@ fi
#
# Resize the partition and grow the filesystem.
#
+# "print" and "Fix" directives were added to fix GPT table if it corrupted after virtual drive extension.
+# If GPT table is corrupted we'll get Fix/Ignore dialogue after "print" command.
+# "Fix" will be the answer for this dialogue.
+# If GPT table is fine and no auto-fix dialogue appeared the directive "Fix" simply will print parted utility help info.
parted -m ${ROOT_DEV} ---pretend-input-tty > /dev/null 2>&1 <<EOF
+print
+Fix
resizepart
${ROOT_PART_NUM}
Yes