diff --git a/tools/mountimage b/tools/mountimage index 9da851c721b7f33497dc6f39438238744839c367..9891c2cf5995c490fdd4992edcfa1287ee0612d5 100755 --- a/tools/mountimage +++ b/tools/mountimage @@ -3,7 +3,7 @@ # # Copyright (c) 2023 Thomas Mittelstaedt <thomas.mittelstaedt@de.bosch.com> -VERSION=2.1.0 +VERSION=2.1.1 VERSIONDATE=2023 SHORT=hp:m:vr:ulf @@ -133,7 +133,7 @@ function print_verbose_line() { # $* : Strings to log ####################################### function print_error_line() { - echo "$(basename $0): $*" >&2 + echo "${PROGNAME}: $*" >&2 } @@ -316,7 +316,7 @@ local found_valid_root_partition root_devices=( $(get_root_partitions ${IMAGE_DEVICE} ${IMAGE_DEVICE_P}) ) size=${#root_devices[@]} if [ "$size" -eq "0" ]; then - echo "/ is not mounted for $IMAGE_DEVICE, can't handle sub mounts" + print_verbose_line "/ is not mounted for $IMAGE_DEVICE, can't handle sub mounts" mdevice='' mbind='' else @@ -450,7 +450,7 @@ local parsed shift ;; --version) - echo "$(basename $0) $VERSION ($VERSIONDATE)" + echo "$PROGNAME $VERSION ($VERSIONDATE)" shift exit 0 ;; @@ -656,7 +656,7 @@ local mbind rootmnt if test "$labelpath" != "/"; then rootmnt=$(check_and_try_to_mount_root_partition $device $devicep) if [ -z "${rootmnt}" ];then - echo "/ is not mounted for $device, can't handle sub mounts" + print_error_line "/ is not mounted for $device, can't handle sub mounts" mdevice='' mbind='' fi