diff options
author | Neil Williams <codehelp@debian.org> | 2015-09-02 23:47:19 +0100 |
---|---|---|
committer | Neil Williams <codehelp@debian.org> | 2015-09-02 23:47:19 +0100 |
commit | 9f427b60af348bb7e9f5789275fd03529eb8a0e0 (patch) | |
tree | a45cb3e91058000052fdca85fe4309d0f268b97a /common/jessie-arm64.sh | |
parent | 5c54e70b6d13241bc096880fd39f346f95561a54 (diff) | |
download | vmdebootstrap-9f427b60af348bb7e9f5789275fd03529eb8a0e0.tar.gz |
Port the task-based scripts from tests with debian-cd
Diffstat (limited to 'common/jessie-arm64.sh')
-rwxr-xr-x | common/jessie-arm64.sh | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/common/jessie-arm64.sh b/common/jessie-arm64.sh new file mode 100755 index 0000000..4ac9f8d --- /dev/null +++ b/common/jessie-arm64.sh @@ -0,0 +1,33 @@ +#!/bin/sh + +set -e + +# define before sourcing common +WHO=`whoami` +USER='user/live' +SUITE='jessie' +SIZE='5G' +ARCH='arm64' +BINFMT='/usr/bin/qemu-aarch64-static' +SHARE_PATH='/usr/share/vmdebootstrap/common' +# needs a path for arch and task desktop +IMAGE_PATH='.' + +. ${SHARE_PATH}/customise.lib + +sudo vmdebootstrap \ + ${BASE_OPTS} --user ${USER} \ + --size ${SIZE} \ + --arch ${ARCH} \ + --foreign ${BINFMT} \ + --no-extlinux \ + --grub --use-uefi \ + --package dosfstools \ + --distribution ${SUITE} \ + --customize "${SHARE_PATH}/${SUITE}-${ARCH}-hook.sh" \ + --image ${IMAGE_PATH}/${SUITE}-${ARCH}.img \ + "$@" + +# report results and check we have something valid. +ls -l ${IMAGE_PATH}/${SUITE}-${ARCH}.img +md5sum ${IMAGE_PATH}/${SUITE}-${ARCH}.img |