diff options
-rwxr-xr-x | export-image/04-finalise/01-run.sh | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/export-image/04-finalise/01-run.sh b/export-image/04-finalise/01-run.sh index ae688f3..cdaadc3 100755 --- a/export-image/04-finalise/01-run.sh +++ b/export-image/04-finalise/01-run.sh @@ -83,15 +83,13 @@ install -m 644 "${ROOTFS_DIR}/etc/rpi-issue" "${ROOTFS_DIR}/boot/issue.txt" cp "$ROOTFS_DIR/etc/rpi-issue" "$INFO_FILE" -if [ "${ROOTFS_RO}" = "1" ] ; then - cp "$INFO_FILE" "$INFO_FILE_ROOT" - echo >> "$INFO_FILE_ROOT" - echo "+++" >> "$INFO_FILE_ROOT" - echo >> "$INFO_FILE_ROOT" - echo "Root Partition `basename $IMG_FILE_ROOT_EXT4`" >> "$INFO_FILE_ROOT" - echo "Root Partition of `basename $IMG_FILE`" >> "$INFO_FILE_ROOT" - echo >> "$INFO_FILE_ROOT" -fi +cp "$INFO_FILE" "$INFO_FILE_ROOT" +echo >> "$INFO_FILE_ROOT" +echo "+++" >> "$INFO_FILE_ROOT" +echo >> "$INFO_FILE_ROOT" +echo "Root Partition `basename $IMG_FILE_ROOT_EXT4`" >> "$INFO_FILE_ROOT" +echo "Root Partition of `basename $IMG_FILE`" >> "$INFO_FILE_ROOT" +echo >> "$INFO_FILE_ROOT" rm -rf "${DEPLOY_DIR2}" mkdir -p "${DEPLOY_DIR2}" @@ -149,11 +147,11 @@ if [ "${ROOTFS_RO}" = "1" ] ; then echo "${DEPLOY_DIR2}/sdcard${IMG_SUFFIX} done." - mv -v "$IMG_FILE_ROOT_EXT4" "$DEPLOY_DIR2/" #mv -v "$IMG_FILE_ROOT_SQFS_GZ" "$DEPLOY_DIR2/" mv -v "$IMG_FILE_ROOT_SQFS_LZO" "$DEPLOY_DIR2/" #mv -v "$IMG_FILE_ROOT_SQFS_ZSTD" "$DEPLOY_DIR2/" fi +mv -v "$IMG_FILE_ROOT_EXT4" "$DEPLOY_DIR2/" rm -f "${STAGE_WORK_DIR}/SHA256SUMS" ( cd "${DEPLOY_DIR2}"; find . -maxdepth 1 -type f -exec sha256sum -b \{\} >> "${STAGE_WORK_DIR}/SHA256SUMS" \; ) |