mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
rc: zfs tools are terrible for scripting
This commit is contained in:
parent
3e94dd72e9
commit
635640ce4d
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user