summaryrefslogtreecommitdiff
path: root/export-image
diff options
context:
space:
mode:
authorBłażej Sowa <bsowa123@gmail.com>2018-12-17 01:02:18 +0100
committerXECDesign <XECDesign@users.noreply.github.com>2018-12-21 04:11:13 +0000
commit08405eb792c66acf7f4fa4d11abf31bb3da5ab13 (patch)
treed5d87ff5e55763f995455491f853b526a60c0d4f /export-image
parent7fbfdda31e5771b849876d306c25ede237bc577b (diff)
Allow custom image filename
Diffstat (limited to 'export-image')
-rwxr-xr-xexport-image/03-set-partuuid/00-run.sh2
-rwxr-xr-xexport-image/04-finalise/01-run.sh4
-rwxr-xr-xexport-image/prerun.sh2
3 files changed, 4 insertions, 4 deletions
diff --git a/export-image/03-set-partuuid/00-run.sh b/export-image/03-set-partuuid/00-run.sh
index 29edc67..e166e97 100755
--- a/export-image/03-set-partuuid/00-run.sh
+++ b/export-image/03-set-partuuid/00-run.sh
@@ -1,6 +1,6 @@
#!/bin/bash -e
-IMG_FILE="${STAGE_WORK_DIR}/${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX}.img"
+IMG_FILE="${STAGE_WORK_DIR}/${IMG_FILENAME}.img"
IMGID="$(dd if="${IMG_FILE}" skip=440 bs=1 count=4 2>/dev/null | xxd -e | cut -f 2 -d' ')"
diff --git a/export-image/04-finalise/01-run.sh b/export-image/04-finalise/01-run.sh
index cd284ac..eee9c5c 100755
--- a/export-image/04-finalise/01-run.sh
+++ b/export-image/04-finalise/01-run.sh
@@ -1,7 +1,7 @@
#!/bin/bash -e
-IMG_FILE="${STAGE_WORK_DIR}/${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX}.img"
-INFO_FILE="${STAGE_WORK_DIR}/${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX}.info"
+IMG_FILE="${STAGE_WORK_DIR}/${IMG_FILENAME}.img"
+INFO_FILE="${STAGE_WORK_DIR}/${IMG_FILENAME}.info"
on_chroot << EOF
/etc/init.d/fake-hwclock stop
diff --git a/export-image/prerun.sh b/export-image/prerun.sh
index 0ac7181..ca13b70 100755
--- a/export-image/prerun.sh
+++ b/export-image/prerun.sh
@@ -1,6 +1,6 @@
#!/bin/bash -e
-IMG_FILE="${STAGE_WORK_DIR}/${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX}.img"
+IMG_FILE="${STAGE_WORK_DIR}/${IMG_FILENAME}.img"
unmount_image "${IMG_FILE}"