blob: 4c2c3bd1a78e9c045f5c05507db0a0de0873a623 (
plain)
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
# scripts/00-defaults.sh
Defaults ()
{
# Set architecture name
if [ -z "${LIVE_ARCHITECTURE}" ]
then
LIVE_ARCHITECTURE="`dpkg-architecture -qDEB_BUILD_ARCH`"
fi
# Set build directory
if [ -z "${LIVE_ROOT}" ]
then
LIVE_ROOT="`pwd`/live"
fi
# Set rootfs directory
if [ -d "${LIVE_ROOTFS}" ]
then
LIVE_CHROOT="${LIVE_ROOTFS}"
else
LIVE_CHROOT="${LIVE_ROOT}/chroot"
fi
# Set distribution name
if [ -z "${LIVE_DISTRIBUTION}" ]
then
LIVE_DISTRIBUTION="unstable"
fi
# Set bootstrap flavour
if [ -z "${LIVE_FLAVOUR}" ]
then
LIVE_FLAVOUR="standard"
fi
# Set linux-image flavour
if [ -z "${LIVE_LINUX}" ]
then
case "${LIVE_ARCHITECTURE}" in
alpha)
LIVE_LINUX="alpha-generic"
;;
amd64)
if [ "${LIVE_DISTRIBUTION}" == unstable ]
then
LIVE_LINUX="amd64-k8"
else
LIVE_LINUX="amd64-generic"
fi
;;
arm)
echo "E: You need to specify the linux flavour."
exit 1
;;
hppa)
LIVE_LINUX="parisc"
;;
i386)
LIVE_LINUX="486"
;;
ia64)
LIVE_LINUX="itanium"
;;
m68k)
echo "E: You need to specify the linux flavour."
exit 1
;;
powerpc)
LIVE_LINUX="powerpc"
;;
s390)
LIVE_LINUX="s390"
;;
sparc)
LIVE_LINUX="sparc32"
;;
*)
echo "FIXME: Architecture not yet supported."
exit 1
;;
esac
fi
# Set logfile
if [ -z "${LIVE_LOGFILE}" ]
then
LIVE_LOGFILE="${LIVE_ROOT}/make-live.log"
fi
# Set mirror server
if [ -z "${LIVE_MIRROR}" ]
then
LIVE_MIRROR="http://ftp.debian.org/debian"
fi
# Set package list
if [ -z "${LIVE_PACKAGE_LIST}" ] && [ ! -z "${LIVE_LIST}" ]
then
LIVE_PACKAGE_LIST="/usr/share/make-live/lists/${LIVE_LIST}"
fi
# Set sections names
if [ -z "${LIVE_SECTIONS}" ]
then
LIVE_SECTIONS="main"
fi
# Set templates directory
if [ ! -z "${LIVE_TEMPLATES}" ]
then
if [ ! -d "${LIVE_TEMPLATES}" ]
then
echo "E: ${LIVE_TEMPLATES} is not a directory."
exit 1
fi
else
LIVE_TEMPLATES="/usr/share/make-live/templates"
fi
}
|