Imported Upstream version 3.0.5
Raphaƫl Hertzog
10 years ago
29 | 29 | man live-build |
30 | 30 | exit 0 |
31 | 31 | else |
32 | Echo "live-build is a set of scripts to build Debian Live system images." | |
33 | echo | |
34 | Echo "The idea behind live-build is a framework that uses a configuration directory to completely automate and customize all aspects of building a Live image." | |
32 | Echo "live-build contains the scripts to build a Debian Live system from a configuration directory." | |
35 | 33 | echo |
36 | 34 | Echo "An introduction to live-build can be found in the live-build(7) manpage." |
35 | ||
37 | 36 | exit 0 |
38 | 37 | fi |
0 | The grub splash for Debian Live was made by Daniel Baumann <[email protected]> | |
1 | based on the original work of Mark Riedesel. | |
2 | ||
3 | The contribution of Daniel is hereby placed in the public domain (no rights | |
4 | reserved). | |
5 | ||
6 | --------------- | |
7 | http://dugnet.com/klown/pics/klowner_debboot.png | |
8 | by Mark Riedesel, license same as open use logo | |
9 | ||
10 | To create klowner.rle: | |
11 | ||
12 | 1. convert klowner.png klowner.bmp | |
13 | 2. bmptoppm < klowner.bmp | ppmtolss16 #FBFDFA=7 > klowner.rle | |
14 | ||
15 | (FBFDFA is the color used for the inside of the "n" in Debian.) | |
16 | --------------- | |
17 | ||
18 | Debian Open Use Logo License | |
19 | ||
20 | Copyright (c) 1999 Software in the Public Interest | |
21 | This logo or a modified version may be used by anyone to refer to the Debian | |
22 | project, but does not indicate endorsement by the project. | |
23 | ||
24 | Note: we would appreciate that you make the image a link to | |
25 | http://www.debian.org/ if you use it on a web page. |
30 | 30 | # Sending http header |
31 | 31 | echo "Content-type: text/html" |
32 | 32 | echo |
33 | ||
34 | #QUERY_STRING=`cat /dev/stdin` | |
35 | QUERY_STRING=$(cat /dev/stdin) | |
36 | # Translate parameters | |
37 | QUERY_STRING=$(echo "${QUERY_STRING}" | sed -e 's/%2F/\//g' -e 's/+/ /g' -e 's/%3B/;/g' -e 's/%7E/~/g' -e 's/%3A/:/g' -e 's/%40/@/g' -e 's/%3D/=/g' -e 's/%2B/+/g') | |
38 | # Debug the filtering string | |
39 | # echo ${QUERY_STRING} | |
40 | ||
33 | 41 | |
34 | 42 | # Sending html header |
35 | 43 | cat "${_TEMPLATES}"/header.html |
50 | 58 | # Converting '~': sed 's/%7E/\~/g' |
51 | 59 | # Converting '=': sed 's/%3D/=/g' |
52 | 60 | # Converting '+': sed 's/%2B/+/g' |
53 | ||
54 | # Translate parameters | |
55 | QUERY_STRING=$(echo "${QUERY_STRING}" | sed -e 's/%2F/\//g' -e 's/+/ /g' -e 's/%3B/;/g' -e 's/%7E/~/g' -e 's/%3A/:/g' -e 's/%40/@/g' -e 's/%3D/=/g' -e 's/%2B/+/g') | |
56 | # Debug the filtering string | |
57 | # echo ${QUERY_STRING} | |
58 | 61 | |
59 | 62 | |
60 | 63 | _EMAIL=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])email=[-0-9a-zA-Z._@]+' | cut -f 2 -d '=' | head -n1) |
62 | 62 | # Pull in variables from the build file. |
63 | 63 | . "${_FILE}" |
64 | 64 | |
65 | # Drop out some build data for information if something goes wrong. | |
66 | echo "`date +%b\ %d\ %H:%M:%S` ${_HOSTNAME} live-build-cgi: begin web build (${_BUILD})." >> /var/log/live | |
67 | ||
65 | 68 | # Clone the git config to target build directory |
66 | 69 | git clone ${_LB_GIT} "${_TEMPDIR}"/"${_BUILD}" >> /var/log/live |
67 | 70 | _ERRORGIT="${?}" |
68 | 71 | |
72 | # Sanity check to default to something since we are going to build from git clone. | |
73 | if [ -z "${_LB_CONFIG}" ] | |
74 | then | |
75 | _LB_CONFIG="standard" | |
76 | fi | |
77 | ||
69 | 78 | # Now set a variable for the correct build path |
70 | 79 | _BUILD_PATH="${_TEMPDIR}/${_BUILD}/images/${_LB_CONFIG}" |
71 | 80 | |
72 | # Drop out some build data for information if something goes wrong. | |
73 | echo "`date +%b\ %d\ %H:%M:%S` ${_HOSTNAME} live-build-cgi: begin web build (${_BUILD})." >> /var/log/live | |
81 | _DATE_START="`date -R`" | |
82 | echo "Begin live-build-cgi: ${_DATE_START}" > "${_BUILD_PATH}"/log | |
83 | echo "Info live-build-cgi: Config tree cloned from ${_LB_GIT} for build ${_BUILD}" >> "${_BUILD_PATH}"/log | |
74 | 84 | |
75 | 85 | # Creating directory for the config/package-lists |
76 | 86 | mkdir -p "${_BUILD_PATH}"/config/package-lists |
81 | 91 | echo "${_LB_CGIPACKAGES}" > "${_BUILD_PATH}"/config/package-lists/cgipackages.list.chroot |
82 | 92 | fi |
83 | 93 | |
84 | _DATE_START="`date -R`" | |
85 | echo "Begin: ${_DATE_START}" > "${_BUILD_PATH}"/log | |
86 | ||
87 | 94 | # Generating config here |
88 | 95 | if [ "${_ERRORGIT}" -eq "0" ] |
89 | 96 | then |
90 | 97 | cd "${_BUILD_PATH}" |
91 | 98 | # Do config with git and stack on config file params to build |
92 | lb config --distribution "${LB_DISTRIBUTION}" --architectures "${LB_ARCHITECTURES}" --archive-areas "${LB_ARCHIVE_AREAS}" --chroot-filesystem "${LB_CHROOT_FILESYSTEM}" --linux-flavours "${LB_LINUX_FLAVOURS}" --security "${LB_SECURITY}" --apt-indices "${LB_APT_INDICES}" --bootappend-install "${LB_BOOTAPPEND_INSTALL}" --bootappend-live "${LB_BOOTAPPEND_LIVE}" --bootloader "${LB_BOOTLOADER}" --debian-installer "${LB_DEBIAN_INSTALLER}" --iso-application "${LB_ISO_APPLICATION}" --iso-preparer "${LB_ISO_PREPARER}" --iso-publisher "${LB_ISO_PUBLISHER}" --iso-volume "${LB_ISO_VOLUME}" --memtest "${LB_MEMTEST}" --net-root-path "${LB_NET_ROOT_PATH}" --net-root-server "${LB_NET_ROOT_SERVER}" --source-images "${LB_SOURCE_IMAGES}" --source "${LB_SOURCE}" | |
99 | lb config ${_CGI_CONFIG_APPEND} --distribution "${LB_DISTRIBUTION}" --binary-images "${LB_BINARY_IMAGES}" --architectures "${LB_ARCHITECTURES}" --archive-areas "${LB_ARCHIVE_AREAS}" --chroot-filesystem "${LB_CHROOT_FILESYSTEM}" --linux-flavours "${LB_LINUX_FLAVOURS}" --security "${LB_SECURITY}" --apt-indices "${LB_APT_INDICES}" --bootappend-install "${LB_BOOTAPPEND_INSTALL}" --bootappend-live "${LB_BOOTAPPEND_LIVE}" --bootloader "${LB_BOOTLOADER}" --debian-installer "${LB_DEBIAN_INSTALLER}" --iso-application "${LB_ISO_APPLICATION}" --iso-preparer "${LB_ISO_PREPARER}" --iso-publisher "${LB_ISO_PUBLISHER}" --iso-volume "${LB_ISO_VOLUME}" --memtest "${LB_MEMTEST}" --net-root-path "${LB_NET_ROOT_PATH}" --net-root-server "${LB_NET_ROOT_SERVER}" --source-images "${LB_SOURCE_IMAGES}" --source "${LB_SOURCE}" | |
93 | 100 | _ERRORCONFIG="${?}" |
94 | 101 | else |
95 | echo "Config stage skipped. The git clone produced an error: ${_ERRORGIT}" > "${_BUILD_PATH}"/log | |
102 | echo "Config stage skipped. The git clone produced an error: ${_ERRORGIT}" >> "${_BUILD_PATH}"/log | |
96 | 103 | fi |
97 | 104 | |
98 | 105 | # Run build if config went ok |
101 | 108 | lb build >> "${_BUILD_PATH}"/log 2>&1 |
102 | 109 | _ERRORBUILD="${?}" |
103 | 110 | else |
104 | echo "Build stage skipped. Config produced an error: ${_ERRORCONFIG}" > "${_BUILD_PATH}"/log | |
111 | echo "Build stage skipped. Config produced an error: ${_ERRORCONFIG}" >> "${_BUILD_PATH}"/log | |
105 | 112 | fi |
106 | 113 | |
107 | 114 | _DATE_END="`date -R`" |
12 | 12 | _SERVER="http://live.debian.net/build" |
13 | 13 | |
14 | 14 | _LB_GIT="git://live-systems.org/git/live-images.git" |
15 | ||
16 | _CGI_CONFIG_APPEND="" |
361 | 361 | |
362 | 362 | progress-linux) |
363 | 363 | LB_PARENT_MIRROR_BOOTSTRAP="${LB_PARENT_MIRROR_BOOTSTRAP:-http://ftp.debian.org/debian/}" |
364 | LB_MIRROR_BOOTSTRAP="${LB_MIRROR_BOOTSTRAP:-http://cdn.archive.progress-linux.org/progress/}" | |
364 | LB_MIRROR_BOOTSTRAP="${LB_MIRROR_BOOTSTRAP:-http://cdn.archive.progress-linux.org/packages/}" | |
365 | 365 | ;; |
366 | 366 | |
367 | 367 | ubuntu) |
444 | 444 | # Setting backports mirror to fetch packages from |
445 | 445 | case "${LB_MODE}" in |
446 | 446 | debian) |
447 | LB_MIRROR_CHROOT_BACKPORTS="${LB_MIRROR_CHROOT_BACKPORTS:-http://backports.debian.org/debian-backports/}" | |
447 | case "${LB_DISTRIBUTION}" in | |
448 | squeeze) | |
449 | LB_MIRROR_CHROOT_BACKPORTS="${LB_MIRROR_CHROOT_BACKPORTS:-http://backports.debian.org/debian-backports/}" | |
450 | ;; | |
451 | ||
452 | *) | |
453 | LB_MIRROR_CHROOT_BACKPORTS="${LB_MIRROR_CHROOT_BACKPORTS:-${LB_MIRROR_CHROOT}}" | |
454 | ;; | |
455 | esac | |
456 | ||
448 | 457 | LB_PARENT_MIRROR_CHROOT_BACKPORTS="${LB_PARENT_MIRROR_CHROOT_BACKPORTS:-${LB_MIRROR_CHROOT_BACKPORTS}}" |
449 | 458 | ;; |
450 | 459 | |
556 | 565 | # Setting backports mirror which ends up in the image |
557 | 566 | case "${LB_MODE}" in |
558 | 567 | debian) |
559 | LB_MIRROR_BINARY_BACKPORTS="${LB_MIRROR_BINARY_BACKPORTS:-http://http.debian.net/debian-backports/}" | |
568 | case "${LB_DISTRIBUTION}" in | |
569 | squeeze) | |
570 | LB_MIRROR_BINARY_BACKPORTS="${LB_MIRROR_BINARY_BACKPORTS:-http://http.debian.net/debian-backports/}" | |
571 | ;; | |
572 | ||
573 | *) | |
574 | LB_MIRROR_BINARY_BACKPORTS="${LB_MIRROR_BINARY_BACKPORTS:-${LB_MIRROR_BINARY}}" | |
575 | ;; | |
576 | esac | |
577 | ||
560 | 578 | LB_PARENT_MIRROR_BINARY_BACKPORTS="${LB_PARENT_MIRROR_BINARY_BACKPORTS:-${LB_MIRROR_BINARY_BACKPORTS}}" |
561 | 579 | ;; |
562 | 580 | |
812 | 830 | |
813 | 831 | # Setting updates updates option |
814 | 832 | case "${LB_PARENT_DISTRIBUTION}" in |
815 | wheezy|jessie|sid) | |
833 | jessie|sid) | |
816 | 834 | LB_UPDATES="${LB_UPDATES:-false}" |
817 | 835 | ;; |
818 | 836 | |
848 | 866 | # Setting apt indices |
849 | 867 | case "${LB_MODE}" in |
850 | 868 | progress-linux) |
851 | LB_APT_INDICES="${LB_APT_INDICES:-none}" | |
869 | LB_APT_INDICES="${LB_APT_INDICES:-false}" | |
852 | 870 | ;; |
853 | 871 | |
854 | 872 | *) |
1200 | 1218 | fi |
1201 | 1219 | fi |
1202 | 1220 | |
1221 | if echo ${LB_HDD_LABEL} | grep -qs ' ' | |
1222 | then | |
1223 | Echo_error "There are currently no whitespaces supported in hdd labels." | |
1224 | ||
1225 | exit 1 | |
1226 | fi | |
1227 | ||
1203 | 1228 | if [ "${LB_DEBIAN_INSTALLER}" != "false" ] |
1204 | 1229 | then |
1205 | 1230 | # d-i true, no caching |
22 | 22 | @if [ ! -x "$$(which po4a 2>/dev/null)" ]; \ |
23 | 23 | then \ |
24 | 24 | echo "E: po4a - command not found"; \ |
25 | echo "I: po4a can be optained from http://po4a.alioth.debian.org/"; \ | |
25 | echo "I: po4a can be obtained from http://po4a.alioth.debian.org/"; \ | |
26 | 26 | echo "I: On Debian based systems, po4a can be installed with 'apt-get install po4a'."; \ |
27 | 27 | exit 1; \ |
28 | 28 | fi |
0 | .TH LIVE\-BUILD 1 2013\-02\-14 3.0.1-1 "Debian Live Project" | |
0 | .TH LIVE\-BUILD 1 2013\-04\-30 3.0.5-1 "Debian Live Project" | |
1 | 1 | |
2 | 2 | .SH NAME |
3 | 3 | \fBlb\fR \- wrapper for live\-build programs |
0 | .TH LIVE\-BUILD 1 2013\-02\-14 3.0.1-1 "Debian Live Project" | |
0 | .TH LIVE\-BUILD 1 2013\-04\-30 3.0.5-1 "Debian Live Project" | |
1 | 1 | |
2 | 2 | .SH NAME |
3 | 3 | \fBlb binary\fR \- Complete the binary stage |
0 | .TH LIVE\-BUILD 1 2013\-02\-14 3.0.1-1 "Debian Live Project" | |
0 | .TH LIVE\-BUILD 1 2013\-04\-30 3.0.5-1 "Debian Live Project" | |
1 | 1 | |
2 | 2 | .SH NAME |
3 | 3 | \fBlb bootstrap\fR \- Complete the bootstrap stage |
0 | .TH LIVE\-BUILD 1 2013\-02\-14 3.0.1-1 "Debian Live Project" | |
0 | .TH LIVE\-BUILD 1 2013\-04\-30 3.0.5-1 "Debian Live Project" | |
1 | 1 | |
2 | 2 | .SH NAME |
3 | 3 | \fBlb build\fR \- Complete the bootstrap, chroot, binary, and source stages |
0 | .TH LIVE\-BUILD 1 2013\-02\-14 3.0.1-1 "Debian Live Project" | |
0 | .TH LIVE\-BUILD 1 2013\-04\-30 3.0.5-1 "Debian Live Project" | |
1 | 1 | |
2 | 2 | .SH NAME |
3 | 3 | \fBlb chroot\fR \- Complete the chroot stage |
0 | .TH LIVE\-BUILD 1 2013\-02\-14 3.0.1-1 "Debian Live Project" | |
0 | .TH LIVE\-BUILD 1 2013\-04\-30 3.0.5-1 "Debian Live Project" | |
1 | 1 | |
2 | 2 | .SH NAME |
3 | 3 | \fBlb clean\fR \- Clean build directory |
0 | .TH LIVE\-BUILD 1 2013\-02\-14 3.0.1-1 "Debian Live Project" | |
0 | .TH LIVE\-BUILD 1 2013\-04\-30 3.0.5-1 "Debian Live Project" | |
1 | 1 | |
2 | 2 | .SH NAME |
3 | 3 | \fBlb config\fR \- Create config directory |
14 | 14 | .br |
15 | 15 | [\fB\-\-apt\-http\-proxy\fR \fIURL\fR] |
16 | 16 | .br |
17 | [\fB\-\-apt\-indices\fR true|false|none] | |
17 | [\fB\-\-apt\-indices\fR true|false] | |
18 | 18 | .br |
19 | 19 | [\fB\-\-apt\-options\fR \fIOPTION\fR|"\fIOPTIONS\fR"] |
20 | 20 | .br |
248 | 248 | sets the ftp proxy to be used by apt. By default, this is empty. Note that this variable is only for the proxy that gets used by apt internally within the chroot, it is not used for anything else. |
249 | 249 | .IP "\fB\-\-apt\-http\-proxy\fR \fIURL\fR" 4 |
250 | 250 | sets the http proxy to be used by apt. By default, this is empty. Note that this variable is only for the proxy that gets used by apt internally within the chroot, it is not used for anything else. |
251 | .IP "\fB\-\-apt\-indices\fR true|false|none" 4 | |
252 | defines if the resulting images should have apt indices or not and defaults to true. If set to none, no indices are included at all. | |
251 | .IP "\fB\-\-apt\-indices\fR true|false" 4 | |
252 | defines if the resulting images should have apt indices or not and defaults to true. | |
253 | 253 | .IP "\fB\-\-apt\-options\fR \fIOPTION\fR|""\fIOPTIONS\fR""" 4 |
254 | 254 | defines the default options that will be appended to every apt call that is made inside chroot during the building of the image. By default, this is set to \-\-yes to allow non-interactive installation of packages. |
255 | 255 | .IP "\fB\-\-aptitude\-options\fR \fIOPTION\fR|""\fIOPTIONS\fR""" 4 |
0 | .TH LIVE\-BUILD 1 2013\-02\-14 3.0.1-1 "Debian Live Project" | |
0 | .TH LIVE\-BUILD 1 2013\-04\-30 3.0.5-1 "Debian Live Project" | |
1 | 1 | |
2 | 2 | .SH NAME |
3 | 3 | \fBlb source\fR \- Complete the source stage |
0 | .TH LIVE\-BUILD 1 2013\-02\-14 3.0.1-1 "Debian Live Project" | |
0 | .TH LIVE\-BUILD 1 2013\-04\-30 3.0.5-1 "Debian Live Project" | |
1 | 1 | |
2 | 2 | .SH NAME |
3 | 3 | \fBlb testroot\fR \- Ensure that a system is built as root |
0 | .TH LIVE\-BUILD 7 2013\-02\-14 3.0.1-1 "Debian Live Project" | |
0 | .TH LIVE\-BUILD 7 2013\-04\-30 3.0.5-1 "Debian Live Project" | |
1 | 1 | |
2 | 2 | .SH NAME |
3 | 3 | \fBlive\-build\fR \- the Debian Live tool suite |
6 | 6 | msgid "" |
7 | 7 | msgstr "" |
8 | 8 | "Project-Id-Version: live-build VERSION\n" |
9 | "POT-Creation-Date: 2013-02-14 19:31+0100\n" | |
9 | "POT-Creation-Date: 2013-04-30 10:25+0300\n" | |
10 | 10 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
11 | 11 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
12 | 12 | "Language-Team: LANGUAGE <[email protected]>\n" |
28 | 28 | #: en/lb_chroot.1:1 en/lb_clean.1:1 en/lb_config.1:1 en/lb_source.1:1 |
29 | 29 | #: en/lb_testroot.1:1 en/live-build.7:1 |
30 | 30 | #, no-wrap |
31 | msgid "2013-02-14" | |
32 | msgstr "" | |
33 | ||
34 | #. type: TH | |
35 | #: en/lb.1:1 en/lb_binary.1:1 en/lb_bootstrap.1:1 en/lb_build.1:1 | |
36 | #: en/lb_chroot.1:1 en/lb_clean.1:1 en/lb_config.1:1 en/lb_source.1:1 | |
37 | #: en/lb_testroot.1:1 en/live-build.7:1 | |
38 | #, no-wrap | |
39 | msgid "3.0.1-1" | |
31 | msgid "2013-04-30" | |
32 | msgstr "" | |
33 | ||
34 | #. type: TH | |
35 | #: en/lb.1:1 en/lb_binary.1:1 en/lb_bootstrap.1:1 en/lb_build.1:1 | |
36 | #: en/lb_chroot.1:1 en/lb_clean.1:1 en/lb_config.1:1 en/lb_source.1:1 | |
37 | #: en/lb_testroot.1:1 en/live-build.7:1 | |
38 | #, no-wrap | |
39 | msgid "3.0.5-1" | |
40 | 40 | msgstr "" |
41 | 41 | |
42 | 42 | #. type: TH |
6 | 6 | msgid "" |
7 | 7 | msgstr "" |
8 | 8 | "Project-Id-Version: live-build VERSION\n" |
9 | "POT-Creation-Date: 2013-02-14 19:31+0100\n" | |
9 | "POT-Creation-Date: 2013-04-30 10:25+0300\n" | |
10 | 10 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
11 | 11 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
12 | 12 | "Language-Team: LANGUAGE <[email protected]>\n" |
28 | 28 | #: en/lb_chroot.1:1 en/lb_clean.1:1 en/lb_config.1:1 en/lb_source.1:1 |
29 | 29 | #: en/lb_testroot.1:1 en/live-build.7:1 |
30 | 30 | #, no-wrap |
31 | msgid "2013-02-14" | |
32 | msgstr "" | |
33 | ||
34 | #. type: TH | |
35 | #: en/lb.1:1 en/lb_binary.1:1 en/lb_bootstrap.1:1 en/lb_build.1:1 | |
36 | #: en/lb_chroot.1:1 en/lb_clean.1:1 en/lb_config.1:1 en/lb_source.1:1 | |
37 | #: en/lb_testroot.1:1 en/live-build.7:1 | |
38 | #, no-wrap | |
39 | msgid "3.0.1-1" | |
31 | msgid "2013-04-30" | |
32 | msgstr "" | |
33 | ||
34 | #. type: TH | |
35 | #: en/lb.1:1 en/lb_binary.1:1 en/lb_bootstrap.1:1 en/lb_build.1:1 | |
36 | #: en/lb_chroot.1:1 en/lb_clean.1:1 en/lb_config.1:1 en/lb_source.1:1 | |
37 | #: en/lb_testroot.1:1 en/live-build.7:1 | |
38 | #, no-wrap | |
39 | msgid "3.0.5-1" | |
40 | 40 | msgstr "" |
41 | 41 | |
42 | 42 | #. type: TH |
6 | 6 | msgid "" |
7 | 7 | msgstr "" |
8 | 8 | "Project-Id-Version: live-build VERSION\n" |
9 | "POT-Creation-Date: 2013-02-14 19:31+0100\n" | |
9 | "POT-Creation-Date: 2013-04-30 10:25+0300\n" | |
10 | 10 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
11 | 11 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
12 | 12 | "Language-Team: LANGUAGE <[email protected]>\n" |
28 | 28 | #: en/lb_chroot.1:1 en/lb_clean.1:1 en/lb_config.1:1 en/lb_source.1:1 |
29 | 29 | #: en/lb_testroot.1:1 en/live-build.7:1 |
30 | 30 | #, no-wrap |
31 | msgid "2013-02-14" | |
32 | msgstr "" | |
33 | ||
34 | #. type: TH | |
35 | #: en/lb.1:1 en/lb_binary.1:1 en/lb_bootstrap.1:1 en/lb_build.1:1 | |
36 | #: en/lb_chroot.1:1 en/lb_clean.1:1 en/lb_config.1:1 en/lb_source.1:1 | |
37 | #: en/lb_testroot.1:1 en/live-build.7:1 | |
38 | #, no-wrap | |
39 | msgid "3.0.1-1" | |
31 | msgid "2013-04-30" | |
32 | msgstr "" | |
33 | ||
34 | #. type: TH | |
35 | #: en/lb.1:1 en/lb_binary.1:1 en/lb_bootstrap.1:1 en/lb_build.1:1 | |
36 | #: en/lb_chroot.1:1 en/lb_clean.1:1 en/lb_config.1:1 en/lb_source.1:1 | |
37 | #: en/lb_testroot.1:1 en/live-build.7:1 | |
38 | #, no-wrap | |
39 | msgid "3.0.5-1" | |
40 | 40 | msgstr "" |
41 | 41 | |
42 | 42 | #. type: TH |
6 | 6 | msgid "" |
7 | 7 | msgstr "" |
8 | 8 | "Project-Id-Version: live-build VERSION\n" |
9 | "POT-Creation-Date: 2013-02-14 19:31+0100\n" | |
9 | "POT-Creation-Date: 2013-04-30 10:25+0300\n" | |
10 | 10 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
11 | 11 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
12 | 12 | "Language-Team: LANGUAGE <[email protected]>\n" |
28 | 28 | #: en/lb_chroot.1:1 en/lb_clean.1:1 en/lb_config.1:1 en/lb_source.1:1 |
29 | 29 | #: en/lb_testroot.1:1 en/live-build.7:1 |
30 | 30 | #, no-wrap |
31 | msgid "2013-02-14" | |
32 | msgstr "" | |
33 | ||
34 | #. type: TH | |
35 | #: en/lb.1:1 en/lb_binary.1:1 en/lb_bootstrap.1:1 en/lb_build.1:1 | |
36 | #: en/lb_chroot.1:1 en/lb_clean.1:1 en/lb_config.1:1 en/lb_source.1:1 | |
37 | #: en/lb_testroot.1:1 en/live-build.7:1 | |
38 | #, no-wrap | |
39 | msgid "3.0.1-1" | |
31 | msgid "2013-04-30" | |
32 | msgstr "" | |
33 | ||
34 | #. type: TH | |
35 | #: en/lb.1:1 en/lb_binary.1:1 en/lb_bootstrap.1:1 en/lb_build.1:1 | |
36 | #: en/lb_chroot.1:1 en/lb_clean.1:1 en/lb_config.1:1 en/lb_source.1:1 | |
37 | #: en/lb_testroot.1:1 en/live-build.7:1 | |
38 | #, no-wrap | |
39 | msgid "3.0.5-1" | |
40 | 40 | msgstr "" |
41 | 41 | |
42 | 42 | #. type: TH |
6 | 6 | msgid "" |
7 | 7 | msgstr "" |
8 | 8 | "Project-Id-Version: live-build VERSION\n" |
9 | "POT-Creation-Date: 2013-02-14 19:31+0100\n" | |
9 | "POT-Creation-Date: 2013-04-30 10:25+0300\n" | |
10 | 10 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
11 | 11 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
12 | 12 | "Language-Team: LANGUAGE <[email protected]>\n" |
28 | 28 | #: en/lb_chroot.1:1 en/lb_clean.1:1 en/lb_config.1:1 en/lb_source.1:1 |
29 | 29 | #: en/lb_testroot.1:1 en/live-build.7:1 |
30 | 30 | #, no-wrap |
31 | msgid "2013-02-14" | |
32 | msgstr "" | |
33 | ||
34 | #. type: TH | |
35 | #: en/lb.1:1 en/lb_binary.1:1 en/lb_bootstrap.1:1 en/lb_build.1:1 | |
36 | #: en/lb_chroot.1:1 en/lb_clean.1:1 en/lb_config.1:1 en/lb_source.1:1 | |
37 | #: en/lb_testroot.1:1 en/live-build.7:1 | |
38 | #, no-wrap | |
39 | msgid "3.0.1-1" | |
31 | msgid "2013-04-30" | |
32 | msgstr "" | |
33 | ||
34 | #. type: TH | |
35 | #: en/lb.1:1 en/lb_binary.1:1 en/lb_bootstrap.1:1 en/lb_build.1:1 | |
36 | #: en/lb_chroot.1:1 en/lb_clean.1:1 en/lb_config.1:1 en/lb_source.1:1 | |
37 | #: en/lb_testroot.1:1 en/live-build.7:1 | |
38 | #, no-wrap | |
39 | msgid "3.0.5-1" | |
40 | 40 | msgstr "" |
41 | 41 | |
42 | 42 | #. type: TH |
6 | 6 | msgid "" |
7 | 7 | msgstr "" |
8 | 8 | "Project-Id-Version: live-build VERSION\n" |
9 | "POT-Creation-Date: 2013-02-14 19:31+0100\n" | |
9 | "POT-Creation-Date: 2013-04-30 10:25+0300\n" | |
10 | 10 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
11 | 11 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
12 | 12 | "Language-Team: LANGUAGE <[email protected]>\n" |
28 | 28 | #: en/lb_chroot.1:1 en/lb_clean.1:1 en/lb_config.1:1 en/lb_source.1:1 |
29 | 29 | #: en/lb_testroot.1:1 en/live-build.7:1 |
30 | 30 | #, no-wrap |
31 | msgid "2013-02-14" | |
31 | msgid "2013-04-30" | |
32 | 32 | msgstr "" |
33 | 33 | |
34 | 34 | #. type: TH |
36 | 36 | #: en/lb_chroot.1:1 en/lb_clean.1:1 en/lb_config.1:1 en/lb_source.1:1 |
37 | 37 | #: en/lb_testroot.1:1 en/live-build.7:1 |
38 | 38 | #, no-wrap |
39 | msgid "3.0.1-1" | |
39 | msgid "3.0.5-1" | |
40 | 40 | msgstr "" |
41 | 41 | |
42 | 42 | #. type: TH |
6 | 6 | msgid "" |
7 | 7 | msgstr "" |
8 | 8 | "Project-Id-Version: live-build VERSION\n" |
9 | "POT-Creation-Date: 2013-02-14 19:31+0100\n" | |
9 | "POT-Creation-Date: 2013-04-30 10:25+0300\n" | |
10 | 10 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
11 | 11 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
12 | 12 | "Language-Team: LANGUAGE <[email protected]>\n" |
28 | 28 | #: en/lb_chroot.1:1 en/lb_clean.1:1 en/lb_config.1:1 en/lb_source.1:1 |
29 | 29 | #: en/lb_testroot.1:1 en/live-build.7:1 |
30 | 30 | #, no-wrap |
31 | msgid "2013-02-14" | |
31 | msgid "2013-04-30" | |
32 | 32 | msgstr "" |
33 | 33 | |
34 | 34 | #. type: TH |
36 | 36 | #: en/lb_chroot.1:1 en/lb_clean.1:1 en/lb_config.1:1 en/lb_source.1:1 |
37 | 37 | #: en/lb_testroot.1:1 en/live-build.7:1 |
38 | 38 | #, no-wrap |
39 | msgid "3.0.1-1" | |
39 | msgid "3.0.5-1" | |
40 | 40 | msgstr "" |
41 | 41 | |
42 | 42 | #. type: TH |
196 | 196 | |
197 | 197 | #. type: Plain text |
198 | 198 | #: en/lb_config.1:19 |
199 | msgid " [B<--apt-indices> true|false|none]" | |
199 | msgid " [B<--apt-indices> true|false]" | |
200 | 200 | msgstr "" |
201 | 201 | |
202 | 202 | #. type: Plain text |
819 | 819 | #. type: IP |
820 | 820 | #: en/lb_config.1:252 |
821 | 821 | #, no-wrap |
822 | msgid "B<--apt-indices> true|false|none" | |
822 | msgid "B<--apt-indices> true|false" | |
823 | 823 | msgstr "" |
824 | 824 | |
825 | 825 | #. type: Plain text |
826 | 826 | #: en/lb_config.1:254 |
827 | 827 | msgid "" |
828 | 828 | "defines if the resulting images should have apt indices or not and defaults " |
829 | "to true. If set to none, no indices are included at all." | |
829 | "to true." | |
830 | 830 | msgstr "" |
831 | 831 | |
832 | 832 | #. type: IP |
6 | 6 | msgid "" |
7 | 7 | msgstr "" |
8 | 8 | "Project-Id-Version: live-build VERSION\n" |
9 | "POT-Creation-Date: 2013-02-14 19:31+0100\n" | |
9 | "POT-Creation-Date: 2013-04-30 10:25+0300\n" | |
10 | 10 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
11 | 11 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
12 | 12 | "Language-Team: LANGUAGE <[email protected]>\n" |
28 | 28 | #: en/lb_chroot.1:1 en/lb_clean.1:1 en/lb_config.1:1 en/lb_source.1:1 |
29 | 29 | #: en/lb_testroot.1:1 en/live-build.7:1 |
30 | 30 | #, no-wrap |
31 | msgid "2013-02-14" | |
32 | msgstr "" | |
33 | ||
34 | #. type: TH | |
35 | #: en/lb.1:1 en/lb_binary.1:1 en/lb_bootstrap.1:1 en/lb_build.1:1 | |
36 | #: en/lb_chroot.1:1 en/lb_clean.1:1 en/lb_config.1:1 en/lb_source.1:1 | |
37 | #: en/lb_testroot.1:1 en/live-build.7:1 | |
38 | #, no-wrap | |
39 | msgid "3.0.1-1" | |
31 | msgid "2013-04-30" | |
32 | msgstr "" | |
33 | ||
34 | #. type: TH | |
35 | #: en/lb.1:1 en/lb_binary.1:1 en/lb_bootstrap.1:1 en/lb_build.1:1 | |
36 | #: en/lb_chroot.1:1 en/lb_clean.1:1 en/lb_config.1:1 en/lb_source.1:1 | |
37 | #: en/lb_testroot.1:1 en/live-build.7:1 | |
38 | #, no-wrap | |
39 | msgid "3.0.5-1" | |
40 | 40 | msgstr "" |
41 | 41 | |
42 | 42 | #. type: TH |
6 | 6 | msgid "" |
7 | 7 | msgstr "" |
8 | 8 | "Project-Id-Version: live-build VERSION\n" |
9 | "POT-Creation-Date: 2013-02-14 19:31+0100\n" | |
9 | "POT-Creation-Date: 2013-04-30 10:25+0300\n" | |
10 | 10 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
11 | 11 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
12 | 12 | "Language-Team: LANGUAGE <[email protected]>\n" |
28 | 28 | #: en/lb_chroot.1:1 en/lb_clean.1:1 en/lb_config.1:1 en/lb_source.1:1 |
29 | 29 | #: en/lb_testroot.1:1 en/live-build.7:1 |
30 | 30 | #, no-wrap |
31 | msgid "2013-02-14" | |
32 | msgstr "" | |
33 | ||
34 | #. type: TH | |
35 | #: en/lb.1:1 en/lb_binary.1:1 en/lb_bootstrap.1:1 en/lb_build.1:1 | |
36 | #: en/lb_chroot.1:1 en/lb_clean.1:1 en/lb_config.1:1 en/lb_source.1:1 | |
37 | #: en/lb_testroot.1:1 en/live-build.7:1 | |
38 | #, no-wrap | |
39 | msgid "3.0.1-1" | |
31 | msgid "2013-04-30" | |
32 | msgstr "" | |
33 | ||
34 | #. type: TH | |
35 | #: en/lb.1:1 en/lb_binary.1:1 en/lb_bootstrap.1:1 en/lb_build.1:1 | |
36 | #: en/lb_chroot.1:1 en/lb_clean.1:1 en/lb_config.1:1 en/lb_source.1:1 | |
37 | #: en/lb_testroot.1:1 en/live-build.7:1 | |
38 | #, no-wrap | |
39 | msgid "3.0.5-1" | |
40 | 40 | msgstr "" |
41 | 41 | |
42 | 42 | #. type: TH |
6 | 6 | msgid "" |
7 | 7 | msgstr "" |
8 | 8 | "Project-Id-Version: live-build VERSION\n" |
9 | "POT-Creation-Date: 2013-02-14 19:31+0100\n" | |
9 | "POT-Creation-Date: 2013-04-30 10:25+0300\n" | |
10 | 10 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
11 | 11 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
12 | 12 | "Language-Team: LANGUAGE <[email protected]>\n" |
28 | 28 | #: en/lb_chroot.1:1 en/lb_clean.1:1 en/lb_config.1:1 en/lb_source.1:1 |
29 | 29 | #: en/lb_testroot.1:1 en/live-build.7:1 |
30 | 30 | #, no-wrap |
31 | msgid "2013-02-14" | |
31 | msgid "2013-04-30" | |
32 | 32 | msgstr "" |
33 | 33 | |
34 | 34 | #. type: TH |
36 | 36 | #: en/lb_chroot.1:1 en/lb_clean.1:1 en/lb_config.1:1 en/lb_source.1:1 |
37 | 37 | #: en/lb_testroot.1:1 en/live-build.7:1 |
38 | 38 | #, no-wrap |
39 | msgid "3.0.1-1" | |
39 | msgid "3.0.5-1" | |
40 | 40 | msgstr "" |
41 | 41 | |
42 | 42 | #. type: TH |
805 | 805 | |
806 | 806 | case "${LB_PARENT_DISTRIBUTION}" in |
807 | 807 | wheezy) |
808 | DISTRIBUTIONS="testing" | |
808 | DISTRIBUTIONS="stable" | |
809 | 809 | ;; |
810 | 810 | |
811 | 811 | *) |
907 | 907 | fi |
908 | 908 | fi |
909 | 909 | |
910 | case "${LB_MODE}" in | |
911 | progress-linux) | |
912 | mv binary/install binary/installer | |
913 | ||
914 | rm -f binary/debian | |
915 | ||
916 | for _DIRECTORY in dists pool project firmware | |
917 | do | |
918 | if [ -e "${_DIRECTORY}" ] | |
919 | then | |
920 | mv binary/"${_DIRECTORY}" binary/installer | |
921 | fi | |
922 | done | |
923 | ;; | |
924 | esac | |
925 | ||
910 | 926 | # Saving cache |
911 | 927 | Save_cache cache/packages.binary |
912 | 928 |
174 | 174 | case "${LB_BUILD_WITH_CHROOT}" in |
175 | 175 | true) |
176 | 176 | Chroot chroot "parted -s ${FREELO} mklabel ${PARTITION_TABLE_TYPE}" || true |
177 | Chroot chroot "parted -s ${FREELO} mkpart primary ${PARTITION_TYPE} 0.0 100%" || true | |
177 | Chroot chroot "parted -s ${FREELO} mkpart primary ${PARTITION_TYPE} 0% 100%" || true | |
178 | 178 | Chroot chroot "parted -s ${FREELO} set 1 boot on" || true |
179 | 179 | Chroot chroot "parted -s ${FREELO} set 1 lba off" || true |
180 | 180 | |
186 | 186 | |
187 | 187 | false) |
188 | 188 | parted -s ${FREELO} mklabel ${PARTITION_TABLE_TYPE} || true |
189 | parted -s ${FREELO} mkpart primary ${PARTITION_TYPE} 0.0 100% || true | |
189 | parted -s ${FREELO} mkpart primary ${PARTITION_TYPE} 0% 100% || true | |
190 | 190 | parted -s "${FREELO}" set 1 boot on || true |
191 | 191 | parted -s "${FREELO}" set 1 lba off || true |
192 | 192 |
23 | 23 | Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source |
24 | 24 | Set_defaults |
25 | 25 | |
26 | if [ "${LB_LOADLIN}" != "true" ] | |
26 | if [ "${LB_LOADLIN}" != "true" ] || [ "${LB_BINARY_IMAGES}" = "netboot" ] | |
27 | 27 | then |
28 | 28 | exit 0 |
29 | 29 | fi |
149 | 149 | # Copy in two steps since the theme can have absolute symlinks and would therefore not be dereferenced correctly |
150 | 150 | cp -a ${_SOURCE} chroot/root |
151 | 151 | Chroot chroot cp -aL /root/$(basename ${_SOURCE}) /root/$(basename ${_SOURCE}).tmp || true |
152 | rm -rf chroot/$(basename ${_SOURCE}) | |
152 | rm -rf chroot/root/$(basename ${_SOURCE}) | |
153 | 153 | mv chroot/root/$(basename ${_SOURCE}).tmp ${_TARGET} |
154 | 154 | ;; |
155 | 155 |
84 | 84 | kernel=linux |
85 | 85 | arch=${LB_ARCHITECTURES} |
86 | 86 | default_desktop=gnome |
87 | i386/linux=install/vmlinuz | |
88 | i386/initrd=install/initrd.gz | |
87 | ${LB_ARCHITECTURES}/linux=install/vmlinuz | |
88 | ${LB_ARCHITECTURES}/initrd=install/initrd.gz | |
89 | 89 | EOF |
90 | 90 | |
91 | if [ -e install/gtk ] | |
91 | if [ -e binary/install/gtk ] | |
92 | 92 | then |
93 | 93 | |
94 | 94 | cat >> binary/win32-loader.ini << EOF |
95 | i386/gtk/linux=install/vmlinuz | |
96 | i386/gtk/initrd=install/gtk/initrd.gz | |
95 | ${LB_ARCHITECTURES}/gtk/linux=install/vmlinuz | |
96 | ${LB_ARCHITECTURES}/gtk/initrd=install/gtk/initrd.gz | |
97 | 97 | EOF |
98 | 98 | |
99 | 99 | fi |
31 | 31 | case "${LB_MODE}" in |
32 | 32 | progress-linux) |
33 | 33 | case "${LB_DISTRIBUTION}" in |
34 | artax*) | |
35 | _KEYS="1.0-artax 1.0-artax-packages" | |
34 | artax) | |
35 | _KEYS="1.0-artax" | |
36 | 36 | ;; |
37 | 37 | |
38 | baureo*) | |
39 | _KEYS="2.0-baureo 2.0-baureo-packages" | |
38 | artax-backports) | |
39 | _KEYS="1.0-artax 1.9-artax-backports" | |
40 | 40 | ;; |
41 | 41 | |
42 | chairon*) | |
43 | _KEYS="3.0-chairon 3.0-chairon-packages" | |
42 | baureo) | |
43 | _KEYS="2.0-baureo" | |
44 | ;; | |
45 | ||
46 | baureo-backports) | |
47 | _KEYS="2.0-baureo 2.9-baureo-backports" | |
48 | ;; | |
49 | ||
50 | chairon) | |
51 | _KEYS="3.0-chairon" | |
52 | ;; | |
53 | ||
54 | chairon-backports) | |
55 | _KEYS="3.0-chairon 3.9-chairon-backports" | |
44 | 56 | ;; |
45 | 57 | esac |
46 | 58 | |
55 | 67 | wget -q "${_URL}/archive-key-${_KEY}.asc" -O chroot/key.asc |
56 | 68 | wget -q "${_URL}/archive-key-${_KEY}.asc.sig" -O chroot/key.asc.sig |
57 | 69 | |
58 | if [ -e /usr/bin/gpgv ] && [ -e /usr/share/keyrings/debian-keyring.gpg ] | |
70 | if [ -e /usr/bin/gpgv ] | |
59 | 71 | then |
60 | Echo_message "Verifying archive-key ${_KEY} against debian-keyring..." | |
72 | if [ -e /usr/share/keyrings/debian-keyring.gpg ] || [ -e /usr/share/keyrings/debian-maintainers.gpg ] | |
73 | then | |
74 | _KEY_VALID="" | |
61 | 75 | |
62 | /usr/bin/gpgv --quiet --keyring /usr/share/keyrings/debian-keyring.gpg chroot/key.asc.sig chroot/key.asc > /dev/null 2>&1 || { Echo_error "archive-key ${_KEY} has invalid signature."; return 1;} | |
76 | for _KEYRING in /usr/share/keyrings/debian-keyring.gpg /usr/share/keyrings/debian-maintainers.gpg | |
77 | do | |
78 | if [ -e "${_KEYRING}" ] | |
79 | then | |
80 | Echo_message "Verifying archive-key ${_KEY} against $(basename ${_KEYRING} .gpg | sed -e 's|-keyring||') keyring..." | |
81 | ||
82 | set +e | |
83 | /usr/bin/gpgv --quiet --keyring ${_KEYRING} chroot/key.asc.sig chroot/key.asc > /dev/null 2>&1 && _KEY_VALID="true" && break | |
84 | set -e | |
85 | fi | |
86 | done | |
87 | ||
88 | case "${_KEY_VALID}" in | |
89 | true) | |
90 | Echo_message "Verifying ${_KEY} signature successful." | |
91 | ;; | |
92 | ||
93 | *) | |
94 | Echo_error "Verifying ${_KEY} signature failed." | |
95 | return 1 | |
96 | ;; | |
97 | esac | |
98 | else | |
99 | Echo_warning "Skipping archive-key ${_KEY} verification, debian-keyring not available..." | |
100 | fi | |
63 | 101 | else |
64 | Echo_warning "Skipping archive-key ${_KEY} verification, either gpgv or debian-keyring not available on host system..." | |
102 | Echo_warning "Skipping archive-key ${_KEY} verification, gpgv not available..." | |
65 | 103 | fi |
66 | 104 | |
67 | 105 | Echo_message "Importing archive-key ${_KEY}..." |
31 | 31 | if [ ! -x "$(which cdebootstrap 2>/dev/null)" ] |
32 | 32 | then |
33 | 33 | echo "E: cdebootstrap - command not found" |
34 | echo "I: cdebootstrap can be optained from http://ftp.debian.org/debian/pool/main/d/cdebootstrap/" | |
35 | echo "I: On Debian based systems, cdebootstrap can be installed with 'apt-get install debootstrap'." | |
34 | echo "I: cdebootstrap can be obtained from http://ftp.debian.org/debian/pool/main/d/cdebootstrap/" | |
35 | echo "I: On Debian based systems, cdebootstrap can be installed with 'apt-get install cdebootstrap'." | |
36 | 36 | exit 1 |
37 | 37 | fi |
38 | 38 |
31 | 31 | if [ ! -x "$(which debootstrap 2>/dev/null)" ] |
32 | 32 | then |
33 | 33 | echo "E: debootstrap - command not found" |
34 | echo "I: debootstrap can be optained from http://ftp.debian.org/debian/pool/main/d/debootstrap/" | |
34 | echo "I: debootstrap can be obtained from http://ftp.debian.org/debian/pool/main/d/debootstrap/" | |
35 | 35 | echo "I: On Debian based systems, debootstrap can be installed with 'apt-get install debootstrap'." |
36 | 36 | exit 1 |
37 | 37 | fi |
365 | 365 | |
366 | 366 | if [ "${LB_APT_SECURE}" = "true" ] |
367 | 367 | then |
368 | _LB_DOTGNUPG_EXISTED=0 | |
369 | if [ -d chroot/root/.gnupg ] | |
370 | then | |
371 | _LB_DOTGNUPG_EXISTED=1 | |
372 | fi | |
373 | ||
374 | # Ensure ~/.gnupg exists (required for gnupg >= ~1.4.9) | |
368 | if [ -e chroot/root/.gnupg ] | |
369 | then | |
370 | mv chroot/root/.gnupg chroot/root/.gnupg.orig | |
371 | fi | |
372 | ||
373 | # Ensure ~/.gnupg exists | |
375 | 374 | mkdir -p chroot/root/.gnupg |
376 | 375 | |
377 | 376 | # Temporarily replace /dev/random with /dev/urandom so as not |
435 | 434 | mv chroot/dev/random.orig chroot/dev/random |
436 | 435 | fi |
437 | 436 | |
438 | # Remove /root/.gnupg if we created it during the signing process | |
439 | if [ "${_LB_DOTGNUPG_EXISTED}" -eq 0 ] | |
440 | then | |
441 | rm -rf chroot/root/.gnupg | |
437 | rm -rf chroot/root/.gnupg | |
438 | ||
439 | if [ -e chroot/root/.gnupg.orig ] | |
440 | then | |
441 | mv chroot/root/.gnupg.orig chroot/root/.gnupg | |
442 | 442 | fi |
443 | 443 | fi |
444 | 444 |
39 | 39 | # Creating lock file |
40 | 40 | Create_lockfile .lock |
41 | 41 | |
42 | # Save start-stop-daemon program | |
43 | mv chroot/sbin/start-stop-daemon chroot/sbin/start-stop-daemon.orig | |
44 | ||
45 | # Create start-stop-daemon program | |
42 | # Create custom start-stop-daemon program | |
43 | Chroot chroot dpkg-divert --rename --quiet --add /sbin/start-stop-daemon | |
46 | 44 | |
47 | 45 | cat > chroot/sbin/start-stop-daemon << EOF |
48 | 46 | #!/bin/sh |
59 | 57 | EOF |
60 | 58 | |
61 | 59 | # Manual hacks for special packages |
60 | ||
61 | # Generic live-build handle for other live packages to act upon | |
62 | touch chroot/.live-build | |
62 | 63 | |
63 | 64 | # samhain |
64 | 65 | if [ -e /var/state/samhain/samhain_file ] |
88 | 89 | |
89 | 90 | # Manual hacks for special packages |
90 | 91 | |
92 | # Generic live-build handle | |
93 | rm -f chroot/.live-build | |
94 | ||
91 | 95 | # flash-kernel |
92 | 96 | rm -f chroot/usr/sbin/flash-kernel |
93 | 97 | Chroot chroot dpkg-divert --rename --quiet --remove /usr/sbin/flash-kernel |
102 | 106 | ${LB_ROOT_COMMAND} rmdir --ignore-fail-on-non-empty /var/state/samhain || true |
103 | 107 | fi |
104 | 108 | |
105 | # Restore start-stop-daemon program | |
106 | if [ -e chroot/sbin/start-stop-daemon.orig ] | |
107 | then | |
108 | mv chroot/sbin/start-stop-daemon.orig chroot/sbin/start-stop-daemon | |
109 | fi | |
109 | # Remove custom start-stop-daemon program | |
110 | rm -f chroot/sbin/start-stop-daemon | |
111 | Chroot chroot dpkg-divert --rename --quiet --remove /sbin/start-stop-daemon | |
110 | 112 | |
111 | 113 | # Remove dpkg sync configuration |
112 | 114 | rm -f chroot/etc/dpkg/dpkg.cfg.d/live-build |
28 | 28 | |
29 | 29 | case "${1}" in |
30 | 30 | install) |
31 | Echo_message "Configuring file /etc/hostname" | |
32 | ||
33 | 31 | # Checking stage file |
34 | 32 | Check_stagefile .build/chroot_hostname |
35 | 33 | |
39 | 37 | # Creating lock file |
40 | 38 | Create_lockfile .lock |
41 | 39 | |
42 | # Save hostname | |
43 | mv chroot/bin/hostname chroot/bin/hostname.orig | |
40 | # Create hostname file | |
41 | Echo_message "Configuring file /etc/hostname" | |
44 | 42 | |
45 | # Create hostname file | |
46 | 43 | echo "localhost.localdomain" > chroot/etc/hostname |
47 | 44 | |
45 | # Create custom hostname | |
48 | 46 | Echo_message "Configuring file /bin/hostname" |
49 | 47 | |
50 | # Create hostname program | |
48 | Chroot chroot dpkg-divert --rename --quiet --add /bin/hostname | |
51 | 49 | |
52 | 50 | cat > chroot/bin/hostname << EOF |
53 | 51 | #!/bin/sh |
78 | 76 | |
79 | 77 | Echo_message "Deconfiguring file /bin/hostname" |
80 | 78 | |
81 | # Restore hostname file | |
82 | if [ -e chroot/bin/hostname.orig ] | |
83 | then | |
84 | mv chroot/bin/hostname.orig chroot/bin/hostname | |
85 | fi | |
79 | # Remove custom hostname | |
80 | rm -f chroot/bin/hostname | |
81 | Chroot chroot dpkg-divert --rename --quiet --remove /bin/hostname | |
86 | 82 | |
87 | 83 | # Removing stage file |
88 | 84 | rm -f .build/chroot_hostname |
81 | 81 | then |
82 | 82 | # Generating package list |
83 | 83 | Expand_packagelist "$(basename ${LIST})" "config/package-lists" \ |
84 | >> chroot/root/packages.chroot | |
84 | | grep -v '^#' >> chroot/root/packages.chroot | |
85 | 85 | fi |
86 | 86 | done |
87 | 87 |
39 | 39 | # Creating lock file |
40 | 40 | Create_lockfile .lock |
41 | 41 | |
42 | if [ -f chroot/usr/sbin/policy-rc.d ] | |
42 | if [ -e chroot/usr/sbin/policy-rc.d ] | |
43 | 43 | then |
44 | 44 | # Save policy-rc.d file |
45 | mv chroot/usr/sbin/policy-rc.d chroot/usr/sbin/policy-rc.d.orig | |
45 | Chroot chroot dpkg-divert --rename --quiet --add /usr/sbin/policy-rc.d | |
46 | 46 | fi |
47 | 47 | |
48 | 48 | # Create policy-rc.d file |
67 | 67 | # Creating lock file |
68 | 68 | Create_lockfile .lock |
69 | 69 | |
70 | if [ -f chroot/usr/sbin/policy-rc.d.orig ] | |
70 | # Remove custom policy-rc.d file | |
71 | rm -f chroot/usr/sbin/policy-rc.d | |
72 | ||
73 | if [ -e chroot/usr/sbin/policy-rc.d.distrib ] | |
71 | 74 | then |
72 | 75 | # Restore policy-rc.d file |
73 | mv chroot/usr/sbin/policy-rc.d.orig chroot/usr/sbin/policy-rc.d | |
74 | else | |
75 | # Remove policy-rc.d file | |
76 | rm -f chroot/usr/sbin/policy-rc.d | |
76 | Chroot chroot dpkg-divert --rename --quiet --remove /usr/sbin/policy-rc.d | |
77 | 77 | fi |
78 | 78 | |
79 | 79 | # Removing stage file |
26 | 26 | # Requiring stage file |
27 | 27 | Require_stagefile .build/config .build/bootstrap |
28 | 28 | |
29 | # Check if system uses upstart | |
30 | if [ ! -e chroot/sbin/initctl ] | |
31 | then | |
32 | exit 0 | |
33 | fi | |
34 | ||
29 | 35 | case "${1}" in |
30 | 36 | install) |
31 | 37 | Echo_message "Configuring file /sbin/initctl" |
39 | 45 | # Creating lock file |
40 | 46 | Create_lockfile .lock |
41 | 47 | |
42 | if [ -f chroot/sbin/initctl ] | |
43 | then | |
44 | # Save initctl file | |
45 | mv chroot/sbin/initctl chroot/sbin/initctl.orig | |
46 | fi | |
48 | # Create custom initctl file | |
49 | Chroot chroot dpkg-divert --rename --quiet --add /sbin/initctl | |
47 | 50 | |
48 | # Create initctl file | |
49 | 51 | cat > chroot/sbin/initctl << EOF |
50 | 52 | #!/bin/sh |
51 | 53 | echo "All runlevel operations denied by policy" >&2 |
67 | 69 | # Creating lock file |
68 | 70 | Create_lockfile .lock |
69 | 71 | |
70 | if [ -f chroot/sbin/initctl.orig ] | |
71 | then | |
72 | # Restore initctl file | |
73 | mv chroot/sbin/initctl.orig chroot/sbin/initctl | |
74 | else | |
75 | # Remove initctl file | |
76 | rm -f chroot/sbin/initctl | |
77 | fi | |
72 | # Remove custom initctl file | |
73 | rm -f chroot/sbin/initctl | |
74 | Chroot chroot dpkg-divert --rename --quiet --remove /sbin/initctl | |
78 | 75 | |
79 | 76 | # Removing stage file |
80 | 77 | rm -f .build/chroot_upstart |
18 | 18 | USAGE="${PROGRAM} [--apt apt|aptitude]\n\ |
19 | 19 | \t [--apt-ftp-proxy URL]\n\ |
20 | 20 | \t [--apt-http-proxy URL]\n\ |
21 | \t [--apt-indices true|false|none]\n\ | |
21 | \t [--apt-indices true|false\n\ | |
22 | 22 | \t [--apt-options OPTION|\"OPTIONS\"]\n\ |
23 | 23 | \t [--aptitude-options OPTION|\"OPTIONS\"]\n\ |
24 | 24 | \t [--apt-pipeline DEPTH]\n\ |
924 | 924 | fi |
925 | 925 | |
926 | 926 | # Reading system configuration |
927 | if ! In_list "--ignore-system-defaults" "${@}" | |
927 | if ls /etc/live/build.conf > /dev/null 2>&1 || ls /etc/live/build/* > /dev/null 2>&1 | |
928 | 928 | then |
929 | Echo_message "Considering defaults defined in %s" "/etc/live/build.conf" | |
930 | ||
931 | Read_conffiles /etc/live/build.conf /etc/live/build/* | |
929 | if In_list "--ignore-system-defaults" "${@}" | |
930 | then | |
931 | Echo_message "Ignoring defaults in %s" "/etc/live/build.conf" | |
932 | else | |
933 | Echo_message "Using defaults in %s" "/etc/live/build.conf" | |
934 | ||
935 | Read_conffiles /etc/live/build.conf /etc/live/build/* | |
936 | fi | |
932 | 937 | fi |
933 | 938 | |
934 | 939 | # Reading existing configuration |
949 | 954 | |
950 | 955 | if [ ! -e config ] |
951 | 956 | then |
952 | Echo_message "Creating config tree for a ${LB_MODE}/${LB_ARCHITECTURES} system" | |
957 | Echo_message "Creating config tree for a ${LB_MODE}/${LB_DISTRIBUTION}/${LB_ARCHITECTURES} system" | |
953 | 958 | else |
954 | Echo_message "Updating config tree for a ${LB_MODE}/${LB_ARCHITECTURES} system" | |
959 | Echo_message "Updating config tree for a ${LB_MODE}/${LB_DISTRIBUTION}/${LB_ARCHITECTURES} system" | |
955 | 960 | fi |
956 | 961 | |
957 | 962 | # Creating bootstrap configuration |
50 | 50 | lb source_debian-live ${@} |
51 | 51 | lb source_debian ${@} |
52 | 52 | lb source_disk ${@} |
53 | lb source_hooks ${@} | |
53 | 54 | lb source_checksums ${@} |
54 | 55 | |
55 | 56 | # Building images |
54 | 54 | cat >> source-selection.txt << EOF |
55 | 55 | ${LB_BOOTLOADER} |
56 | 56 | live-build |
57 | xorriso | |
58 | parted | |
59 | squashfs-tools | |
60 | mtd-tools | |
61 | 57 | EOF |
58 | ||
59 | case "${LB_BINARY_IMAGES}" in | |
60 | iso*) | |
61 | echo "xorriso" >> source-selection.txt | |
62 | ;; | |
63 | ||
64 | hdd*) | |
65 | echo "parted" >> source-selection.txt | |
66 | ;; | |
67 | esac | |
68 | ||
69 | case "${LB_CHROOT_FILESYSTEM}" in | |
70 | squashfs) | |
71 | echo "squashfs-tools" >> source-selection.txt | |
72 | ;; | |
73 | esac | |
62 | 74 | |
63 | 75 | case "${LB_BINARY_FILESYSTEM}" in |
64 | 76 | fat*) |
0 | #!/bin/sh | |
1 | ||
2 | ## live-build(7) - System Build Scripts | |
3 | ## Copyright (C) 2006-2013 Daniel Baumann <[email protected]> | |
4 | ## | |
5 | ## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING. | |
6 | ## This is free software, and you are welcome to redistribute it | |
7 | ## under certain conditions; see COPYING for details. | |
8 | ||
9 | ||
10 | set -e | |
11 | ||
12 | # Including common functions | |
13 | [ -e "${LIVE_BUILD}/scripts/build.sh" ] && . "${LIVE_BUILD}/scripts/build.sh" || . /usr/lib/live/build.sh | |
14 | ||
15 | # Setting static variables | |
16 | DESCRIPTION="$(Echo 'execute hooks in source')" | |
17 | HELP="" | |
18 | USAGE="${PROGRAM} [--force]" | |
19 | ||
20 | Arguments "${@}" | |
21 | ||
22 | # Reading configuration files | |
23 | Read_conffiles config/all config/common config/bootstrap config/chroot config/source config/source | |
24 | Set_defaults | |
25 | ||
26 | Echo_message "Begin executing hooks..." | |
27 | ||
28 | # Requiring stage file | |
29 | Require_stagefile .build/config .build/bootstrap | |
30 | ||
31 | # Checking stage file | |
32 | Check_stagefile .build/source_hooks | |
33 | ||
34 | # Checking lock file | |
35 | Check_lockfile .lock | |
36 | ||
37 | # Creating lock file | |
38 | Create_lockfile .lock | |
39 | ||
40 | ## Processing distribution hooks | |
41 | ||
42 | # Running hooks | |
43 | for _HOOK in ${LB_BINARY_HOOKS} | |
44 | do | |
45 | for LOCATION in "${LIVE_BUILD}/hooks" /usr/share/live/build/hooks | |
46 | do | |
47 | for FILE in "${LOCATION}"/????-"${_HOOK}".source | |
48 | do | |
49 | if [ -e "${FILE}" ] | |
50 | then | |
51 | cd source | |
52 | "${FILE}" || { Echo_error "${_HOOK} failed (exit non-zero). You should check for errors."; exit 1 ;} | |
53 | cd "${OLDPWD}" | |
54 | fi | |
55 | done | |
56 | done | |
57 | done | |
58 | ||
59 | ## Processing local hooks | |
60 | ||
61 | if Find_files config/hooks/*.source | |
62 | then | |
63 | for HOOK in config/hooks/*.source | |
64 | do | |
65 | # Making hook executable | |
66 | if [ ! -x "${HOOK}" ] | |
67 | then | |
68 | chmod +x "${HOOK}" | |
69 | fi | |
70 | ||
71 | # Executing hook | |
72 | ./"${HOOK}" || { Echo_error "${HOOK} failed (exit non-zero). You should check for errors."; exit 1 ;} | |
73 | done | |
74 | ||
75 | # Creating stage file | |
76 | Create_stagefile .build/source_hooks | |
77 | fi |
0 | 0 | |
1 | 1 | <h3>Submit your parameters (<b>working</b> email address is required) to generate your very own Debian Live system.</h3> |
2 | 2 | |
3 | <form action="live-build" method="get"> | |
3 | <form action="live-build" method="post"> | |
4 | 4 | |
5 | 5 | <fieldset> |
6 | 6 |
Binary diff not shown
0 | 0 | set default=0 |
1 | 1 | |
2 | 2 | insmod tga |
3 | background_image ($root)/boot/grub/xbmc.tga | |
3 | background_image ($root)/boot/grub/splash.tga | |
4 | 4 | set color_normal=cyan/blue |
5 | 5 | set color_highlight=white/blue |
6 | 6 |
Binary diff not shown