Ensure root can be mounted before activating

This commit is contained in:
Bryan Drewery 2012-05-05 00:40:44 -05:00
parent affc1def11
commit 68f2a1faf7
1 changed files with 1 additions and 0 deletions

1
beadm
View File

@ -213,6 +213,7 @@ $( mount -p | awk '{print $1 " " $2}' )
EOF EOF
if [ ${MOUNT} -eq 0 ] if [ ${MOUNT} -eq 0 ]
then then
zfs set canmount=noauto ${POOL}/ROOT/${2}
zfs set mountpoint=${TMPMNT} ${POOL}/ROOT/${2} zfs set mountpoint=${TMPMNT} ${POOL}/ROOT/${2}
zfs mount ${POOL}/ROOT/${2} 1> /dev/null 2> /dev/null zfs mount ${POOL}/ROOT/${2} 1> /dev/null 2> /dev/null
else else