From: Fabio Erculiani Date: Sun, 11 Nov 2012 09:13:03 +0000 (+0100) Subject: Unquote ${ZPOOL_FORCE} variable usage. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=30c7284c92cacf47250541172dddb10abd70a7a0;p=genkernel.git Unquote ${ZPOOL_FORCE} variable usage. 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 --- diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index 7cb41b3..2e8e744 100755 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -707,7 +707,7 @@ startVolumes() { then good_msg "Importing ZFS pools" - /sbin/zpool import -N -a "${ZPOOL_FORCE}" + /sbin/zpool import -N -a ${ZPOOL_FORCE} if [ "$?" = '0' ] then @@ -725,12 +725,12 @@ startVolumes() { 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