]> granicus.if.org Git - zfs/commitdiff
Force export if it failed the first time
authorSören Tempel <soeren+git@soeren-tempel.net>
Mon, 16 Feb 2015 08:56:04 +0000 (09:56 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 17 Jun 2015 23:46:04 +0000 (16:46 -0700)
Signed-off-by: Sören Tempel <soeren+git@soeren-tempel.net>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #3109

dracut/90zfs/mount-zfs.sh.in

index 47c01d14c8d94f775a361f434c423b8b9f23a568..39beb9f70d3914770ba6ed076722b1799b422f06 100755 (executable)
@@ -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