rc: zfs tools are terrible for scripting

This commit is contained in:
Franco Fichtner 2018-05-28 09:10:20 +02:00
parent 3e94dd72e9
commit 635640ce4d

View File

@ -205,8 +205,8 @@ elif [ -n "${POOL}" ]; then
echo "Starting import for ZFS pool '${POOL}'."
echo
if ! zpool import -f -R /tmp/hdrescue ${POOL} && \
zfs mount ${POOL}/ROOT/default; then
zpool import -f -R ${MNT} ${POOL}
if ! zfs mount ${POOL}/ROOT/default; then
echo "The device could not be mounted."
fi
fi