Fix BEADM CREATE s/local/local,received/

This commit is contained in:
Slawomir Wojciech Wojtczak (vermaden) 2012-08-10 22:49:52 +02:00
parent cad38f6720
commit fe79a8ffe4
1 changed files with 1 additions and 1 deletions

2
beadm
View File

@ -103,7 +103,7 @@ __be_new() { # 1=SOURCE 2=TARGET
do
local OPTS="-o ${PROPERTY}=${VALUE} ${OPTS}"
done << EOF
$( zfs get -o name,property,value -s local -H all ${FS} | grep -v -E "(canmount)" )
$( zfs get -o name,property,value -s local,received -H all ${FS} | grep -v -E "(canmount)" )
EOF
DATASET=$( echo ${FS} | awk '{print $1}' | sed -E s/"^${POOL}\/ROOT\/${SOURCE##*/}"/"${POOL}\/ROOT\/${2##*/}"/g )
if [ "${OPTS}" = "-o = " ]