1
0
Fork 0

Add global variable "IMG_FILE"

This commit is contained in:
Braiden Vasco 2017-07-02 18:01:01 +00:00
parent a5cb807a1c
commit a08df3e645
4 changed files with 4 additions and 5 deletions

View file

@ -18,6 +18,8 @@ export STAGE_DIR
export STAGE_WORK_DIR
export ROOTFS_DIR
export IMG_FILE
export QUILT_PATCHES
export QUILT_NO_DIFF_INDEX=1
export QUILT_NO_DIFF_TIMESTAMPS=1
@ -65,6 +67,8 @@ main() {
STAGE_WORK_DIR="$WORK_DIR/$STAGE"
ROOTFS_DIR="$STAGE_WORK_DIR/rootfs"
IMG_FILE="${STAGE_WORK_DIR}/${IMG_DATE}-${IMG_NAME}.img"
mkdir -p "$WORK_DIR"
pushd "$STAGE_DIR" > /dev/null

View file

@ -1,7 +1,5 @@
#!/bin/bash -e
IMG_FILE="${STAGE_WORK_DIR}/${IMG_DATE}-${IMG_NAME}.img"
unmount_image ${IMG_FILE}
rm -f ${IMG_FILE}

View file

@ -1,5 +1,4 @@
#!/bin/bash -e
IMG_FILE="${STAGE_WORK_DIR}/${IMG_DATE}-${IMG_NAME}.img"
IMGID="$(fdisk -l ${IMG_FILE} | sed -n 's/Disk identifier: 0x\([^ ]*\)/\1/p')"

View file

@ -1,7 +1,5 @@
#!/bin/bash -e
IMG_FILE="${STAGE_WORK_DIR}/${IMG_DATE}-${IMG_NAME}.img"
on_chroot << EOF
/etc/init.d/fake-hwclock stop
hardlink -t /usr/share/doc