parent
52a875fb23
commit
98b213a110
@ -247,8 +247,19 @@ in
|
||||
esac
|
||||
done
|
||||
''] ++ (map (pool: ''
|
||||
echo "importing root ZFS pool \"${pool}\"..."
|
||||
zpool import -d ${cfgZfs.devNodes} -N $ZFS_FORCE "${pool}"
|
||||
echo -n "importing root ZFS pool \"${pool}\"..."
|
||||
trial=0
|
||||
until msg="$(zpool import -d ${cfgZfs.devNodes} -N $ZFS_FORCE '${pool}' 2>&1)"; do
|
||||
sleep 0.25
|
||||
echo -n .
|
||||
trial=$(($trial + 1))
|
||||
if [[ $trial -eq 60 ]]; then
|
||||
echo
|
||||
echo "$msg"
|
||||
break
|
||||
fi
|
||||
done
|
||||
echo
|
||||
'') rootPools));
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user