summaryrefslogtreecommitdiffstats
path: root/auto/config
blob: 89b0f0f0b8e038e6bb267b3e616f0e46fd78c479 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/sh

# You can put local mirrors here if you want
mirror=http://deb.debian.org/debian/

# Detect target architecture and filter args
temp=""
arch=$(dpkg --print-architecture)
dist="unstable"
lb_opts=""
while [ $# -gt 0 ]; do
	arg="$1"
	case "$arg" in
	-a|--arch|--architecture|--architectures)
		arch="$2"
		temp="$temp "'"'"$arg"'"'
		temp="$temp "'"'"$2"'"'
		shift
		;;
	--sid|--unstable)
		dist="unstable"
		;;
	--testing)
		dist="testing"
		;;
	*)
		temp="$temp "'"'"$arg"'"'
		;;
	esac
	shift
done
eval set -- "$temp"

case "$arch" in
    amd64)
	lb_opts="$lb_opts --debian-installer live"
	lb_opts="$lb_opts --linux-flavours amd64"
    ;;
    i386)
	lb_opts="$lb_opts --debian-installer live"
	lb_opts="$lb_opts --linux-flavours 686-pae"
    ;;
    armel|armhf)
	lb_opts="$lb_opts --binary-images hdd --binary-filesystem ext4 --chroot-filesystem none"
    ;;
    *)
	echo "WARNING: configuration not tested on arch $arch" >&2
    ;;
esac

lb config noauto \
	--archive-areas "main contrib non-free" \
	--bootappend-live "boot=live quiet splash" \
	--debian-installer-distribution daily \
	--distribution "$dist" \
	--firmware-binary true \
	--firmware-chroot true \
	--image-name "xebian-$dist" \
	--iso-application "Xebian" \
	--iso-publisher "Xebian team" \
	--linux-packages linux-image \
	--mirror-bootstrap "$mirror" \
	--win32-loader false \
	$lb_opts \
	"$@"