|
|
@ -98,7 +98,7 @@ do
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
dozfs*)
|
|
|
|
dozfs*)
|
|
|
|
USE_ZFS=1
|
|
|
|
USE_ZFS=1
|
|
|
|
MY_HWOPTS="${MY_HWOPTS} zfs"
|
|
|
|
|
|
|
|
if [ "${x#*=}" = 'force' ]
|
|
|
|
if [ "${x#*=}" = 'force' ]
|
|
|
|
then
|
|
|
|
then
|
|
|
|
ZPOOL_FORCE=-f
|
|
|
|
ZPOOL_FORCE=-f
|
|
|
@ -248,12 +248,23 @@ then
|
|
|
|
REAL_ROOT="${FAKE_ROOT}"
|
|
|
|
REAL_ROOT="${FAKE_ROOT}"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Disable ZFS when support is missing
|
|
|
|
# Set variables based on the value of REAL_ROOT
|
|
|
|
if [ "USE_ZFS" = "1" -a ! -x /sbin/zfs ]
|
|
|
|
case "${REAL_ROOT}" in
|
|
|
|
|
|
|
|
ZFS*)
|
|
|
|
|
|
|
|
USE_ZFS=1
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Verify that it is safe to use ZFS
|
|
|
|
|
|
|
|
if [ "USE_ZFS" = "1" ]
|
|
|
|
then
|
|
|
|
then
|
|
|
|
USE_ZFS=0
|
|
|
|
if [ -x /sbin/zfs ]
|
|
|
|
MY_HWOPTS=$(echo ${MY_HWOPTS} | sed -e 's/ zfs//g')
|
|
|
|
then
|
|
|
|
bad_msg 'zfs binary not found: aborting use of zfs!'
|
|
|
|
MY_HWOPTS="${MY_HWOPTS} zfs"
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
bad_msg 'zfs binary not found: aborting use of zfs!'
|
|
|
|
|
|
|
|
USE_ZFS=0
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
splash 'init'
|
|
|
|
splash 'init'
|
|
|
|