summaryrefslogtreecommitdiff
path: root/image-package-example/make-disk-image.sh.in
diff options
context:
space:
mode:
authorAdam Coldrick <adam.coldrick@codethink.co.uk>2015-06-02 08:22:26 +0000
committerAdam Coldrick <adam.coldrick@codethink.co.uk>2015-06-02 13:55:31 +0000
commit6f49299467a09236d7c0c564fe55bc8eafa7defd (patch)
treec9c628dd466ebfcc895d2ccc9f16440b4955f1a6 /image-package-example/make-disk-image.sh.in
parent0cd8880023fc65ec581da95dd49a58b5996a1279 (diff)
downloaddefinitions-6f49299467a09236d7c0c564fe55bc8eafa7defd.tar.gz
Move extensions into a subdirectory
Change-Id: I12e7c03b30da78da1eb220d2826ce0003d6efe2e
Diffstat (limited to 'image-package-example/make-disk-image.sh.in')
-rw-r--r--image-package-example/make-disk-image.sh.in36
1 files changed, 0 insertions, 36 deletions
diff --git a/image-package-example/make-disk-image.sh.in b/image-package-example/make-disk-image.sh.in
deleted file mode 100644
index 61264fa0..00000000
--- a/image-package-example/make-disk-image.sh.in
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/sh
-# Script for writing the system to a disk image file.
-# This creates a file of the right size, attaches it to a loop device,
-# then hands the rest of the work off to disk-install.sh
-
-usage(){
- cat <<EOF
-usage: $0 FILENAME SIZE [TARGET_DISK]
-
-FILENAME: Location to write the disk image to
-SIZE: Size to create the disk image with
-TARGET_DISK: What the disk will appear as on the target machine
-EOF
-}
-
-. @@SCRIPT_DIR@@/common.sh
-
-if [ "$#" -lt 2 -o "$#" -gt 3 ]; then
- usage
- exit 1
-fi
-
-DISK_IMAGE="$1"
-DISK_SIZE="$2"
-TARGET_DISK="${3-/dev/vda}"
-
-make_disk_image "$DISK_SIZE" "$DISK_IMAGE"
-
-(
- LOOP="$(loop_file "$DISK_IMAGE")"
- set +e
- @@SCRIPT_DIR@@/disk-install.sh "$DISK_IMAGE" "$TARGET_DISK"
- ret="$?"
- unloop_file "$LOOP"
- exit "$ret"
-)