From affc1def11ae69df410366e68e4d3a3d5e7a61df Mon Sep 17 00:00:00 2001 From: Bryan Drewery Date: Sat, 5 May 2012 00:39:33 -0500 Subject: [PATCH] No need to set mountpoint when activating, it was cloned --- beadm | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/beadm b/beadm index a64f19f..2ad57b8 100755 --- a/beadm +++ b/beadm @@ -237,21 +237,17 @@ EOF exit 1 fi fi + # Disable mounting on all inactive datasets zfs list -H -o name -r ${POOL}/ROOT \ | grep -v "${POOL}/ROOT/${2}" \ | while read I do zfs set canmount=noauto ${I} done + # Enable mounting for the active BE and promote it zfs list -H -o name -t filesystem -r ${POOL}/ROOT/${2} \ | while read I do - MOUNT=$( zfs get -H -o value mountpoint ${I} ) - zfs set canmount=noauto ${I} - if [ "${MOUNT}" != legacy ] - then - zfs set mountpoint=${MOUNT} ${I} - fi zfs set canmount=on ${I} 2> /dev/null zfs promote ${I} 2> /dev/null done