From 632e46e5af612aaa0e789dfd5d2e17728cd94739 Mon Sep 17 00:00:00 2001 From: "Slawomir Wojciech Wojtczak (vermaden)" Date: Thu, 30 Aug 2012 20:55:50 +0200 Subject: [PATCH] Minor fixes. --- beadm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/beadm b/beadm index cbcc47b..4ccc676 100755 --- a/beadm +++ b/beadm @@ -420,19 +420,19 @@ EOF fi # disable automatic mount on all inactive boot environments zfs list -H -o name -r ${POOL}/ROOT \ - | grep -v "${POOL}/ROOT/${2}" \ - | while read I + | grep -v "^${POOL}/ROOT/${2}" \ + | while read NAME do - zfs set canmount=noauto ${I} + zfs set canmount=noauto ${NAME} done # enable automatic mount for active boot environment and promote it - zfs list -H -o name,origin -t filesystem -r ${POOL}/ROOT/${2} \ - | while read I ORIGIN + zfs list -H -o name,origin -r ${POOL}/ROOT/${2} \ + | while read NAME ORIGIN do - zfs set canmount=on ${I} + zfs set canmount=on ${NAME} if [ "${ORIGIN}" != "-" ] then - zfs promote ${I} + zfs promote ${NAME} fi done echo "Activated successfully"