Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Growfs fails on Debian 11 with btrfs #22

Open
remyzandwijk opened this issue Dec 7, 2022 · 0 comments
Open

Growfs fails on Debian 11 with btrfs #22

remyzandwijk opened this issue Dec 7, 2022 · 0 comments
Assignees
Labels
category: context linux Linux OS contextualization packages community Issue created by OpenNebula Community status: pending Issue needs to be processed by the team type: bug Something isn't working

Comments

@remyzandwijk
Copy link

The script loc-05-grow-rootsfs fails on a vanilla install of Debian 11 with btrfs. /var/log/messages:

Dec 7 11:38:27 debian-BASE one-contextd[1178]: Script loc-05-grow-rootfs output: GROWFS: No such mountpoint: /

The root filesystem in /proc/mounts looks like this:

root@debian-BASE:~# grep btrfs /proc/mounts
/dev/vda1 / btrfs rw,relatime,space_cache,subvolid=256,subvol=/@rootfs 0 0

Note the subvol=/@rootfs part.

The script fails due to this block of code:

MOUNT_LINE=$(\
        if [ -e /proc/mounts ] ; then \
            cat /proc/mounts ; \
        else \
            cat /etc/mtab ; \
        fi | awk -v grow_fs="${_FS}" '
            {if (($0 !~ /rootfs/) && ($2 == grow_fs)) print $1, $3;}
        ')

MOUNT_LINE is empty due to the fact that lines containing 'rootfs' are filtered out, causing the partition which holds the rootfs cannot be found.

No patch attached since I am not sure why the rootfs lines are being filtered out.

@remyzandwijk remyzandwijk changed the title Grows fails on Debian 11 with btrfs Growfs fails on Debian 11 with btrfs Dec 7, 2022
@rsmontero rsmontero added type: bug Something isn't working status: pending Issue needs to be processed by the team community Issue created by OpenNebula Community labels Dec 20, 2022
@rsmontero rsmontero transferred this issue from OpenNebula/addon-context-linux Jan 16, 2024
@rsmontero rsmontero added the category: context linux Linux OS contextualization packages label Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: context linux Linux OS contextualization packages community Issue created by OpenNebula Community status: pending Issue needs to be processed by the team type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants