blob: a0d2158c829e2e0067629408636a0c8aab1869fc (
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
66
67
68
69
70
71
72
|
#!/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"
lb_opts="$lb_opts --security false"
lb_opts="$lb_opts --updates false"
;;
--stable)
dist="$(debian-distro-info --stable || echo stable)"
lb_opts="$lb_opts --security true"
lb_opts="$lb_opts --updates true"
lb_opts="$lb_opts --backports true"
;;
*)
temp="$temp "'"'"$arg"'"'
;;
esac
shift
done
eval set -- "$temp"
case "$arch" in
amd64)
lb_opts="$lb_opts --debian-installer none"
lb_opts="$lb_opts --linux-flavours amd64"
;;
i386)
lb_opts="$lb_opts --debian-installer none"
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-firmware non-free" \
--bootappend-live "boot=live quiet splash" \
--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 \
"$@"
|