You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
always removes last character from the device name, no matter if it is a partition number or not. Should strip only all trailing number. Error from log:
Jul 12 10:02:55 ubuntu one-contextd[457]: Script loc-05-grow-rootfs: Starting ...
Jul 12 10:02:55 ubuntu one-contextd[486]: Script loc-05-grow-rootfs output: FAILED: /dev/roo: does not exist
Jul 12 10:02:55 ubuntu one-contextd[486]: resize2fs 1.42.13 (17-May-2015)
Jul 12 10:02:55 ubuntu one-contextd[486]: open: No such file or directory while opening /dev/root
Jul 12 10:02:55 ubuntu one-contextd[487]: Script loc-05-grow-rootfs: Finished with exit code 1
The text was updated successfully, but these errors were encountered:
There are still too many assumptions in this, even after your suggestions for improvement.
My root fs lives on /dev/mapper/LVM0-root, which readlink translates to /dev/dm-0, which breaks the assumption that deleting the trailing digit gets you a valid $DISK.
My /etc/fstab has UUIDs in it, which breaks the "grep mapper" LVM detection.
The "parted $DISK print" command hangs on interactive user input:
parted /dev/vda print
Warning: Not all of the space available to /dev/vda appears to be used, you can fix the GPT to use all of the space (an extra 12582912 blocks) or continue with the current setting?
Fix/Ignore?
Identified problems:
It would be good to start using
findmnt
instead, e.g.:This part:
addon-context-linux/src/etc/one-context.d/loc-05-grow-rootfs
Line 16 in 2908e04
always removes last character from the device name, no matter if it is a partition number or not. Should strip only all trailing number. Error from log:
The text was updated successfully, but these errors were encountered: