Force export if it failed the first time

Signed-off-by: Sören Tempel <soeren+git@soeren-tempel.net>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #3109
This commit is contained in:
Sören Tempel 2015-02-16 09:56:04 +01:00 committed by Brian Behlendorf
parent eda3d4e1de
commit edbaf2455c

View File

@ -21,7 +21,7 @@ if [ "${root}" = "zfs:AUTO" ] ; then
ZFS_DATASET="$(find_bootfs)"
if [ $? -ne 0 ] ; then
warn "ZFS: No bootfs attribute found in importable pools."
export_all
export_all || export_all "-f"
rootok=0
return 1