armbian-next: don't leak .raw image if failure before move; show rootfs-tmpfs info

- add escapings and TODO's around the area...
This commit is contained in:
Ricardo Pardini
2023-01-17 07:06:56 +01:00
parent 1636a2afea
commit af7ace7e57
3 changed files with 21 additions and 14 deletions

View File

@@ -100,7 +100,7 @@ create_image_from_sdcard_rootfs() {
mkdir -p "${DESTIMG}"
# @TODO: misterious cwd, who sets it?
mv "${SDCARD}.raw" "${DESTIMG}/${version}.img"
run_host_command_logged mv -v "${SDCARD}.raw" "${DESTIMG}/${version}.img"
# custom post_build_image_modify hook to run before fingerprinting and compression
[[ $(type -t post_build_image_modify) == function ]] && display_alert "Custom Hook Detected" "post_build_image_modify" "info" && post_build_image_modify "${DESTIMG}/${version}.img"