pentoo-updater: more zfs detection

zfs doesn't actually have to be in fstab to mount, so just detect if any
zfs is mounted at all
This commit is contained in:
Rick Farina (Zero_Chaos) 2019-07-18 13:19:59 -04:00
parent 1d5ef4b3b7
commit d946bba21e
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC

View file

@ -180,7 +180,7 @@ update_kernel() {
if grep -q btrfs /etc/fstab || grep -q btrfs /proc/cmdline; then if grep -q btrfs /etc/fstab || grep -q btrfs /proc/cmdline; then
genkernelopts="${genkernelopts} --btrfs" genkernelopts="${genkernelopts} --btrfs"
fi fi
if grep -q zfs /etc/fstab || grep -q zfs /proc/cmdline; then if grep -q zfs /etc/fstab || grep -q zfs /proc/cmdline || grep -q zfs /proc/mounts; then
genkernelopts="${genkernelopts} --zfs" genkernelopts="${genkernelopts} --zfs"
fi fi
if grep -q 'ext[234]' /etc/fstab; then if grep -q 'ext[234]' /etc/fstab; then