The default value of ${ZPOOL_USAGE} is unset, quoting it would result into
a "" argument passed to zpool. The workaround to this is to use "dozfs=force"
boot argument.
Signed-off-by: Richard Yao <ryao@gentoo.org>
then
good_msg "Importing ZFS pools"
- /sbin/zpool import -N -a "${ZPOOL_FORCE}"
+ /sbin/zpool import -N -a ${ZPOOL_FORCE}
if [ "$?" = '0' ]
then
then
good_msg "LUKS detected. Reimporting ${ZFS_POOL}"
/sbin/zpool export -f "${ZFS_POOL}"
- /sbin/zpool import -N "${ZPOOL_FORCE}" "${ZFS_POOL}"
+ /sbin/zpool import -N ${ZPOOL_FORCE} "${ZFS_POOL}"
fi
else
good_msg "Importing ZFS pool ${ZFS_POOL}"
- /sbin/zpool import -N "${ZPOOL_FORCE}" "${ZFS_POOL}"
+ /sbin/zpool import -N ${ZPOOL_FORCE} "${ZFS_POOL}"
if [ "$?" = '0' ]
then