diff --git a/mod_image_for_recovery.sh b/mod_image_for_recovery.sh index 0ac288c7ec..9ebc390fe0 100755 --- a/mod_image_for_recovery.sh +++ b/mod_image_for_recovery.sh @@ -41,9 +41,6 @@ DEFINE_integer jobs -1 \ DEFINE_string build_root "/build" \ "The root location for board sysroots." -DEFINE_string rootfs_hash "/tmp/rootfs.hash" \ - "Path where the rootfs hash should be stored." - DEFINE_boolean verbose $FLAGS_FALSE \ "Log all commands to stdout." v @@ -104,17 +101,32 @@ get_install_vblock() { echo "$out" } -failboat() { +okboat() { # http://www.chris.com/ascii/index.php?art=transportation/nautical - echo -e "${V_BOLD_RED}" - cat <&2 || failboat "build_kernel_image" - sudo rm "$FLAGS_rootfs_hash" + --nouse_dev_keys 1>&2 || failboat "build_kernel_image" sudo mount | sed 's/^/16651 /' sudo losetup -a | sed 's/^/16651 /' - sudo losetup -d "$root_dev" trap - RETURN # Update the EFI System Partition configuration so that the kern_hash check @@ -435,6 +428,8 @@ maybe_resize_stateful # Also copies the image if needed. install_recovery_kernel +okboat + echo "Recovery image created at $RECOVERY_IMAGE" print_time_elapsed trap - EXIT