diff options
Diffstat (limited to 'export-image')
-rw-r--r-- | export-image/00-allow-rerun/files/policy-rc.d | 1 | ||||
-rwxr-xr-x | export-image/02-network/01-run.sh | 2 | ||||
-rwxr-xr-x | export-image/03-set-partuuid/00-run.sh | 1 | ||||
-rwxr-xr-x | export-image/prerun.sh | 1 |
4 files changed, 4 insertions, 1 deletions
diff --git a/export-image/00-allow-rerun/files/policy-rc.d b/export-image/00-allow-rerun/files/policy-rc.d index 0b1556d..1924710 100644 --- a/export-image/00-allow-rerun/files/policy-rc.d +++ b/export-image/00-allow-rerun/files/policy-rc.d @@ -1,2 +1,3 @@ #!/bin/sh + exit 101 diff --git a/export-image/02-network/01-run.sh b/export-image/02-network/01-run.sh index 9026a1f..e21b791 100755 --- a/export-image/02-network/01-run.sh +++ b/export-image/02-network/01-run.sh @@ -1,3 +1,3 @@ -#/bin/bash -e +#!/bin/bash -e install -m 644 files/resolv.conf ${ROOTFS_DIR}/etc/ diff --git a/export-image/03-set-partuuid/00-run.sh b/export-image/03-set-partuuid/00-run.sh index f19884e..dccc55e 100755 --- a/export-image/03-set-partuuid/00-run.sh +++ b/export-image/03-set-partuuid/00-run.sh @@ -1,4 +1,5 @@ #!/bin/bash -e + IMG_FILE="${STAGE_WORK_DIR}/${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX}.img" IMGID="$(fdisk -l ${IMG_FILE} | sed -n 's/Disk identifier: 0x\([^ ]*\)/\1/p')" diff --git a/export-image/prerun.sh b/export-image/prerun.sh index 67da3da..7acfedc 100755 --- a/export-image/prerun.sh +++ b/export-image/prerun.sh @@ -1,4 +1,5 @@ #!/bin/bash -e + IMG_FILE="${STAGE_WORK_DIR}/${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX}.img" unmount_image ${IMG_FILE} |