Fix dataset promote for making the boot environment active.

This commit is contained in:
Slawomir Wojciech Wojtczak (vermaden) 2012-08-31 18:09:55 +02:00
parent 632e46e5af
commit d111b1452d
1 changed files with 3 additions and 3 deletions

6
beadm
View File

@ -430,10 +430,10 @@ EOF
| while read NAME ORIGIN | while read NAME ORIGIN
do do
zfs set canmount=on ${NAME} zfs set canmount=on ${NAME}
if [ "${ORIGIN}" != "-" ] while __be_clone ${NAME}
then do
zfs promote ${NAME} zfs promote ${NAME}
fi done
done done
echo "Activated successfully" echo "Activated successfully"
;; ;;