Add global variable "IMG_FILE"
This commit is contained in:
parent
a5cb807a1c
commit
a08df3e645
4 changed files with 4 additions and 5 deletions
4
build.sh
4
build.sh
|
@ -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
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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')"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in a new issue