From c52dcbeeb0a51200fc8c11a4f186588dac449a15 Mon Sep 17 00:00:00 2001 From: "Gerd v. Egidy" Date: Tue, 6 Sep 2022 20:24:46 +0200 Subject: [PATCH] mountall: show target mountpoint in output --- airootfs/usr/share/sysrescue/bin/mountall | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/airootfs/usr/share/sysrescue/bin/mountall b/airootfs/usr/share/sysrescue/bin/mountall index a337ca2..5509375 100755 --- a/airootfs/usr/share/sysrescue/bin/mountall +++ b/airootfs/usr/share/sysrescue/bin/mountall @@ -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"