|
|
@ -97,16 +97,11 @@ do
|
|
|
|
USE_DMRAID_NORMAL=1
|
|
|
|
USE_DMRAID_NORMAL=1
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
dozfs*)
|
|
|
|
dozfs*)
|
|
|
|
if [ ! -x /sbin/zfs ]; then
|
|
|
|
USE_ZFS=1
|
|
|
|
USE_ZFS=0
|
|
|
|
MY_HWOPTS="${MY_HWOPTS} zfs"
|
|
|
|
bad_msg 'zfs binary not found: aborting use of zfs!'
|
|
|
|
if [ "${x#*=}" = 'force' ]
|
|
|
|
else
|
|
|
|
then
|
|
|
|
USE_ZFS=1
|
|
|
|
ZPOOL_FORCE=-f
|
|
|
|
MY_HWOPTS="${MY_HWOPTS} zfs"
|
|
|
|
|
|
|
|
if [ "${x#*=}" = 'force' ]
|
|
|
|
|
|
|
|
then
|
|
|
|
|
|
|
|
ZPOOL_FORCE=-f
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
# Debug Options
|
|
|
|
# Debug Options
|
|
|
@ -253,6 +248,14 @@ then
|
|
|
|
REAL_ROOT="${FAKE_ROOT}"
|
|
|
|
REAL_ROOT="${FAKE_ROOT}"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Disable ZFS when support is missing
|
|
|
|
|
|
|
|
if [ "USE_ZFS" = "1" -a ! -x /sbin/zfs ]
|
|
|
|
|
|
|
|
then
|
|
|
|
|
|
|
|
USE_ZFS=0
|
|
|
|
|
|
|
|
MY_HWOPTS=$(echo ${MY_HWOPTS} | sed -e 's/ zfs//g')
|
|
|
|
|
|
|
|
bad_msg 'zfs binary not found: aborting use of zfs!'
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
splash 'init'
|
|
|
|
splash 'init'
|
|
|
|
|
|
|
|
|
|
|
|
cmdline_hwopts
|
|
|
|
cmdline_hwopts
|
|
|
|