From 54f6333eda581b3847977b168cd062f40fe2fe14 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 1 Jan 2015 22:05:14 +0100 Subject: build debian-edu jessie live images --- bin/live-build.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 bin/live-build.sh (limited to 'bin/live-build.sh') diff --git a/bin/live-build.sh b/bin/live-build.sh new file mode 100755 index 00000000..5a7f62e2 --- /dev/null +++ b/bin/live-build.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +# Copyright 2014-2015 Holger Levsen +# released under the GPLv=2 + +DEBUG=false +. /srv/jenkins/bin/common-functions.sh +common_init "$@" + +cleanup_all() { + rm -r $TMPDIR +} + +TMPDIR=$(mktemp --tmpdir=/srv/workspace -d) +trap cleanup_all INT TERM EXIT + +cd $TMPDIR +# build an debian-edu .iso for now... +# $1 is debian-edu +# $2 is standalone... +# FIXME: do debian images too +lb config --distribution jessie --bootappend-live "boot=live config hostname=debian-edu username=debian-edu" +echo education-standalone > config/package-lists/live.list.chroot +# FIXME add serial console +lb build +ls -la *.iso || true +cp *.iso /srv/workspace +# FIXME: use subdir there... (shared with downloaded .isos?) + +cleanup_all +trap - INT TERM EXIT + -- cgit v1.2.3-54-g00ecf