summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/live-build.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/live-build.sh b/bin/live-build.sh
index f5163eca..e28c80ba 100755
--- a/bin/live-build.sh
+++ b/bin/live-build.sh
@@ -16,9 +16,10 @@ cd $TMPDIR
trap cleanup_all INT TERM EXIT
# $1 is used for the hostname and username
-# $2 is choosing the flavor
-lb config --distribution jessie --bootappend-live "boot=live config hostname=$1 username=$1"
-case "$2" in
+# $2 is used for the suite
+# $3 is choosing the flavor
+lb config --distribution $2 --bootappend-live "boot=live config hostname=$1 username=$1"
+case "$3" in
standalone) echo education-standalone > config/package-lists/live.list.chroot
;;
gnome) echo gnome > config/package-lists/live.list.chroot
@@ -29,7 +30,7 @@ case "$2" in
esac
sudo lb build
mkdir -p /srv/live-build/results
-cp -v live-image-amd64.hybrid.iso /srv/live-build/results/$1_$2_live_amd64.iso
+cp -v live-image-amd64.hybrid.iso /srv/live-build/results/$1_$2_$3_live_amd64.iso
cleanup_all
trap - INT TERM EXIT