diff options
author | Andrii <85483797+andriiandrieiev@users.noreply.github.com> | 2021-11-25 13:18:07 +0200 |
---|---|---|
committer | Andrii <85483797+andriiandrieiev@users.noreply.github.com> | 2021-11-25 14:26:57 +0200 |
commit | 1c72a0ebb69ccdffcf33f917359e3da888f8db38 (patch) | |
tree | 903467735241cff7acdf89a2033393b8fef0b2b0 /src/op_mode | |
parent | 86924ce3727aa7fe5caca248792874d221ae65cf (diff) | |
download | vyos-1x-1c72a0ebb69ccdffcf33f917359e3da888f8db38.tar.gz vyos-1x-1c72a0ebb69ccdffcf33f917359e3da888f8db38.zip |
filesystem: T3946: GPT table fix after disk resize
Diffstat (limited to 'src/op_mode')
-rwxr-xr-x | src/op_mode/force_root-partition-auto-resize.sh | 6 |
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 |