Fix a problem with beadm create -e be4@snaptest fromsnap

This commit is contained in:
Slawomir Wojciech Wojtczak (vermaden) 2012-05-11 09:43:56 +02:00
parent 97f356d1b4
commit 7872bbfc61
1 changed files with 6 additions and 1 deletions

7
beadm
View File

@ -101,7 +101,12 @@ EOF
then then
local OPTS="" local OPTS=""
fi fi
zfs clone -o canmount=off ${OPTS} ${FS}@${2##*/} ${DATASET} if __be_snapshot ${1}
then
zfs clone -o canmount=off ${OPTS} ${FS}@${1##*@} ${DATASET}
else
zfs clone -o canmount=off ${OPTS} ${FS}@${2##*/} ${DATASET}
fi
done done
echo "Created successfully" echo "Created successfully"
} }