Commit 0f365396 authored by Holger Levsen's avatar Holger Levsen
Browse files

drop everything live-build related

parent 288ea56c
Loading
Loading
Loading
Loading

bin/live-build.sh

deleted100755 → 0
+0 −47
Original line number Diff line number Diff line
#!/bin/bash

# Copyright 2014-2015 Holger Levsen <holger@layer-acht.org>
# released under the GPLv=2

DEBUG=false
. /srv/jenkins/bin/common-functions.sh
common_init "$@"

cleanup_all() {
	sudo rm -rf --one-file-system $TMPDIR
}

TMPDIR=$(mktemp --tmpdir=/srv/live-build -d -t live-build-XXXXXXXX)
cd $TMPDIR
trap cleanup_all INT TERM EXIT

# $1 is used for the hostname and username
# $2 is used for the suite
# $3 is choosing the flavor
lb config --distribution $2 --bootappend-live "boot=live config hostname=$1 username=$1"
cp -rv /srv/jenkins/live/config .
case "$3" in
	standalone)	echo education-standalone >> config/package-lists/live.list.chroot
			echo education-desktop-xfce >> config/package-lists/live.list.chroot
			echo education-laptop >> config/package-lists/live.list.chroot
			;;
	workstation)	echo education-workstation >> config/package-lists/live.list.chroot
			echo education-desktop-xfce >> config/package-lists/live.list.chroot
			echo education-laptop >> config/package-lists/live.list.chroot
			;;
	gnome)		echo task-gnome-desktop >> config/package-lists/live.list.chroot
			;;
	xfce)		echo task-xfce-desktop >> config/package-lists/live.list.chroot
			;;
	*)		;;
esac
sudo lb build
mkdir -p /srv/live-build/results
sudo cp -v live-image-amd64.hybrid.iso /srv/live-build/results/$1_$2_$3_live_amd64.iso
echo
echo "$(date -u) - live image created:"
ls -lh /srv/live-build/results/$1_$2_$3_live_amd64.iso
echo

cleanup_all
trap - INT TERM EXIT
+0 −1
Original line number Diff line number Diff line
@@ -185,7 +185,6 @@ build_jenkins_job_health_page() {
	FILTER[23]="g-i-installation_debian-edu_jessie"
	FILTER[24]="g-i-installation_debian-edu_stretch"
	FILTER[25]="debian-archive-keyring"
	FILTER[26]="live:d-i_build"
	numfilters=${#FILTER[@]}
	let numfilters-=1	# that's what you get when you start counting from 0
	write_page "<!DOCTYPE html><html lang=\"en\"><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">"
+0 −1
Original line number Diff line number Diff line
@@ -25,4 +25,3 @@
/srv/reproducible-results /srv/reproducible-results none rw,bind 0 0
/srv/d-i        /srv/d-i        none    rw,bind         0        0
/srv/jenkins    /srv/jenkins    none    rw,bind         0        0
/srv/live-build /srv/live-build none    rw,bind         0        0
+0 −2
Original line number Diff line number Diff line
@@ -15,11 +15,9 @@ jenkins ALL= \
	/bin/ls -la /media/*, \
	/bin/rm -rf --one-file-system /chroots/*, \
	/bin/rm -rf --one-file-system /schroots/*, \
	/bin/rm -rf --one-file-system /srv/live-build/*, \
	/bin/rm -rf --one-file-system /srv/workspace/pbuilder/*, \
	/bin/rm -rf --one-file-system /tmp/*, \
	/bin/rm -rv --one-file-system /tmp/*, \
	/bin/cp -v *.iso /srv/live-build/results/*, \
	/bin/mv /chroots/* /schroots/*, \
	/bin/mv /schroots/* /schroots/*, \
	/bin/umount -l /chroots/*, \
+0 −2
Original line number Diff line number Diff line
@@ -13,9 +13,7 @@ jenkins ALL= \
	/bin/ls -la /media/*, \
	/bin/rm -rf --one-file-system /chroots/*, \
	/bin/rm -rf --one-file-system /schroots/*, \
	/bin/rm -rf --one-file-system /srv/live-build/*, \
	/bin/rm -rf --one-file-system /srv/workspace/pbuilder/*, \
	/bin/cp -v *.iso /srv/live-build/results/*, \
	/bin/mv /chroots/* /schroots/*, \
	/bin/mv /schroots/* /schroots/*, \
	/bin/umount -l /chroots/*, \
Loading