Skip to content
Snippets Groups Projects

Some changes for mountimage tool

Merged Thomas Mittelstädt requested to merge wip/mtt2hi/mountimage2 into apertis/v2024dev3
All threads resolved!
1 file
+ 5
5
Compare changes
  • Side-by-side
  • Inline
+ 5
5
@@ -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
Loading