mirror of
https://github.com/nchevsky/systemrescue-zfs.git
synced 2026-04-05 06:15:14 +00:00
mountall: show target mountpoint in output
This commit is contained in:
parent
d8de1c8199
commit
c52dcbeeb0
1 changed files with 4 additions and 2 deletions
|
|
@ -197,6 +197,8 @@ create_mountpoint()
|
|||
{
|
||||
local DEV="$1"
|
||||
|
||||
[[ $VERBOSE -eq 1 ]] && echo "looking for a suitable mountpoint for $DEV"
|
||||
|
||||
DEVNAME=$(basename "$DEV")
|
||||
|
||||
MOUNTPOINT="/mnt/$DEVNAME"
|
||||
|
|
@ -265,10 +267,10 @@ try_mount()
|
|||
{
|
||||
local DEV="$1"
|
||||
|
||||
echo -n "mounting $DEV... "
|
||||
|
||||
create_mountpoint "$DEV" || return
|
||||
|
||||
echo -n "mounting $DEV to $MOUNTPOINT... "
|
||||
|
||||
local OPTIONS=""
|
||||
if [[ $READONLY -eq 1 ]]; then
|
||||
[[ $VERBOSE -eq 1 ]] && echo "mounting read-only"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue