Page MenuHomeFreeBSD

D29101.id85335.diff
No OneTemporary

D29101.id85335.diff

Index: libexec/rc/rc.d/dumpon
===================================================================
--- libexec/rc/rc.d/dumpon
+++ libexec/rc/rc.d/dumpon
@@ -42,6 +42,7 @@
[Nn][Oo] | '')
;;
[Aa][Uu][Tt][Oo])
+ root_hold_wait
dev=$(/bin/kenv -q dumpdev)
if [ -n "${dev}" ] ; then
dumpon_try "${dev}"
@@ -56,6 +57,7 @@
return 1
;;
*)
+ root_hold_wait
dumpon_try "${dumpdev}"
;;
esac
Index: libexec/rc/rc.d/zpool
===================================================================
--- libexec/rc/rc.d/zpool
+++ libexec/rc/rc.d/zpool
@@ -22,7 +22,14 @@
for cachefile in /etc/zfs/zpool.cache /boot/zfs/zpool.cache; do
if [ -r $cachefile ]; then
- zpool import -c $cachefile -a -N && break
+ zpool import -c $cachefile -a -N
+ if [ $? -ne 0 ]; then
+ echo "Import of zpool cache ${cachefile} failed," \
+ "will retry after root mount hold release"
+ root_hold_wait
+ zpool import -c $cachefile -a -N
+ fi
+ break
fi
done
}

File Metadata

Mime Type
text/plain
Expires
Wed, Oct 22, 9:35 PM (4 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24068755
Default Alt Text
D29101.id85335.diff (989 B)

Event Timeline