mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
rc: emulate zfs_enable="YES" #2386
This commit is contained in:
parent
345e92fedc
commit
ce6a597ca1
12
src/etc/rc
12
src/etc/rc
@ -90,14 +90,18 @@ while read FS_PART FS_MNT FS_TYPE FS_MORE; do
|
||||
fi
|
||||
done < /etc/fstab
|
||||
|
||||
if kldstat -qm zfs; then
|
||||
zfs set readonly=off zroot
|
||||
fi
|
||||
|
||||
attempts=0
|
||||
while [ ${attempts} -lt 3 ]; do
|
||||
fsck -C -y /
|
||||
fsck -C -y /
|
||||
if kldstat -qm zfs; then
|
||||
zfs set readonly=off zroot
|
||||
zfs mount -va
|
||||
zfs share -a
|
||||
if [ ! -r /etc/zfs/exports ]; then
|
||||
touch /etc/zfs/exports
|
||||
fi
|
||||
fi
|
||||
if mount -a 2> /dev/null; then
|
||||
# bail if all is well
|
||||
break
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user