diff options
| author | Jonathan Bauer | 2013-08-19 18:08:41 +0200 |
|---|---|---|
| committer | Jonathan Bauer | 2013-08-19 18:08:41 +0200 |
| commit | 0e446df5d6fe6e3ee6340323c02a633106a855d7 (patch) | |
| tree | a346b933985e4bae517d75bf9319a34e85dc693d | |
| parent | fixes for the download function of etc/functions that is needed for the 'syst... (diff) | |
| download | tm-scripts-0e446df5d6fe6e3ee6340323c02a633106a855d7.tar.gz tm-scripts-0e446df5d6fe6e3ee6340323c02a633106a855d7.tar.xz tm-scripts-0e446df5d6fe6e3ee6340323c02a633106a855d7.zip | |
[server] create sqfs of stage32 under server/boot/<ip>/stage32.sqfs and let the user know about it
| -rwxr-xr-x | server/export_target | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/server/export_target b/server/export_target index 575ce565..7ab7a11d 100755 --- a/server/export_target +++ b/server/export_target @@ -60,12 +60,13 @@ generate_stage32() { local TOOL_STR="${TOOL_STR} generate_stage32:" [ ! -d "${STAGE32_SQFS_DIR}" ] && mkdir -p "${STAGE32_SQFS_DIR}" [ -e "${STAGE32_SQFS_DIR}/${TARGET}.sqfs" ] && rm "${STAGE32_SQFS_DIR}/${TARGET}.sqfs" - pinfo "Writing '${TARGET}.sqfs' to '${STAGE32_SQFS_DIR}/${TARGET}.sqfs'" - mksquashfs "${SERVER_BUILD_DIR}/${TARGET}" "${STAGE32_SQFS_DIR}/${TARGET}.sqfs" -comp xz -b 1M -no-recovery >&6 || perror "mksquashfs failed ($?)." - pinfo "Wrapping squashFS in initramfs-stage32" - generate_initramfs "${SERVER_BOOT_DIR}/stage32_sqfs" "./mnt/${TARGET}.sqfs" "${SERVER_BOOT_DIR}/initramfs-${TARGET}" + pinfo "Writing '${TARGET}.sqfs' to '${SERVER_BOOT_DIR}/${TARGET}.sqfs'" + mksquashfs "${SERVER_BUILD_DIR}/${TARGET}" "${SERVER_BOOT_DIR}/${TARGET}.sqfs" -comp xz -b 1M -no-recovery >&6 || perror "mksquashfs failed ($?)." + pinfo "Created '${SERVER_BOOT_DIR}/${TARGET}.sqfs'." + #pinfo "Wrapping squashFS in initramfs-stage32" + #generate_initramfs "${SERVER_BOOT_DIR}/stage32_sqfs" "./mnt/${TARGET}.sqfs" "${SERVER_BOOT_DIR}/initramfs-${TARGET}" # cleanup - [ -d "${SERVER_BOOT_DIR}/stage32_sqfs" ] && rm -rf ${SERVER_BOOT_DIR}/stage32_sqfs + #[ -d "${SERVER_BOOT_DIR}/stage32_sqfs" ] && rm -rf ${SERVER_BOOT_DIR}/stage32_sqfs } generate_stage31() { |
