aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorTomasz Maciej Nowak <tmn505@gmail.com>2020-12-01 18:29:17 +0100
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-12-01 19:39:08 +0100
commit1ac3b53278f77049008ce0e5dcc18d87ef6b9f70 (patch)
treee5e4f8671bdf58ae6eea0e30df50b95da830ae09 /target/linux
parentb5036569aa1839a75a365e694b1fe2f9cb1983e8 (diff)
downloadupstream-1ac3b53278f77049008ce0e5dcc18d87ef6b9f70.tar.gz
upstream-1ac3b53278f77049008ce0e5dcc18d87ef6b9f70.tar.bz2
upstream-1ac3b53278f77049008ce0e5dcc18d87ef6b9f70.zip
mvebu: sysupgrade: write additional information to log output
This will explain what is actually occuring on dd invocations. Additionally remove comments for steps which are described by printed statements anyway. Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/mvebu/base-files/lib/upgrade/sdcard.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/target/linux/mvebu/base-files/lib/upgrade/sdcard.sh b/target/linux/mvebu/base-files/lib/upgrade/sdcard.sh
index 0f95b1b659..caa726b4d5 100644
--- a/target/linux/mvebu/base-files/lib/upgrade/sdcard.sh
+++ b/target/linux/mvebu/base-files/lib/upgrade/sdcard.sh
@@ -9,7 +9,7 @@ platform_check_image_sdcard() {
get_partitions "/dev/$diskdev" bootdisk
- #extract the boot sector from the image
+ v "Extract boot sector from the image"
get_image_dd "$1" of=/tmp/image.bs count=1 bs=512b
get_partitions /tmp/image.bs image
@@ -40,7 +40,7 @@ platform_do_upgrade_sdcard() {
if [ "$UPGRADE_OPT_SAVE_PARTITIONS" = "1" ]; then
get_partitions "/dev/$diskdev" bootdisk
- #extract the boot sector from the image
+ v "Extract boot sector from the image"
get_image_dd "$1" of=/tmp/image.bs count=1 bs=512b
get_partitions /tmp/image.bs image
@@ -59,7 +59,7 @@ platform_do_upgrade_sdcard() {
partx -d - "/dev/$diskdev"
partx -a - "/dev/$diskdev"
else
- #write uboot image
+ v "Writing bootloader to /dev/$diskdev"
get_image_dd "$1" of="$diskdev" bs=512 skip=1 seek=1 count=2048 conv=fsync
#iterate over each partition from the image and write it to the boot disk
while read part start size; do
@@ -71,7 +71,6 @@ platform_do_upgrade_sdcard() {
fi
done < /tmp/partmap.image
- #copy partition uuid
v "Writing new UUID to /dev/$diskdev..."
get_image_dd "$1" of="/dev/$diskdev" bs=1 skip=440 count=4 seek=440 conv=fsync
fi