From 36e030df800f8df7913a3629ea0ab8636dc789e5 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 7 May 2017 02:18:50 -0400 Subject: [PATCH] image_signing: strip_boot_from_image.sh: convert to info/error helpers This makes the output easier to follow when multiple scripts are being run. BRANCH=None BUG=chromium:714598 TEST=signing images still works Change-Id: I48edde260e1d1db88f65624c7ff46ad2ac1cc2f4 Reviewed-on: https://chromium-review.googlesource.com/498100 Commit-Ready: Mike Frysinger Tested-by: Mike Frysinger Reviewed-by: David Riley --- scripts/image_signing/strip_boot_from_image.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/image_signing/strip_boot_from_image.sh b/scripts/image_signing/strip_boot_from_image.sh index dcbdf05db7..5e650af665 100755 --- a/scripts/image_signing/strip_boot_from_image.sh +++ b/scripts/image_signing/strip_boot_from_image.sh @@ -30,7 +30,7 @@ fi zero_free_space() { local rootfs="$1" - echo "Zeroing freespace in ${rootfs}" + info "Zeroing freespace in ${rootfs}" # dd is a silly thing and will produce a "No space left on device" message # that cannot be turned off and is confusing to unsuspecting victims. ( sudo dd if=/dev/zero of="${rootfs}/filler" bs=4096 conv=fdatasync \ @@ -47,7 +47,7 @@ strip_boot() { mount_image_partition ${image} 3 ${rootfs_dir} sudo rm -rf "${rootfs_dir}/boot" && - echo "/boot directory was removed." + info "/boot directory was removed." # To prevent the files we just removed from the FS from remaining as non- # zero trash blocks that bloat payload sizes, need to zero them. This was