Fix a problem with beadm create -e be4@snaptest fromsnap
This commit is contained in:
parent
97f356d1b4
commit
7872bbfc61
7
beadm
7
beadm
|
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue