From 19a280c91b54e143751dea4bdba547a6e897dc96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Ospal=C3=BD?= Date: Thu, 26 May 2022 11:54:01 +0200 Subject: [PATCH] B #266: Fix GROW_ROOTFS and GROW_FS on btrfs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Petr OspalĂ˝ --- src/etc/one-context.d/loc-05-grow-rootfs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/etc/one-context.d/loc-05-grow-rootfs b/src/etc/one-context.d/loc-05-grow-rootfs index 7b5aff5..db3e04a 100755 --- a/src/etc/one-context.d/loc-05-grow-rootfs +++ b/src/etc/one-context.d/loc-05-grow-rootfs @@ -224,7 +224,8 @@ for _FS in ${GROW_FS} ; do LVM=$(lvdisplay "${DEVICE}" 2>/dev/null | wc -l) if [ "$LVM" -eq 0 ]; then - DEVICE=$(findmnt -ln -o SOURCE "$_FS") + # findmnt support --nofsroot since util-linux v2.19.1 + DEVICE=$(findmnt -ln -o SOURCE --nofsroot "$_FS") DISK=$(echo "$DEVICE" | sed 's/[0-9]*$//') PARTITION=$(echo "$DEVICE" | sed "s|^$DISK||") LVM="no"