Merge pull request #270 from ospalax/b-266-fix-growfs-btrfs

B #266: Fix GROW_ROOTFS and GROW_FS on btrfs
pull/271/head
Petr Ospalý 2 years ago committed by GitHub
commit 48a469a019
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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"

Loading…
Cancel
Save