Codebase list live-build / cc76d80
Import Debian version 20191220 live-build (1:20191220) unstable; urgency=medium * Fix "--debian-installer cdrom" and its interaction with binary_package-lists apt-ftparchive is not able to differentiate between .deb and .udeb so we have to install them in different pool directories so that we can regenerate the Packages files without having the .udeb show up unexpectedly. Since binary_package-lists can overwrite the Packages files generated in installer_debian-installer we have to ensure that it also updates the Release file created formerly. Ideally we should find a way to avoid the duplication of this logic. * Bump Standards-Version to 4.4.1 * Switch to debhelper compat level 12 live-build (1:20191219) unstable; urgency=medium [ Adrian Gibanel Lopez ] * Fixed foreign architecture package support to linux kernel flavours (Closes: #884553) [ Matthijs Kooijman ] * Remove --templates from lb_config manpage * Remove ldlinux.c32 for extlinux and syslinux [ Roland Clobus ] * Updated URL in many places. * Reenabled the command line option for colored messages for all scripts. The functionality was added 2008-11-01, but was not really active. * Removed obsolete short command line options. -f was --filesystem -l was --language -p was --package-list -e was --encryption * Do not store _QUIET in the configuration file, otherwise the overrides in the command line get ignored. Adds a documentation line for the other command line options as well. * Removed option none for --apt-indices, which was removed in 3.0.2-1. * Removed option --bootstrap, which is not implemented. * Mention --breakpoints in 'lb config --help' * Fixed a typo for --clean in 'lb config --help' * Manpage: --binary-filesystem also accepts ntfs * Matched the documentation of --checksums to the implementation in live-boot * Manpage: Added documentation for --breakpoints * Manpage: --compression also accepts xz. The default is none * Manpage: --config synchronised to 'lb config --help' * Manpage: Added documentation for --zsync * Manpage: Removed references to command line options that are no longer in the code: --firmware-binary --firmware-chroot --hooks --parent-mirror-chroot-updates --parent-mirror-chroot-backports --parent-mirror-binary-updates --parent-mirror-binary-backports --mirror-chroot-updates --mirror-chroot-backports --mirror-binary-updates --mirror-binary-backports --templates * --initramfs support none and live-boot * Manpage: Added documentation for --initsystem * Manpage: Added documentation for --image-name * Manpage: Added documentation for --hdd-label, --hdd-size and --hdd-partition-start * Manpage: --mode explicitly supports debian and progress-linux. Special handling for ubuntu was dropped 2015-05-03 * Manpage: --parent-archive-areas uses the same argument name as 'lb config --help' * Manpage: Added documentation for --firmware-binary and --firmware-chroot * Manpage: Added documentation for --swap-file-path and --swap-file-size * Manpage: Added documentation for --loadlin * Manpage: Added documentation for --bootstrap-qemu-[arch|exclude|static] * Reordered the command line options to make them in alphabetical order * Manpage: added missing \fR tags * Manpage: consistent use of whitespace in the command line option list * Manpage: typo * Manpage: Use alphabetical order for the description of the command line options * --mirror-binary* was not properly sorted * Manpage: removed incorrect mentioning of the -d command line option * Manpage: removed FIXME for the SYNOPSIS section, all options are now listed * Manpage: the configuration directory (config) cannot be modified * Manpage: simplify the description * Manpage: use 3rd person form when describing an option * Manpage: Update the default values of --mirror-* and --parent-mirror-* [ adrian15 ] * Readd findiso parametre to loopback.cfg generation. [ Raphaël Hertzog ] * binary_package-lists: avoid messing with dpkg's status file * chroot_live-packages: use dpkg-query to see if a package is installed (Closes: #944983) * Set default distribution to buster. Thanks to Алексей Шилин (Closes: #934495) * installer_debian-installer: don't mess with /var/lib/dpkg/status * Tweak lintian overrides * Support --distribution-binary and --distribution-chroot (Closes: #888507) * Update my email in the Maintainer field. [ Ronny Standtke ] * Run binary_hooks after binary_grub-efi (Closes: #940846) [ John Estabrook ] * Add local archive keys before configuring local package repository (Closes: #941691) Raphaël Hertzog authored 4 years ago Raphaël Hertzog committed 4 years ago
42 changed file(s) with 727 addition(s) and 485 deletion(s). Raw diff Collapse all Expand all
0 live-build (1:20191220) unstable; urgency=medium
1
2 * Fix "--debian-installer cdrom" and its interaction with binary_package-lists
3 apt-ftparchive is not able to differentiate between .deb and .udeb so
4 we have to install them in different pool directories so that we can
5 regenerate the Packages files without having the .udeb show up
6 unexpectedly.
7 Since binary_package-lists can overwrite the Packages files generated
8 in installer_debian-installer we have to ensure that it also updates
9 the Release file created formerly.
10 Ideally we should find a way to avoid the duplication of this logic.
11 * Bump Standards-Version to 4.4.1
12 * Switch to debhelper compat level 12
13
14 -- Raphaël Hertzog <[email protected]> Thu, 19 Dec 2019 19:16:08 +0100
15
16 live-build (1:20191219) unstable; urgency=medium
17
18 [ Adrian Gibanel Lopez ]
19 * Fixed foreign architecture package support to linux kernel flavours
20 (Closes: #884553)
21
22 [ Matthijs Kooijman ]
23 * Remove --templates from lb_config manpage
24 * Remove ldlinux.c32 for extlinux and syslinux
25
26 [ Roland Clobus ]
27 * Updated URL in many places.
28 * Reenabled the command line option for colored messages for all scripts.
29 The functionality was added 2008-11-01, but was not really active.
30 * Removed obsolete short command line options. -f was --filesystem -l was
31 --language -p was --package-list -e was --encryption
32 * Do not store _QUIET in the configuration file, otherwise the overrides in
33 the command line get ignored. Adds a documentation line for the other
34 command line options as well.
35 * Removed option none for --apt-indices, which was removed in 3.0.2-1.
36 * Removed option --bootstrap, which is not implemented.
37 * Mention --breakpoints in 'lb config --help'
38 * Fixed a typo for --clean in 'lb config --help'
39 * Manpage: --binary-filesystem also accepts ntfs
40 * Matched the documentation of --checksums to the implementation in live-boot
41 * Manpage: Added documentation for --breakpoints
42 * Manpage: --compression also accepts xz. The default is none
43 * Manpage: --config synchronised to 'lb config --help'
44 * Manpage: Added documentation for --zsync
45 * Manpage: Removed references to command line options that are no longer in
46 the code: --firmware-binary --firmware-chroot --hooks
47 --parent-mirror-chroot-updates --parent-mirror-chroot-backports
48 --parent-mirror-binary-updates --parent-mirror-binary-backports
49 --mirror-chroot-updates --mirror-chroot-backports --mirror-binary-updates
50 --mirror-binary-backports --templates
51 * --initramfs support none and live-boot
52 * Manpage: Added documentation for --initsystem
53 * Manpage: Added documentation for --image-name
54 * Manpage: Added documentation for --hdd-label, --hdd-size and
55 --hdd-partition-start
56 * Manpage: --mode explicitly supports debian and progress-linux. Special
57 handling for ubuntu was dropped 2015-05-03
58 * Manpage: --parent-archive-areas uses the same argument name as 'lb config
59 --help'
60 * Manpage: Added documentation for --firmware-binary and --firmware-chroot
61 * Manpage: Added documentation for --swap-file-path and --swap-file-size
62 * Manpage: Added documentation for --loadlin
63 * Manpage: Added documentation for --bootstrap-qemu-[arch|exclude|static]
64 * Reordered the command line options to make them in alphabetical order
65 * Manpage: added missing \fR tags
66 * Manpage: consistent use of whitespace in the command line option list
67 * Manpage: typo
68 * Manpage: Use alphabetical order for the description of the command line
69 options
70 * --mirror-binary* was not properly sorted
71 * Manpage: removed incorrect mentioning of the -d command line option
72 * Manpage: removed FIXME for the SYNOPSIS section, all options are now
73 listed
74 * Manpage: the configuration directory (config) cannot be modified
75 * Manpage: simplify the description
76 * Manpage: use 3rd person form when describing an option
77 * Manpage: Update the default values of --mirror-* and --parent-mirror-*
78
79 [ adrian15 ]
80 * Readd findiso parametre to loopback.cfg generation.
81
82 [ Raphaël Hertzog ]
83 * binary_package-lists: avoid messing with dpkg's status file
84 * chroot_live-packages: use dpkg-query to see if a package is installed
85 (Closes: #944983)
86 * Set default distribution to buster.
87 Thanks to Алексей Шилин (Closes: #934495)
88 * installer_debian-installer: don't mess with /var/lib/dpkg/status
89 * Tweak lintian overrides
90 * Support --distribution-binary and --distribution-chroot (Closes: #888507)
91 * Update my email in the Maintainer field.
92
93 [ Ronny Standtke ]
94 * Run binary_hooks after binary_grub-efi (Closes: #940846)
95
96 [ John Estabrook ]
97 * Add local archive keys before configuring local package repository
98 (Closes: #941691)
99
100 -- Raphaël Hertzog <[email protected]> Thu, 19 Dec 2019 18:56:00 +0100
101
0102 live-build (1:20190311) unstable; urgency=medium
1103
2104 [ Hideki Yamane ]
+0
-1
debian/compat less more
0 10
11 Section: misc
22 Priority: optional
33 Maintainer: Debian Live <[email protected]>
4 Uploaders: Raphaël Hertzog <[email protected]>,
4 Uploaders: Raphaël Hertzog <[email protected]>,
55 Luca Boccassi <[email protected]>,
66 Build-Depends:
7 debhelper (>= 10~),
7 debhelper-compat (= 12),
88 po4a,
99 gettext,
10 Standards-Version: 4.3.0
10 Standards-Version: 4.4.1
1111 Rules-Requires-Root: no
12 Homepage: https://debian-live.alioth.debian.org/live-build/
12 Homepage: https://wiki.debian.org/DebianLive
1313 Vcs-Browser: https://salsa.debian.org/live-team/live-build
1414 Vcs-Git: https://salsa.debian.org/live-team/live-build.git
1515
0 image: registry.salsa.debian.org/salsa-ci-team/ci-image-git-buildpackage:latest
1
2 pages:
3 stage: deploy
4 artifacts:
5 paths:
6 - public
7 only:
8 - master
9 script:
10 - gitlab-ci-git-buildpackage-all
11 - gitlab-ci-aptly
00 Before submitting a bug report against live-build, please make sure
11 that you have read your guidelines for live systems bug reports:
22
3 https://debian-live.alioth.debian.org/live-manual/unstable/manual/html/live-manual.en.html
3 https://live-team.pages.debian.net/live-manual/
44
55 By providing the required information as outlined in the guidelines makes
66 sure that we can optimally reproduce and fix bugs, not doing so wastes a
00 live-build: symlink-should-be-relative
1 live-build: depends-on-essential-package-without-using-version suggests: e2fsprogs
1 # Those cases are legitimate uses of direct access to the database
2 live-build: uses-dpkg-database-directly usr/lib/live/build/chroot_tmpfs
3 live-build: uses-dpkg-database-directly usr/lib/live/build/clean
4 live-build: uses-dpkg-database-directly usr/share/live/build/functions/chroot.sh
5 live-build: uses-dpkg-database-directly usr/share/live/build/hooks/normal/0110-remove-backup-files.hook.chroot
99
1010 Arguments ()
1111 {
12 ARGUMENTS="$(getopt --longoptions breakpoints,conffile:,debug,force,help,quiet,usage,verbose,version --name=${PROGRAM} --options c:huv --shell sh -- "${@}")"
12 ARGUMENTS="$(getopt --longoptions breakpoints,color,conffile:,debug,force,help,quiet,usage,verbose,version --name=${PROGRAM} --options c:huv --shell sh -- "${@}")"
1313
1414 if [ "${?}" != "0" ]
1515 then
2424 case "${1}" in
2525 --breakpoints)
2626 _BREAKPOINTS="true"
27 shift
28 ;;
29
30 --color)
31 _COLOR="true"
2732 shift
2833 ;;
2934
3535
3636 return "${?}"
3737 }
38
39 Chroot_has_package() {
40 PACKAGE="${1}"; shift
41 CHROOT="${2:-chroot}"; shift
42
43 if dpkg-query --admindir=${CHROOT}/var/lib/dpkg -s ${PACKAGE} >/dev/null 2>&1 | grep -q "^Status: install"
44 then
45 return 0
46 fi
47 return 1
48 }
49
50 Chroot_package_list() {
51 CHROOT="${1:-chroot}"; shift
52
53 dpkg-query --admindir=${CHROOT}/var/lib/dpkg -W -f'${Package}\n'
54 }
123123 ;;
124124
125125 *)
126 LB_DISTRIBUTION="${LB_DISTRIBUTION:-stretch}"
126 LB_DISTRIBUTION="${LB_DISTRIBUTION:-buster}"
127127 LB_DERIVATIVE="false"
128128 ;;
129129 esac
130 LB_DISTRIBUTION_CHROOT="${LB_DISTRIBUTION_CHROOT:-${LB_DISTRIBUTION}}"
131 LB_DISTRIBUTION_BINARY="${LB_DISTRIBUTION_BINARY:-${LB_DISTRIBUTION_CHROOT}}"
132
130133
131134 case "${LB_MODE}" in
132135 progress-linux)
133136 case "${LB_DISTRIBUTION}" in
134137 baureo|baureo-backports)
135138 LB_PARENT_DISTRIBUTION="${LB_PARENT_DISTRIBUTION:-wheezy}"
136 LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION="${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION:-${LB_PARENT_DISTRIBUTION}}"
137139 ;;
138140
139141 cairon|cairon-backports)
140142 LB_PARENT_DISTRIBUTION="${LB_PARENT_DISTRIBUTION:-sid}"
141 LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION="${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION:-${LB_PARENT_DISTRIBUTION}}"
142143 ;;
143144 esac
144145
146147 ;;
147148
148149 *)
149 LB_PARENT_DISTRIBUTION="${LB_PARENT_DISTRIBUTION:-${LB_DISTRIBUTION}}"
150 LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION="${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION:-${LB_PARENT_DISTRIBUTION}}"
151
152150 LB_BACKPORTS="${LB_BACKPORTS:-false}"
153151 ;;
154152 esac
153 if [ -n "$LB_PARENT_DISTRIBUTION" ]; then
154 LB_PARENT_DISTRIBUTION_CHROOT="${LB_PARENT_DISTRIBUTION_CHROOT:-${LB_PARENT_DISTRIBUTION}}"
155 LB_PARENT_DISTRIBUTION_BINARY="${LB_PARENT_DISTRIBUTION_BINARY:-${LB_PARENT_DISTRIBUTION}}"
156 else
157 LB_PARENT_DISTRIBUTION_CHROOT="${LB_PARENT_DISTRIBUTION_CHROOT:-${LB_DISTRIBUTION_CHROOT}}"
158 LB_PARENT_DISTRIBUTION_BINARY="${LB_PARENT_DISTRIBUTION_BINARY:-${LB_DISTRIBUTION_BINARY}}"
159 fi
160 LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION="${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION:-${LB_PARENT_DISTRIBUTION_CHROOT}}"
155161
156162 # Setting package manager
157163 LB_APT="${LB_APT:-apt}"
406412 # Setting linux flavour string
407413 case "${LB_ARCHITECTURES}" in
408414 arm64)
409 LB_LINUX_FLAVOURS="${LB_LINUX_FLAVOURS:-arm64}"
415 LB_LINUX_FLAVOURS_WITH_ARCH="${LB_LINUX_FLAVOURS_WITH_ARCH:-arm64}"
410416 ;;
411417
412418 armel)
413419 # armel will have special images: one rootfs image and many additional kernel images.
414420 # therefore we default to all available armel flavours
415 LB_LINUX_FLAVOURS="${LB_LINUX_FLAVOURS:-marvell}"
421 LB_LINUX_FLAVOURS_WITH_ARCH="${LB_LINUX_FLAVOURS_WITH_ARCH:-marvell}"
416422 ;;
417423
418424 armhf)
419425 # armhf will have special images: one rootfs image and many additional kernel images.
420426 # therefore we default to all available armhf flavours
421 LB_LINUX_FLAVOURS="${LB_LINUX_FLAVOURS:-armmp armmp-lpae}"
427 LB_LINUX_FLAVOURS_WITH_ARCH="${LB_LINUX_FLAVOURS_WITH_ARCH:-armmp armmp-lpae}"
422428 ;;
423429
424430 amd64)
425 LB_LINUX_FLAVOURS="${LB_LINUX_FLAVOURS:-amd64}"
431 LB_LINUX_FLAVOURS_WITH_ARCH="${LB_LINUX_FLAVOURS_WITH_ARCH:-amd64}"
426432 ;;
427433
428434 i386)
429 LB_LINUX_FLAVOURS="${LB_LINUX_FLAVOURS:-686-pae}"
435 LB_LINUX_FLAVOURS_WITH_ARCH="${LB_LINUX_FLAVOURS_WITH_ARCH:-686-pae}"
430436 ;;
431437
432438 ia64)
437443 ;;
438444
439445 *)
440 LB_LINUX_FLAVOURS="${LB_LINUX_FLAVOURS:-itanium}"
446 LB_LINUX_FLAVOURS_WITH_ARCH="${LB_LINUX_FLAVOURS_WITH_ARCH:-itanium}"
441447 ;;
442448 esac
443449 ;;
450456 ;;
451457
452458 *)
453 LB_LINUX_FLAVOURS="${LB_LINUX_FLAVOURS:-powerpc64 powerpc}"
459 LB_LINUX_FLAVOURS_WITH_ARCH="${LB_LINUX_FLAVOURS_WITH_ARCH:-powerpc64 powerpc}"
454460 ;;
455461 esac
456462 ;;
463469 ;;
464470
465471 *)
466 LB_LINUX_FLAVOURS="${LB_LINUX_FLAVOURS:-s390x}"
472 LB_LINUX_FLAVOURS_WITH_ARCH="${LB_LINUX_FLAVOURS_WITH_ARCH:-s390x}"
467473 ;;
468474 esac
469475 ;;
474480 ;;
475481 esac
476482
483 LB_LINUX_FLAVOURS=""
484 for FLAVOUR in ${LB_LINUX_FLAVOURS_WITH_ARCH}
485 do
486 ARCH_FILTERED_FLAVOUR="$(echo ${FLAVOUR} | awk -F':' '{print $1}')"
487 LB_LINUX_FLAVOURS="${LB_LINUX_FLAVOURS} ${ARCH_FILTERED_FLAVOUR}"
488 done
489
490
477491 # Set linux packages
478492 LB_LINUX_PACKAGES="${LB_LINUX_PACKAGES:-linux-image}"
479493
480494 # Setting security updates option
481 case "${LB_PARENT_DISTRIBUTION}" in
495 case "${LB_PARENT_DISTRIBUTION_BINARY}" in
482496 sid)
483497 LB_SECURITY="${LB_SECURITY:-false}"
484498 ;;
489503 esac
490504
491505 # Setting updates updates option
492 case "${LB_PARENT_DISTRIBUTION}" in
506 case "${LB_PARENT_DISTRIBUTION_BINARY}" in
493507 sid)
494508 LB_UPDATES="${LB_UPDATES:-false}"
495509 ;;
650664 esac
651665
652666 # Set iso preparer
653 LB_ISO_PREPARER="${LB_ISO_PREPARER:-live-build \$VERSION; https://debian-live.alioth.debian.org/live-build}"
667 LB_ISO_PREPARER="${LB_ISO_PREPARER:-live-build \$VERSION; https://salsa.debian.org/live-team/live-build}"
654668
655669 # Set iso publisher
656670 case "${LB_MODE}" in
659673 ;;
660674
661675 *)
662 LB_ISO_PUBLISHER="${LB_ISO_PUBLISHER:-Live Systems project; https://debian-live.alioth.debian.org/; [email protected]}"
676 LB_ISO_PUBLISHER="${LB_ISO_PUBLISHER:-Live Systems project; https://wiki.debian.org/DebianLive; [email protected]}"
663677 ;;
664678 esac
665679
192192
193193 Echo_breakage ()
194194 {
195 case "${LB_PARENT_DISTRIBUTION}" in
195 case "${LB_PARENT_DISTRIBUTION_BINARY}" in
196196 sid)
197197 Echo_message "If the following stage fails, the most likely cause of the problem is with your mirror configuration, a caching proxy or the sid distribution."
198198 ;;
3030 echo
3131 fi
3232
33 Echo "Report bugs to the Live Systems project <https://debian-live.alioth.debian.org/>."
33 Echo "Report bugs to the Live Systems project <https://wiki.debian.org/DebianLive>."
3434 exit 0
3535 }
4141 @if [ ! -x "$$(which po4a 2>/dev/null)" ]; \
4242 then \
4343 echo "E: po4a - command not found"; \
44 echo "I: po4a can be obtained from http://po4a.alioth.debian.org/"; \
44 echo "I: po4a can be obtained from https://po4a.org"; \
4545 echo "I: On Debian based systems, po4a can be installed with 'apt-get install po4a'."; \
4646 exit 1; \
4747 fi
2424 This program is a part of live\-build.
2525
2626 .SH HOMEPAGE
27 More information about live\-build and the Live Systems project can be found on the homepage at <\fIhttps://debian-live.alioth.debian.org/\fR>.
27 More information about live\-build and the Live Systems project can be found on the homepage at <\fIhttps://wiki.debian.org/DebianLive\fR>.
2828
2929 .SH BUGS
3030 Bugs can be reported by submitting a bugreport for the live\-build package in the Bug Tracking System at <\fIhttp://bugs.debian.org/\fR> or by writing a mail to the Live Systems mailing list at <\[email protected]\fR>.
2222 This program is a part of live\-build.
2323
2424 .SH HOMEPAGE
25 More information about live\-build and the Live Systems project can be found on the homepage at <\fIhttps://debian-live.alioth.debian.org/\fR>.
25 More information about live\-build and the Live Systems project can be found on the homepage at <\fIhttps://wiki.debian.org/DebianLive\fR>.
2626
2727 .SH BUGS
2828 Bugs can be reported by submitting a bugreport for the live\-build package in the Bug Tracking System at <\fIhttp://bugs.debian.org/\fR> or by writing a mail to the Live Systems mailing list at <\[email protected]\fR>.
2222 This program is a part of live\-build.
2323
2424 .SH HOMEPAGE
25 More information about live\-build and the Live Systems project can be found on the homepage at <\fIhttps://debian-live.alioth.debian.org/\fR>.
25 More information about live\-build and the Live Systems project can be found on the homepage at <\fIhttps://wiki.debian.org/DebianLive\fR>.
2626
2727 .SH BUGS
2828 Bugs can be reported by submitting a bugreport for the live\-build package in the Bug Tracking System at <\fIhttp://bugs.debian.org/\fR> or by writing a mail to the Live Systems mailing list at <\[email protected]\fR>.
2424 This program is a part of live\-build.
2525
2626 .SH HOMEPAGE
27 More information about live\-build and the Live Systems project can be found on the homepage at <\fIhttps://debian-live.alioth.debian.org/\fR>.
27 More information about live\-build and the Live Systems project can be found on the homepage at <\fIhttps://wiki.debian.org/DebianLive\fR>.
2828
2929 .SH BUGS
3030 Bugs can be reported by submitting a bugreport for the live\-build package in the Bug Tracking System at <\fIhttp://bugs.debian.org/\fR> or by writing a mail to the Live Systems mailing list at <\[email protected]\fR>.
2222 This program is a part of live\-build.
2323
2424 .SH HOMEPAGE
25 More information about live\-build and the Live Systems project can be found on the homepage at <\fIhttps://debian-live.alioth.debian.org/\fR>.
25 More information about live\-build and the Live Systems project can be found on the homepage at <\fIhttps://wiki.debian.org/DebianLive\fR>.
2626
2727 .SH BUGS
2828 Bugs can be reported by submitting a bugreport for the live\-build package in the Bug Tracking System at <\fIhttp://bugs.debian.org/\fR> or by writing a mail to the Live Systems mailing list at <\[email protected]\fR>.
4545 This program is a part of live\-build.
4646
4747 .SH HOMEPAGE
48 More information about live\-build and the Live Systems project can be found on the homepage at <\fIhttps://debian-live.alioth.debian.org/\fR>.
48 More information about live\-build and the Live Systems project can be found on the homepage at <\fIhttps://wiki.debian.org/DebianLive\fR>.
4949
5050 .SH BUGS
5151 Bugs can be reported by submitting a bugreport for the live\-build package in the Bug Tracking System at <\fIhttp://bugs.debian.org/\fR> or by writing a mail to the Live Systems mailing list at <\[email protected]\fR>.
55 .SH SYNOPSIS
66 \fBlb config\fR [\fIlive\-build options\fR]
77 .PP
8 .\" FIXME
98 \fBlb config\fR
109 .br
1110 [\fB\-\-apt\fR apt|aptitude]
1817 .br
1918 [\fB\-\-apt\-options\fR \fIOPTION\fR|"\fIOPTIONS\fR"]
2019 .br
20 [\fB\-\-apt\-pipeline\fR \fIDEPTH\fR]
21 .br
22 [\fB\-\-apt\-recommends\fR true|false]
23 .br
24 [\fB\-\-apt\-secure\fR true|false]
25 .br
26 [\fB\-\-apt\-source\-archives\fR true|false]
27 .br
2128 [\fB\-\-aptitude\-options\fR \fIOPTION\fR|"\fIOPTIONS\fR"]
2229 .br
23 [\fB\-\-apt\-pipeline\fR \fIDEPTH\fR]
24 .br
25 [\fB\-\-apt\-recommends\fR true|false]
26 .br
27 [\fB\-\-apt\-secure\fR true|false]
28 .br
29 [\fB\-\-apt\-source\-archives\fR true|false]
30 .br
3130 [\-a|\fB\-\-architectures\fR \fIARCHITECTURE\fR]
3231 .br
32 [\fB\-\-archive\-areas\fR \fIARCHIVE_AREA\fR|\fI"ARCHIVE_AREAS"\fR]
33 .br
34 [\fB\-\-backports\fR true|false]
35 .br
36 [\fB\-\-binary\-filesystem\fR fat16|fat32|ext2|ext3|ext4|ntfs]
37 .br
3338 [\-b|\fB\-\-binary\-images\fR iso|iso\-hybrid|netboot|tar|hdd]
3439 .br
35 [\fB\-\-binary\-filesystem\fR fat16|fat32|ext2|ext3|ext4]
36 .br
3740 [\fB\-\-bootappend\-install\fR \fIPARAMETER\fR|\fI"PARAMETERS"\fR]
3841 .br
3942 [\fB\-\-bootappend\-live\fR \fIPARAMETER\fR|\fI"PARAMETERS"\fR]
4245 .br
4346 [\fB\-\-bootloaders\fR grub-legacy|grub-pc|syslinux|grub-efi]
4447 .br
48 [\fB\-\-bootstrap\-qemu\-arch \fIARCH\fR]
49 .br
50 [\fB\-\-bootstrap\-qemu\-exclude \fIPACKAGES\fR]
51 .br
52 [\fB\-\-bootstrap\-qemu\-static \fIPATH\fR]
53 .br
54 [\fB\-\-breakpoints]
55 .br
56 [\fB\-\-build\-with\-chroot\fR true|false]
57 .br
4558 [\fB\-\-cache\fR true|false]
4659 .br
4760 [\fB\-\-cache\-indices\fR true|false]
5063 .br
5164 [\fB\-\-cache\-stages\fR \fISTAGE\fR|\fI"STAGES"\fR]
5265 .br
53 [\fB\-\-checksums\fR md5|sha1|sha256|none]
54 .br
55 [\fB\-\-compression\fR bzip2|gzip|lzip|none]
56 .br
57 [\fB\-\-config\fR \fIGIT_URL::GIT_ID\fR]
58 .br
59 [\fB\-\-build\-with\-chroot\fR true|false]
66 [\fB\-\-checksums\fR md5|sha1|sha224|sha256|sha384|sha512|none]
6067 .br
6168 [\fB\-\-chroot\-filesystem\fR ext2|ext3|ext4|squashfs|jffs2|none]
6269 .br
6370 [\fB\-\-clean\fR]
6471 .br
72 [\fB\-\-color]
73 .br
74 [\fB\-\-compression\fR bzip2|gzip|lzip|xz|none]
75 .br
6576 [\-c|\fB\-\-conffile\fR \fIFILE\fR]
6677 .br
78 [\fB\-\-config\fR \fIGIT_URL::GIT_BRANCH\fR]
79 .br
6780 [\fB\-\-debconf\-frontend\fR dialog|editor|noninteractive|readline]
6881 .br
6982 [\fB\-\-debconf\-priority\fR low|medium|high|critical]
7285 .br
7386 [\fB\-\-debian\-installer\-distribution\fR daily|\fICODENAME\fR]
7487 .br
88 [\fB\-\-debian\-installer\-gui\fR true|false]
89 .br
7590 [\fB\-\-debian\-installer\-preseedfile\fR \fIFILE\fR|\fIURL\fR]
7691 .br
77 [\fB\-\-debian\-installer\-gui\fR true|false]
78 .br
7992 [\fB\-\-debootstrap\-options\fR \fIOPTIONS\fR]
8093 .br
8194 [\fB\-\-debootstrap\-script\fR \fISCRIPT\fR]
8497 .br
8598 [\-d|\fB\-\-distribution\fR \fICODENAME\fR]
8699 .br
100 [\fB\-\-distribution\-chroot\fR \fICODENAME\fR]
101 .br
102 [\fB\-\-distribution\-binary\fR \fICODENAME\fR]
103 .br
104 [\fB\-\-dump\fR]
105 .br
106 [\fB\-\-fdisk\fR fdisk|fdisk.dist]
107 .br
108 [\fB\-\-firmware\-binary\fR true|false]
109 .br
110 [\fB\-\-firmware\-chroot\fR true|false]
111 .br
112 [\fB\-\-force\fR]
113 .br
114 [\fB\-\-grub\-splash\fR \fIFILE\fR]
115 .br
116 [\fB\-\-gzip\-options\fR \fIOPTION\fR|"\fIOPTIONS\fR"]
117 .br
118 [\fB\-\-hdd\-label\fR \fILABEL\fR]
119 .br
120 [\fB\-\-hdd\-partition\-start\fR \fISTART\fR]
121 .br
122 [\fB\-\-hdd\-size\fR \fISIZE\fR]
123 .br
124 [\fB\-\-ignore\-system\-defaults\fR]
125 .br
126 [\fB\-\-image\-name\fR \fINAME\fR]
127 .br
128 [\fB\-\-initramfs\fR none|live\-boot]
129 .br
130 [\fB\-\-initramfs\-compression\fR bzip2|gzip|lzma]
131 .br
132 [\fB\-\-initsystem\fR sysvinit|systemd|none]
133 .br
134 [\fB\-\-interactive\fR shell]
135 .br
136 [\fB\-\-iso\-application\fR \fINAME\fR]
137 .br
138 [\fB\-\-iso\-preparer\fR \fINAME\fR]
139 .br
140 [\fB\-\-iso\-publisher\fR \fINAME\fR]
141 .br
142 [\fB\-\-iso\-volume\fR \fINAME\fR]
143 .br
144 [\fB\-\-isohybrid\-options\fR \fIOPTION\fR|"\fIOPTIONS\fR"]
145 .br
146 [\fB\-\-jffs2\-eraseblock\fR \fISIZE\fR]
147 .br
148 [\fB\-\-keyring\-packages\fR \fIPACKAGE\fI|\fI"PACKAGES"\fR]
149 .br
150 [\-k|\fB\-\-linux\-flavours\fR \fIFLAVOUR\fR|\fI"FLAVOURS"\fR]
151 .br
152 [\fB\-\-linux\-packages\fR \fI"PACKAGES"\fR]
153 .br
154 [\fB\-\-loadlin\fR true|false]
155 .br
156 [\fB\-\-losetup\fR losetup|losetup.orig]
157 .br
158 [\fB\-\-memtest\fR memtest86+|memtest86|none]
159 .br
160 [\fB\-\-mirror\-binary\fR \fIURL\fR]
161 .br
162 [\fB\-\-mirror\-binary\-security\fR \fIURL\fR]
163 .br
164 [\fB\-\-mirror\-bootstrap\fR \fIURL\fR]
165 .br
166 [\fB\-\-mirror\-chroot\fR \fIURL\fR]
167 .br
168 [\fB\-\-mirror\-chroot\-security\fR \fIURL\fR]
169 .br
170 [\fB\-\-mirror\-debian\-installer\fR \fIURL\fR]
171 .br
172 [\fB\-\-mode\fR debian|progress-linux]
173 .br
174 [\fB\-\-net\-cow\-filesystem\fR nfs|cfs]
175 .br
176 [\fB\-\-net\-cow\-mountoptions\fR \fIOPTIONS\fR]
177 .br
178 [\fB\-\-net\-cow\-path\fR \fIPATH\fR]
179 .br
180 [\fB\-\-net\-cow\-server\fR \fIIP\fR|\fIHOSTNAME\fR]
181 .br
182 [\fB\-\-net\-root\-filesystem\fR nfs|cfs]
183 .br
184 [\fB\-\-net\-root\-mountoptions\fR \fIOPTIONS\fR]
185 .br
186 [\fB\-\-net\-root\-path\fR \fIPATH\fR]
187 .br
188 [\fB\-\-net\-root\-server\fR \fIIP\fR|\fIHOSTNAME\fR]
189 .br
190 [\fB\-\-net\-tarball\fR true|false]
191 .br
192 [\fB\-\-onie\fR true|false]
193 .br
194 [\fB\-\-onie\-kernel\-cmdline\fR \fI"OPTION1 OPTION2"\fR]
195 .br
196 [\fB\-\-parent\-archive\-areas\fR \fIARCHIVE_AREA\fR|\fI"ARCHIVE_AREAS"\fR]
197 .br
198 [\fB\-\-parent\-debian\-installer\-distribution\fR \fICODENAME\fR]
199 .br
87200 [\fB\-\-parent\-distribution\fR \fICODENAME\fR]
88201 .br
89 [\fB\-\-parent\-debian\-installer\-distribution\fR \fICODENAME\fR]
90 .br
91 [\fB\-\-dump\fR]
92 .br
93 [\fB\-\-fdisk\fR fdisk|fdisk.dist]
94 .br
95 [\fB\-\-firmware\-binary true|false\fR]
96 .br
97 [\fB\-\-firmware\-chroot true|false\fR]
98 .br
99 [\fB\-\-force\fR]
100 .br
101 [\fB\-\-grub\-splash\fR \fIFILE\fR]
102 .br
103 [\fB\-\-gzip\-options\fR \fIOPTION\fR|"\fIOPTIONS\fR"]
104 .br
105 [\fB\-\-hooks\fR \fIFILE\fR]
106 .br
107 [\fB\-\-ignore\-system\-defaults\fR]
108 .br
109 [\fB\-\-initramfs\fR auto|none|live\-boot|casper]
110 .br
111 [\fB\-\-initramfs\-compression\fR bzip2|gzip|lzma]
112 .br
113 [\fB\-\-initsystem\fR sysvinit|runit|systemd|upstart|none]
114 .br
115 [\fB\-\-interactive\fR shell]
116 .br
117 [\fB\-\-isohybrid\-options\fR \fIOPTION\fR|"\fIOPTIONS\fR"]
118 .br
119 [\fB\-\-iso\-application\fR \fINAME\fR]
120 .br
121 [\fB\-\-iso\-preparer\fR \fINAME\fR]
122 .br
123 [\fB\-\-iso\-publisher\fR \fINAME\fR]
124 .br
125 [\fB\-\-iso\-volume\fR \fINAME\fR]
126 .br
127 [\fB\-\-jffs2\-eraseblock\fR \fISIZE\fR]
128 .br
129 [\fB\-\-keyring\-packages\fR \fIPACKAGE\fI|\fI"PACKAGES"\fR]
130 .br
131 [\-k|\fB\-\-linux\-flavours\fR \fIFLAVOUR\fR|\fI"FLAVOURS"\fR]
132 .br
133 [\fB\-\-linux\-packages\fR \fI"PACKAGES"\fR]
134 .br
135 [\fB\-\-losetup\fR losetup|losetup.orig]
136 .br
137 [\fB\-\-memtest\fR memtest86+|memtest86|none]
202 [\fB\-\-parent\-distribution\-chroot\fR \fICODENAME\fR]
203 .br
204 [\fB\-\-parent\-distribution\-binary\fR \fICODENAME\fR]
205 .br
206 [\fB\-\-parent\-mirror\-binary\fR \fIURL\fR]
207 .br
208 [\fB\-\-parent\-mirror\-binary\-security\fR \fIURL\fR]
138209 .br
139210 [\-m|\fB\-\-parent\-mirror\-bootstrap\fR \fIURL\fR]
140211 .br
142213 .br
143214 [\fB\-\-parent\-mirror\-chroot\-security\fR \fIURL\fR]
144215 .br
145 [\fB\-\-parent\-mirror\-chroot\-updates\fR \fIURL\fR]
146 .br
147 [\fB\-\-parent\-mirror\-chroot\-backports\fR \fIURL\fR]
148 .br
149 [\fB\-\-parent\-mirror\-binary\fR \fIURL\fR]
150 .br
151 [\fB\-\-parent\-mirror\-binary\-security\fR \fIURL\fR]
152 .br
153 [\fB\-\-parent\-mirror\-binary\-updates\fR \fIURL\fR]
154 .br
155 [\fB\-\-parent\-mirror\-binary\-backports\fR \fIURL\fR]
156 .br
157216 [\fB\-\-parent\-mirror\-debian\-installer\fR \fIURL\fR]
158217 .br
159 [\fB\-\-mirror\-bootstrap\fR \fIURL\fR]
160 .br
161 [\fB\-\-mirror\-chroot\fR \fIURL\fR]
162 .br
163 [\fB\-\-mirror\-chroot\-security\fR \fIURL\fR]
164 .br
165 [\fB\-\-mirror\-chroot\-updates\fR \fIURL\fR]
166 .br
167 [\fB\-\-mirror\-chroot\-backports\fR \fIURL\fR]
168 .br
169 [\fB\-\-mirror\-binary\fR \fIURL\fR]
170 .br
171 [\fB\-\-mirror\-binary\-security\fR \fIURL\fR]
172 .br
173 [\fB\-\-mirror\-binary\-updates\fR \fIURL\fR]
174 .br
175 [\fB\-\-mirror\-binary\-backports\fR \fIURL\fR]
176 .br
177 [\fB\-\-mirror\-debian\-installer\fR \fIURL\fR]
178 .br
179 [\fB\-\-mode\fR debian|progress-linux|ubuntu]
218 [\fB\-\-quiet\fR]
219 .br
220 [\fB\-\-security\fR true|false]
221 .br
222 [\fB\-\-source\fR true|false]
223 .br
224 [\-s|\fB\-\-source\-images\fR iso|netboot|tar|hdd]
225 .br
226 [\fB\-\-swap\-file\-path PATH]
227 .br
228 [\fB\-\-swap\-file\-size MB]
180229 .br
181230 [\fB\-\-system\fR live|normal]
182231 .br
183 [\fB\-\-net\-root\-filesystem\fR nfs|cfs]
184 .br
185 [\fB\-\-net\-root\-mountoptions\fR \fIOPTIONS\fR]
186 .br
187 [\fB\-\-net\-root\-path\fR \fIPATH\fR]
188 .br
189 [\fB\-\-net\-root\-server\fR \fIIP\fR|\fIHOSTNAME\fR]
190 .br
191 [\fB\-\-net\-cow\-filesystem\fR nfs|cfs]
192 .br
193 [\fB\-\-net\-cow\-mountoptions\fR \fIOPTIONS\fR]
194 .br
195 [\fB\-\-net\-cow\-path\fR \fIPATH\fR]
196 .br
197 [\fB\-\-net\-cow\-server\fR \fIIP\fR|\fIHOSTNAME\fR]
198 .br
199 [\fB\-\-net\-tarball\fR true|false]
200 .br
201 [\fB\-\-onie\fR true|false]
202 .br
203 [\fB\-\-onie\-kernel\-cmdline\fR \fI"OPTION1 OPTION2"\fR]
204 .br
205 [\fB\-\-quiet\fR]
206 .br
207 [\fB\-\-archive\-areas\fR \fIARCHIVE_AREA\fR|\fI"ARCHIVE_AREAS"\fR]
208 .br
209 [\fB\-\-parent\-archive\-areas\fR \fIPARENT_ARCHIVE_AREA\fR|\fI"PARENT_ARCHIVE_AREAS"\fR]
210 .br
211 [\fB\-\-security\fR true|false]
212 .br
213 [\fB\-\-source\fR true|false]
214 .br
215 [\-s|\fB\-\-source\-images\fR iso|netboot|tar|hdd]
216 .br
217232 [\fB\-\-tasksel\fR apt|aptitude|tasksel]
218233 .br
219 [\fB\-\-templates\fR \fIPATH\fR]
220 .br
221234 [\fB\-\-uefi\-secure\-boot\fR \fIauto|enable|disable\fR]
222235 .br
223 [\fB\-\-hdd\-size \fIMB\fR]
224 .br
225236 [\fB\-\-updates\fR true|false]
226237 .br
227 [\fB\-\-backports\fR true|false]
228 .br
229238 [\fB\-\-verbose\fR]
230239 .br
231 [\fB\-\-win32\-loader true|false]
232 .\" FIXME
240 [\fB\-\-win32\-loader\fR true|false]
241 .br
242 [\fB\-\-zsync\fR true|false]
233243
234244 .SH DESCRIPTION
235245 \fBlb config\fR is a high\-level command (porcelain) of \fIlive\-build\fR(7), the live systems tool suite.
236246 .PP
237 .\" FIXME
238 \fBlb config\fR populates the configuration directory for live\-build. By default, this directory is named 'config' and is created in the current directory where \fBlb config\fR was executed.
239 .PP
240 Note: Currently \fBlb config\fR tries to be smart and sets defaults for some options depending on the setting of other options (e.g. which linux packages to be used depending on if a wheezy system gets build or not). This means that when generating a new configuration, you should call \fBlb config\fR only once with all options specified. Calling it several times with only a subset of the options each can result in non working configurations. This is also caused by the fact that \fBlb config\fR called with one option only changes that option, and leaves everything else as is unless its not defined. However, \fBlb config\fR does warn about know impossible or likely impossible combinations that would lead to non working live systems. If unsure, remove config/{binary,bootstrap,chroot,common,source} and call \fBlb config\fR again.
241 .\" FIXME
247 \fBlb config\fR populates the configuration directory for live\-build. This directory is named 'config' and is created in the current directory where \fBlb config\fR was executed.
248 .PP
249 Note: \fBlb config\fR tries to be smart and sets defaults for some options depending on the setting of other options. This means that when generating a new configuration, you should call \fBlb config\fR only once with all options specified. Calling it several times with only a subset of the options each can result in non working configurations. This is also caused by the fact that \fBlb config\fR called with one option only changes that option, and leaves everything else as is unless it is not defined. However, \fBlb config\fR does warn about know impossible or likely impossible combinations that would lead to non working live systems. If unsure, remove config/{binary,bootstrap,chroot,common,source} and call \fBlb config\fR again.
242250
243251 .SH OPTIONS
244252 In addition to its specific options \fBlb config\fR understands all generic live\-build options. See \fIlive\-build\fR(7) for a complete list of all generic live\-build options.
250258 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.
251259 .IP "\fB\-\-apt\-http\-proxy\fR \fIURL\fR" 4
252260 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.
253 .IP "\fB\-\-apt\-indices\fR true|false|none" 4
254 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.
261 .IP "\fB\-\-apt\-indices\fR true|false" 4
262 defines if the resulting images should have apt indices or not and defaults to true.
255263 .IP "\fB\-\-apt\-options\fR \fIOPTION\fR|""\fIOPTIONS\fR""" 4
256264 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.
257 .IP "\fB\-\-aptitude\-options\fR \fIOPTION\fR|""\fIOPTIONS\fR""" 4
258 defines the default options that will be appended to every aptitude call that is made inside chroot during building of the image. By default, this is set to \-\-assume\-yes to allow non-interactive installation of packages.
259265 .IP "\fB\-\-apt\-pipeline\fR \fIDEPTH\fR" 4
260266 sets the depth of the apt/aptitude pipeline. In cases where the remote server is not RFC conforming or buggy (such as Squid 2.0.2) this option can be a value from 0 to 5 indicating how many outstanding requests APT should send. A value of zero MUST be specified if the remote host does not properly linger on TCP connections \- otherwise data corruption will occur. Hosts which require this are in violation of RFC 2068. By default, live\-build does not set this option.
261267 .IP "\fB\-\-apt\-recommends\fR true|false" 4
264270 defines if apt should check repository signatures. This is true by default.
265271 .IP "\fB\-\-apt\-source\-archives\fR true|false" 4
266272 defines if deb-src entries should be included in the resulting live image or not, defaults to true.
273 .IP "\fB\-\-aptitude\-options\fR \fIOPTION\fR|""\fIOPTIONS\fR""" 4
274 defines the default options that will be appended to every aptitude call that is made inside chroot during building of the image. By default, this is set to \-\-assume\-yes to allow non-interactive installation of packages.
267275 .IP "\-a|\fB\-\-architectures\fR \fIARCHITECTURE\fR" 4
268276 defines the architecture of the to be build image. By default, this is set to the host architecture. Note that you cannot crossbuild for another architecture if your host system is not able to execute binaries for the target architecture natively. For example, building amd64 images on i386 and vice versa is possible if you have a 64bit capable i386 processor and the right kernel. But building powerpc images on an i386 system is not possible.
277 .IP "\fB\-\-archive\-areas\fR \fIARCHIVE_AREA\fR|""\fIARCHIVE_AREAS\fR""" 4
278 defines which package archive areas of a debian packages archive should be used for configured debian package mirrors. By default, this is set to main. Remember to check the licenses of each packages with respect to their redistributability in your juristiction when enabling contrib or non\-free with this mechanism.
279 .IP "\fB\-\-backports\fR true|false" 4
280 defines if debian backports package archives should be included in the image or not.
281 .IP "\fB\-\-binary\-filesystem\fR fat16|fat32|ext2|ext3|ext4|ntfs" 4
282 defines the filesystem to be used in the image type. This only has an effect if the selected binary image type lets you choose a filesystem. For example, when selection iso the resulting CD/DVD has always the filesystem ISO9660. When building hdd images for usb sticks, this is active. Note that it defaults to fat16 on all architectures except sparc where it defaults to ext4. Also note that if you choose fat16 and your resulting binary image gets bigger than 2GB, the binary filesystem automatically gets switched to fat32.
269283 .IP "\-b|\fB\-\-binary\-images\fR iso|iso\-hybrid|netboot|tar|hdd" 4
270284 defines the image type to build. By default, for images using syslinux this is set to iso\-hybrid to build CD/DVD images that may also be used like hdd images, for non\-syslinux images, it defaults to iso.
271 .IP "\fB\-\-binary\-filesystem\fR fat16|fat32|ext2|ext3|ext4" 4
272 defines the filesystem to be used in the image type. This only has an effect if the selected binary image type lets you choose a filesystem. For example, when selection iso the resulting CD/DVD has always the filesystem ISO9660. When building hdd images for usb sticks, this is active. Note that it defaults to fat16 on all architectures except sparc where it defaults to ext4. Also note that if you choose fat16 and your resulting binary image gets bigger than 2GB, the binary filesystem automatically gets switched to fat32.
273285 .IP "\fB\-\-bootappend\-install\fR \fIPARAMETER\fR|""\fIPARAMETERS\fR""" 4
274286 sets boot parameters specific to debian\-installer, if included.
275287 .IP "\fB\-\-bootappend\-live\fR \fIPARAMETER\fR|""\fIPARAMETERS\fR""" 4
278290 sets boot parameters specific to debian\-live failsafe boot entries. A complete list of boot parameters can be found in the \fIlive\-boot\fR(7) and \fIlive\-config\fR(7) manual pages.
279291 .IP "\fB\-\-bootloaders\fR grub-legacy|grub-pc|syslinux|grub-efi" 4
280292 defines which bootloader is being used in the generated image. This has only an effect if the selected binary image type lets you choose the bootloader. For example, if you build a iso, always syslinux (or more precise, isolinux) is being used. Also note that some combinations of binary images types and bootloaders may be possible but live\-build does not support them yet. \fBlb config\fR will fail to create such a not yet supported configuration and give a explanation about it. For hdd images on amd64 and i386, the default is syslinux.
293 .IP "\fB\-\-bootstrap\-qemu\-arch \fIARCH\fR" 4
294 sets the architectures to use foreign bootstrap. Defaults to empty.
295 .IP "\fB\-\-bootstrap\-qemu\-exclude \fIPACKAGES\fR" 4
296 sets the packages to exclude during foreign bootstrap. Defaults to empty.
297 .IP "\fB\-\-bootstrap\-qemu\-static \fIPATH\fR" 4
298 sets the static qemu binary for foreign bootstrap. Defaults to empty.
299 .IP "\fB\-\-breakpoints\fR" 4
300 inserts pauses during the generation of the image.
301 .IP "\fB\-\-build\-with\-chroot\fR true|false" 4
302 defines whether live\-build should use the tools from within the chroot to build the binary image or not by using and including the host system's tools. This is a very dangerous option, using the tools of the host system can lead to tainted and even non-bootable images if the host systems version of the required tools (mainly these are the bootloaders such as syslinux and grub, and the auxiliary tools such as dosfstools, xorriso, squashfs-tools and others) do not \fBexactly\fR match what is present at build-time in the target distribution. Never do disable this option unless you are \fBexactly\fR sure what you are doing and have \fBcompletely\fI understood its consequences.
281303 .IP "\fB\-\-cache\fR true|false" 4
282304 defines globally if any cache should be used at all. Different caches can be controlled through the their own options.
283305 .IP "\fB\-\-cache\-indices\fR true|false" 4
284306 defines if downloaded package indices and lists should be cached which is false by default. Enabling it lets you rebuild an image completely offline, however, you would not get updates anymore then.
285307 .IP "\fB\-\-cache\-packages\fR true|false" 4
286308 defines if downloaded packages files should be cached which is true by default. Disabling it does save space consumption in your build directory, but remember that you will cause much unnecessary traffic if you do a couple of rebuilds. In general you should always leave it true, however, in some particular rare build setups, it can be faster to refetch packages from the local network mirror rather than to utilize the local disk.
287 .IP "\fB\-\-cache\-stages\fR true|false|\fISTAGE\fR|""\fISTAGES\fR""" 4
309 .IP "\fB\-\-cache\-stages\fR \fISTAGE\fR|""\fISTAGES\fR""" 4
288310 sets which stages should be cached. By default set to bootstrap. As an exception to the normal stage names, also rootfs can be used here which does only cache the generated root filesystem in filesystem.{dir,ext*,squashfs}. This is useful during development if you want to rebuild the binary stage but not regenerate the root filesystem all the time.
289 .IP "\fB\-\-checksums\fR md5|sha1|sha256|none" 4
290 defines if the binary image should contain a file called md5sums.txt, sha1sums.txt and/or sha256sums.txt. These lists all files on the image together with their checksums. This in turn can be used by live\-boot's built\-in integrity\-check to verify the medium if specified at boot prompt. In general, this should not be false and is an important feature of live system released to the public. However, during development of very big images it can save some time by not calculating the checksums.
291 .IP "\fB\-\-compression\fR bzip2|gzip|lzip|none" 4
292 defines the compression program to be used to compress tarballs. Defaults to gzip.
293 .IP "\fB\-\-config\fR \fIGIT_URL\fR::\fIGIT_ID\fR" 4
294 bootstrap the config tree from a git repository, optionally appended by a Git Id (branch, commit, tag, etc.).
295 .IP "\fB\-\-build\-with\-chroot\fR true|false" 4
296 defines whether live\-build should use the tools from within the chroot to build the binary image or not by using and including the host system's tools. This is a very dangerous option, using the tools of the host system can lead to tainted and even non-bootable images if the host systems version of the required tools (mainly these are the bootloaders such as syslinux and grub, and the auxiliary tools such as dosfstools, xorriso, squashfs-tools and others) do not \fBexactly\fR match what is present at build-time in the target distribution. Never do disable this option unless you are \fBexactly\fR sure what you are doing and have \fBcompletely\fI understood its consequences.
311 .IP "\fB\-\-checksums\fR md5|sha1|sha224|sha256|sha384|sha512|none" 4
312 defines if the binary image should contain a file called XXXsums.txt, where XXX is one of the mentioned checksum types. This file lists all files on the image together with their checksums. This in turn can be used by \fIlive\-boot\fR(7)'s built\-in integrity\-check to verify the medium if specified at boot prompt. In general, this should not be none and is an important feature of live system released to the public. However, during development of very big images it can save some time by not calculating the checksums.
297313 .IP "\fB\-\-chroot\-filesystem\fR ext2|ext3|ext4|squashfs|jffs2|none" 4
298314 defines which filesystem type should be used for the root filesystem image. If you use none, then no filesystem image is created and the root filesystem content is copied on the binary image filesystem as flat files. Depending on what binary filesystem you have chosen, it may not be possible to build with such a plain root filesystem, e.g. fat16/fat32 will not work as linux does not support to run directly on them.
299315 .IP "\fB\-\-clean\fR" 4
300316 minimizes config directory by automatically removing unused and thus empty subdirectories.
317 .IP "\fB\-\-color\fR" 4
318 turns on color in the messages.
319 .IP "\fB\-\-compression\fR bzip2|gzip|lzip|xz|none" 4
320 defines the compression program to be used to compress tarballs. Defaults to none.
301321 .IP "\-c|\fB\-\-conffile\fR \fIFILE\fR" 4
302 using a user specified alternative configuration file in addition to the normally used one in the config directory.
322 uses a user specified alternative configuration file in addition to the normally used one in the config directory.
323 .IP "\fB\-\-config\fR \fIGIT_URL\fR::\fIGIT_BRANCH\fR" 4
324 bootstraps the config tree from a git repository, optionally appended by a Git Id (branch, commit, tag, etc.).
303325 .IP "\fB\-\-debconf\-frontend\fR dialog|editor|noninteractive|readline" 4
304326 defines what value the debconf frontend should be set to inside the chroot. Note that setting it to anything but noninteractive, which is the default, makes your build asking questions during the build.
305327 .IP "\fB\-\-debconf\-priority\fR low|medium|high|critical" 4
308330 defines which type, if any, of the debian\-installer should be included in the resulting binary image. By default, no installer is included. All available flavours except live are the identical configurations used on the installer media produced by regular debian\-cd. When live is chosen, the live\-installer udeb is included so that debian\-installer will behave different than usual \- instead of installing the debian system from packages from the medium or the network, it installs the live system to the disk.
309331 .IP "\fB\-\-debian\-installer\-distribution\fR daily|\fICODENAME\fR" 4
310332 defines the distribution where the debian\-installer files should be taken out from. Normally, this should be set to the same distribution as the live system. However, some times, one wants to use a newer or even daily built installer.
333 .IP "\fB\-\-debian\-installer\-gui\fR true|false" 4
334 defines if the debian\-installer graphical GTK interface should be true or not. In Debian mode and for most versions of Ubuntu, this option is true, whereas otherwise false, by default.
311335 .IP "\fB\-\-debian\-installer\-preseedfile\fR \fIFILE\fR|\fIURL\fR" 4
312336 sets the filename or URL for an optionally used and included preseeding file for debian\-installer. If config/binary_debian\-installer/preseed.cfg exists, it will be used by default.
313 .IP "\fB\-\-debian\-installer\-gui\fR true|false" 4
314 defines if the debian\-installer graphical GTK interface should be true or not. In Debian mode and for most versions of Ubuntu, this option is true, whereas otherwise false, by default.
315337 .IP "\fB\-\-debootstrap\-options\fR \fIOPTIONS\fR" 4
316338 passes the given options to debootstrap when setting up the base system.
317339 .IP "\fB\-\-debootstrap\-script\fR \fISCRIPT\fR" 4
318340 tells debootstrap to use an alternate bootstrap script (last parameter to debootstrap).
319341 .IP "\fB\-\-debug\fR" 4
320 turn on debugging informational messages.
342 turns on debugging informational messages.
321343 .IP "\-d|\fB\-\-distribution\fR \fICODENAME\fR" 4
322344 defines the distribution of the resulting live system.
323 .IP "\-d|\fB\-\-parent\-distribution\fR \fICODENAME\fR" 4
324 defines the parent distribution for derivatives of the resulting live system.
325 .IP "\-d|\fB\-\-parent\-debian\-installer\-distribution\fR \fICODENAME\fR" 4
326 defines the parent debian\-installer distribution for derivatives of the resulting live system.
345 .IP "\fB\-\-distribution\-binary\fR \fICODENAME\fR" 4
346 defines the distribution enabled in the resulting live system (defaults to the value set in \fB\-\-distribution\fR)
347 .IP "\fB\-\-distribution\-chroot\fR \fICODENAME\fR" 4
348 defines the distribution used to build the live system (defaults to the value set in \fB\-\-distribution\fR)
327349 .IP "\fB\-\-dump\fR" 4
328350 prepares a report of the currently present live system configuration and the version of live\-build used. This is useful to provide if you submit bug reports, we do get all information required for us to locate and replicate an error.
329351 .IP "\fB\-\-fdisk\fR fdisk|fdisk.dist" 4
330352 sets the filename of the fdisk binary from the host system that should be used. This is autodetected and does generally not need any customization.
353 .IP "\fB\-\-firmware\-binary\fR true|false" 4
354 includes firmware packages in debian-installer. Defaults to true.
355 .IP "\fB\-\-firmware\-chroot\fR true|false" 4
356 includes firmware packages in debian-installer. Defaults to true.
331357 .IP "\fB\-\-force\fR" 4
332358 forces re\-execution of already run stages. Use only if you know what you are doing. It is generally safer to use \fBlb clean\fR to clean up before re\-executing \fBlb build\fR.
333359 .IP "\fB\-\-grub\-splash\fR \fIFILE\fR" 4
334360 defines the name of an optional to be included splash screen graphic for the grub bootloader.
335361 .IP "\fB\-\-gzip\-options\fR \fIOPTION\fR|""\fIOPTIONS\fR""" 4
336362 defines the default options that will be appended to (almost) every gzip call during the building of the image. By default, this is set to \-\-best to use highest (but slowest) compression. Dynamically, if the host system supports it, also \-\-rsyncable is added.
337 .IP "\fB\-\-hooks\fR \fIFILE\fR" 4
338 defines which hooks available in /usr/share/live/build/examples/hooks should be activated. Normally, there are no hooks executed. Make sure you know and understood the hook before you enable it.
363 .IP "\fB\-\-hdd\-label\fR \fILABEL\fR" 4
364 defines the label for the hdd target. Defaults to DEBIAN_LIVE.
365 .IP "\fB\-\-hdd\-partition\-start\fR \fISTART\fR" 4
366 sets the start of the partition for the hdd target for BIOSes that expect a specific boot partition start (e.g. "63s"). If empty, use optimal layout. Defaults to empty.
367 .IP "\fB\-\-hdd\-size\fR \fISIZE\fR" 4
368 defines the size for the hdd target. The unit is MiB. Defaults to auto, which generates the smallest possible image.
339369 .IP "\fB\-\-ignore\-system\-defaults\fR" 4
340370 \fBlb config\fR by default reads system defaults from \fI/etc/live/build.conf\fR and \fI/etc/live/build/*\fR when generating a new live system config directory. This is useful if you want to set global settings, such as mirror locations, and don't want to specify them all of the time.
341 .IP "\fB\-\-initramfs\fR auto|none|live\-boot|casper" 4
342 sets the name of package that contains the live system specific initramfs modification. By default, auto is used, which means that at build time of the image rather than on configuration time, the value will be expanded to casper when building ubuntu systems, to live\-boot for all other systems. Using 'none' is useful if the resulting system image should not be a live image (experimental).
371 .IP "\fB\-\-image\-name\fR \fINAME\fR" 4
372 sets the base name of the image. Defaults to live-image.
373 .IP "\fB\-\-initramfs\fR none|live\-boot" 4
374 sets the name of the package that contains the live system specific initramfs modification and defaults to live\-boot. Using 'none' is useful if the resulting system image should not be a live image (experimental).
343375 .IP "\fB\-\-initramfs\-compression\fR bzip2|gzip|lzma]
344376 defines the compression program to be used to compress the initramfs. Defaults to gzip.
377 .IP "\fB\-\-initsystem\fR sysvinit|systemd|none]
378 defines the init system. Defaults to systemd.
345379 .IP "\fB\-\-interactive\fR shell" 4
346380 defines if after the chroot stage and before the beginning of the binary stage, a interactive shell login should be spawned in the chroot in order to allow you to do manual customizations. Once you close the shell with logout or exit, the build will continue as usual. Note that it's strongly discouraged to use this for anything else than testing. Modifications that should be present in all builds of a live system should be properly made through hooks. Everything else destroys the beauty of being able to completely automatise the build process and making it non interactive. By default, this is of course false.
347 .IP "\fB\-\-isohybrid\-options\fR \fIOPTION\fR|""\fIOPTIONS\fR""" 4
348 defines options to pass to isohybrid.
349381 .IP "\fB\-\-iso\-application\fR \fINAME\fR" 4
350382 sets the APPLICATION field in the header of a resulting CD/DVD image and defaults to "Debian Live" in debian mode, and "Ubuntu Live" in ubuntu mode.
351383 .IP "\fB\-\-iso\-preparer\fR \fINAME\fR" 4
352 sets the PREPARER field in the header of a resulting CD/DVD image. By default this is set to "live\-build \fIVERSION\fR; http://debian-live.alioth.debian.org/live\-build", where VERSION is expanded to the version of live\-build that was used to build the image.
384 sets the PREPARER field in the header of a resulting CD/DVD image. By default this is set to "live\-build \fIVERSION\fR; https://salsa.debian.org/live-team/live-build", where VERSION is expanded to the version of live\-build that was used to build the image.
353385 .IP "\fB\-\-iso\-publisher\fR \fINAME\fR" 4
354 sets the PUBLISHED field in the header of a resulting CD/DVD image. By default, this is set to 'Live Systems project; http:/live-systems.org/; debian\[email protected]'. Remember to change this to the appropriate values at latest when you distributing custom and unofficial images.
386 sets the PUBLISHED field in the header of a resulting CD/DVD image. By default, this is set to 'Live Systems project; https://wiki.debian.org/DebianLive; debian\[email protected]'. Remember to change this to the appropriate values at latest when you distributing custom and unofficial images.
355387 .IP "\fB\-\-iso\-volume\fR \fINAME\fR" 4
356388 sets the VOLUME field in the header of a resulting CD/DVD and defaults to '(\fIMODE\fR) (\fIDISTRIBUTION\fR) (\fIDATE\fR)' whereas MODE is expanded to the name of the mode in use, DISTRIBUTION the distribution name, and DATE with the current date and time of the generation.
389 .IP "\fB\-\-isohybrid\-options\fR \fIOPTION\fR|""\fIOPTIONS\fR""" 4
390 defines options to pass to isohybrid.
357391 .IP "\fB\-\-jffs2\-eraseblock\fR \fISIZE\fR" 4
358392 sets the eraseblock size for a JFFS2 (Second Journaling Flash File System) filesystem. The default is 64 KiB. If you use an erase block size different than the erase block size of the target MTD device, JFFS2 may not perform optimally. If the SIZE specified is below 4096, the units are assumed to be KiB.
359393 .IP "\fB\-\-keyring\-packages\fR \fIPACKAGE\fI|""\fIPACKAGES\fR""" 4
360394 sets the keyring package or additional keyring packages. By default this is set to debian\-archive\-keyring.
361395 .IP "\-k|\fB\-\-linux\-flavours\fR \fIFLAVOUR\fR|""\fIFLAVOURS\fR""" 4
362 sets the kernel flavours to be installed. Note that in case you specify more than that the first will be configured the default kernel that gets booted.
396 sets the kernel flavours to be installed. Note that in case you specify more than that the first will be configured the default kernel that gets booted. Optionally you can use an architecture qualifier, e.g. amd64:amd64. Given an i386 system you can enable amd64 foreign architecture thanks to the commands: "dpkg \-\-add\-architecture amd64 ; apt\-get update". This enables you to use "686 amd64:amd64" as a linux flavour. The amd64 kernel will be installed alongside the i386's 686 kernel.
363397 .IP "\fB\-\-linux\-packages\fR ""\fIPACKAGES\fR""" 4
364398 sets the internal name of the kernel packages naming scheme. If you use debian kernel packages, you will not have to adjust it. If you decide to use custom kernel packages that do not follow the debian naming scheme, remember to set this option to the stub of the packages only (for debian this is linux\-image\-2.6), so that \fISTUB\fR-\fIFLAVOUR\fR results in a valid package name (for debian e.g. linux\-image\-686\-pae). Preferably you use the meta package name, if any, for the stub, so that your configuration is ABI independent. Also don't forget that you have to include stubs of the binary modules packages for unionfs or aufs, and squashfs if you built them out-of-tree.
399 .IP "\fB\-\-loadlin\fR true|false" 4
400 sets loadlin. Defaults to false, except when the debian-installer is included for x86_64 or i386.
365401 .IP "\fB\-\-losetup\fR losetup|losetup.orig" 4
366402 sets the filename of the losetup binary from the host system that should be used. This is autodetected and does generally not need any customization.
367403 .IP "\fB\-\-memtest\fR memtest86+|memtest86|none" 4
368404 defines if memtest, memtest86+ or no memory tester at all should be included as secondary bootloader configuration. This is only available on amd64 and i386 and defaults to memtest86+.
369 .IP "\-m|\fB\-\-parent\-mirror\-bootstrap\fR \fIURL\fR" 4
370 sets the location of the debian package mirror that should be used to bootstrap from. This defaults to http://ftp.de.debian.org/debian/ which may not be a good default if you live outside of Europe.
371 .IP "\fB\-\-parent\-mirror\-chroot\fR \fIURL\fR" 4
372 sets the location of the debian package mirror that will be used to fetch the packages in order to build the live system. By default, this is set to the value of \-\-parent\-mirror\-bootstrap.
373 .IP "\fB\-\-parent\-mirror\-chroot\-security\fR \fIURL\fR" 4
374 sets the location of the debian security package mirror that will be used to fetch the packages in order to build the live system. By default, this points to http://security.debian.org/debian/.
375 .IP "\fB\-\-parent\-mirror\-chroot\-updates\fR \fIURL\fR" 4
376 sets the location of the debian updates package mirror that will be used to fetch packages in order to build the live system. By default, this is set to the value of \-\-parent\-mirror\-chroot.
377 .IP "\fB\-\-parent\-mirror\-chroot\-backports\fR \fIURL\fR" 4
378 sets the location of the debian backports package mirror that will be used to fetch packages in order to build the live system. By default, this points to http://backports.debian.org/debian-backports/.
379 .IP "\fB\-\-parent\-mirror\-binary\fR \fIURL\fR" 4
380 sets the location of the debian package mirror that should end up configured in the final image and which is the one a user would see and use. This has not necessarily to be the same that is used to build the image, e.g. if you use a local mirror but want to have an official mirror in the image. By default, 'http://httpredir.debian.org/debian/' is used.
381 .IP "\fB\-\-parent\-mirror\-binary\-security\fR \fIURL\fR" 4
382 sets the location of the debian security package mirror that should end up configured in the final image. By default, 'http://security.debian.org/' is used.
383 .IP "\fB\-\-parent\-mirror\-binary\-updates\fR \fIURL\fR" 4
384 sets the location of the debian updates package mirror that should end up configured in the final image. By default, the value of \-\-parent\-mirror\-binary is used.
385 .IP "\fB\-\-parent\-mirror\-binary\-backports\fR \fIURL\fR" 4
386 sets the location of the debian backports package mirror that should end up configured in the final image. By default, 'http://backports.debian.org/debian-backports/' is used.
387 .IP "\fB\-\-parent\-mirror\-debian\-installer\fR \fIURL\fR" 4
388 sets the location of the mirror that will be used to fetch the debian installer images. By default, this points to the same mirror used to build the live system, i.e. the value of \-\-parent\-mirror\-bootstrap.
405 .IP "\fB\-\-mirror\-binary\fR \fIURL\fR" 4
406 sets the location of the derivative package mirror that should end up configured in the final image and which is the one a user would see and use. This has not necessarily to be the same that is used to build the image, e.g. if you use a local mirror but want to have an official mirror in the image. This defaults to http://deb.debian.org/debian/.
407 .IP "\fB\-\-mirror\-binary\-security\fR \fIURL\fR" 4
408 sets the location of the derivatives security package mirror that should end up configured in the final image. This defaults to http://security.debian.org/.
389409 .IP "\fB\-\-mirror\-bootstrap\fR \fIURL\fR" 4
390 sets the location of the debian package mirror that should be used to bootstrap the derivative from. This defaults to http://ftp.de.debian.org/debian/ which may not be a good default if you live outside of Europe.
410 sets the location of the debian package mirror that should be used to bootstrap the derivative from. This defaults to http://deb.debian.org/debian/.
391411 .IP "\fB\-\-mirror\-chroot\fR \fIURL\fR" 4
392412 sets the location of the debian package mirror that will be used to fetch the packages of the derivative in order to build the live system. By default, this is set to the value of \-\-mirror\-bootstrap.
393413 .IP "\fB\-\-mirror\-chroot\-security\fR \fIURL\fR" 4
394 sets the location of the debian security package mirror that will be used to fetch the packages of the derivative in order to build the live system. By default, this points to http://security.debian.org/debian/.
395 .IP "\fB\-\-mirror\-chroot\-updates\fR \fIURL\fR" 4
396 sets the location of the debian updates package mirror that will be used to fetch packages of the derivative in order to build the live system. By default, this is set to the value of \-\-mirror\-chroot.
397 .IP "\fB\-\-mirror\-chroot\-backports\fR \fIURL\fR" 4
398 sets the location of the debian backports package mirror that will be used to fetch packages of the derivative in order to build the live system. By default, this points to http://backports.debian.org/debian-backports/.
399 .IP "\fB\-\-mirror\-binary\fR \fIURL\fR" 4
400 sets the location of the derivative package mirror that should end up configured in the final image and which is the one a user would see and use. This has not necessarily to be the same that is used to build the image, e.g. if you use a local mirror but want to have an official mirror in the image.
401 .IP "\fB\-\-mirror\-binary\-security\fR \fIURL\fR" 4
402 sets the location of the derivatives security package mirror that should end up configured in the final image.
403 .IP "\fB\-\-mirror\-binary\-updates\fR \fIURL\fR" 4
404 sets the location of the derivatives updates package mirror that should end up configured in the final image.
405 .IP "\fB\-\-mirror\-binary\-backports\fR \fIURL\fR" 4
406 sets the location of the derivatives backports package mirror that should end up configured in the final image.
414 sets the location of the debian security package mirror that will be used to fetch the packages of the derivative in order to build the live system. By default, this points to http://security.debian.org/.
407415 .IP "\fB\-\-mirror\-debian\-installer\fR \fIURL\fR" 4
408 sets the location of the mirror that will be used to fetch the debian installer images of the derivative. By default, this points to the same mirror used to build the live system, i.e. the value of \-\-mirror\-bootstrap.
409 .IP "\fB\-\-mode\fR debian|progress|ubuntu" 4
416 sets the location of the mirror that will be used to fetch the debian installer images of the derivative. By default, this points to the same mirror used to build the live system, i.e. the value of \-\-mirror\-chroot.
417 .IP "\fB\-\-mode\fR debian|progress-linux" 4
410418 defines a global mode to load project specific defaults. By default this is set to debian.
411 .IP "\fB\-\-system\fR live|normal" 4
412 defines if the resulting system image should a live system or a normal, non-live system.
419 .IP "\fB\-\-net\-cow\-filesystem\fR nfs|cfs" 4
420 defines the filesystem type for the copy\-on\-write layer and defaults to nfs.
421 .IP "\fB\-\-net\-cow\-mountoptions\fR \fIOPTIONS\fR" 4
422 sets additional options for mounting the copy\-on\-write layer in netboot images and is by default empty.
423 .IP "\fB\-\-net\-cow\-path\fR \fIPATH\fR" 4
424 defines the path to client writable filesystem. Anywhere that \fIclient_mac_address\fR is specified in the path live\-boot will substitute the MAC address of the client delimited with hyphens.
425 .PP
426 .IP "" 4
427 Example:
428 .br
429 /export/hosts/client_mac_address
430 .br
431 /export/hosts/00\-16\-D3\-33\-92\-E8
432 .IP "\fB\-\-net\-cow\-server\fR \fIIP\fR|\fIHOSTNAME\fR" 4
433 sets the IP or hostname that will be configured in the bootloader configuration for the copy\-on\-write filesystem of your netboot image and is by default empty.
413434 .IP "\fB\-\-net\-root\-filesystem\fR nfs|cfs" 4
414435 defines the filesystem that will be configured in the bootloader configuration for your netboot image. This defaults to nfs.
415436 .IP "\fB\-\-net\-root\-mountoptions\fR \fIOPTIONS\fR" 4
418439 sets the file path that will be configured in the bootloader configuration for your netboot image. This defaults to /srv/debian\-live in debian mode, and /srv/ubuntu-live when in ubuntu mode.
419440 .IP "\fB\-\-net\-root\-server\fR \fIIP\fR|\fIHOSTNAME\fR" 4
420441 sets the IP or hostname that will be configured in the bootloader configuration for the root filesystem of your netboot image. This defaults to 192.168.1.1.
421 .IP "\fB\-\-net\-cow\-filesystem\fR nfs|cfs" 4
422 defines the filesystem type for the copy\-on\-write layer and defaults to nfs.
423 .IP "\fB\-\-net\-cow\-mountoptions\fR \fIOPTIONS\fR" 4
424 sets additional options for mounting the copy\-on\-write layer in netboot images and is by default empty.
425 .IP "\fB\-\-net\-cow\-path\fR \fIPATH\fR" 4
426 defines the path to client writable filesystem. Anywhere that \fIclient_mac_address\fR is specified in the path live\-boot will substitute the MAC address of the client delimited with hyphens.
427 .PP
428 .IP "" 4
429 Example:
430 .br
431 /export/hosts/client_mac_address
432 .br
433 /export/hosts/00\-16\-D3\-33\-92\-E8
434 .IP "\fB\-\-net\-cow\-server\fR \fIIP\fR|\fIHOSTNAME\fR" 4
435 sets the IP or hostname that will be configured in the bootloader configuration for the copy\-on\-write filesystem of your netboot image and is by default empty.
436442 .IP "\fB\-\-net\-tarball\fR true|false" 4
437443 defines if a compressed tarball should be created. Disabling this options leads to no tarball at all, the plain binary directory is considered the output in this case. Default is true.
438444 .IP "\fB\-\-onie\fR true|false" 4
439445 defines if an ONIE.bin image is generated. ONIE binaries can be loaded by supported systems, and will in turn boot the live image. Note that iso or hybrid-iso are the only formats supported. For more information visit <\fIhttp://onie.org/\fR>. Default is false.
440446 .IP "\fB\-\-onie\-kernel\-cmdline\fR \fI""OPTION1 OPTION2""\fR" 4
441447 defines additional kernel command line options that the ONIE system will use when booting the image. Default is empty string.
448 .IP "\fB\-\-parent\-archive\-areas\fR \fIARCHIVE_AREA\fR|""\fIARCHIVE_AREAS\fR""" 4
449 defines the archive areas for derivatives of the resulting live system.
450 .IP "\fB\-\-parent\-debian\-installer\-distribution\fR \fICODENAME\fR" 4
451 defines the parent debian\-installer distribution for derivatives of the resulting live system.
452 .IP "\fB\-\-parent\-distribution\fR \fICODENAME\fR" 4
453 defines the parent distribution for derivatives of the resulting live system.
454 .IP "\fB\-\-parent\-distribution\-binary\fR \fICODENAME\fR" 4
455 defines the derivative's parent distribution enabled in the resulting live system.
456 .IP "\fB\-\-parent\-distribution\-chroot\fR \fICODENAME\fR" 4
457 defines the derivative's parent distribution used to build the live system.
458 .IP "\fB\-\-parent\-mirror\-binary\fR \fIURL\fR" 4
459 sets the location of the debian package mirror that should end up configured in the final image and which is the one a user would see and use. This has not necessarily to be the same that is used to build the image, e.g. if you use a local mirror but want to have an official mirror in the image. This defaults to the value of \-\-mirror\-binary.
460 .IP "\fB\-\-parent\-mirror\-binary\-security\fR \fIURL\fR" 4
461 sets the location of the debian security package mirror that should end up configured in the final image. This defaults to the value of \-\-mirror\-binary\-security.
462 .IP "\-m|\fB\-\-parent\-mirror\-bootstrap\fR \fIURL\fR" 4
463 sets the location of the debian package mirror that should be used to bootstrap from. This defaults to the value of \-\-mirror-\bootstrap.
464 .IP "\fB\-\-parent\-mirror\-chroot\fR \fIURL\fR" 4
465 sets the location of the debian package mirror that will be used to fetch the packages in order to build the live system. This defaults to the value of \-\-parent\-mirror\-bootstrap.
466 .IP "\fB\-\-parent\-mirror\-chroot\-security\fR \fIURL\fR" 4
467 sets the location of the debian security package mirror that will be used to fetch the packages in order to build the live system. This defaults to the value of \-\-mirror\-chroot\-security.
468 .IP "\fB\-\-parent\-mirror\-debian\-installer\fR \fIURL\fR" 4
469 sets the location of the mirror that will be used to fetch the debian installer images. This defaults to the value of \-\-parent\-mirror\-chroot.
442470 .IP "\fB\-\-quiet\fR" 4
443471 reduces the verbosity of messages output by \fBlb build\fR.
444 .IP "\fB\-\-archive\-areas\fR \fIARCHIVE_AREA\fR|""\fIARCHIVE_AREAS\fR""" 4
445 defines which package archive areas of a debian packages archive should be used for configured debian package mirrors. By default, this is set to main. Remember to check the licenses of each packages with respect to their redistributability in your juristiction when enabling contrib or non\-free with this mechanism.
446 .IP "\fB\-\-parent\-archive\-areas\fR \fIPARENT_ARCHIVE_AREA\fR|""\fIPARENT_ARCHIVE_AREAS\fR""" 4
447 defines the archive areas for derivatives of the resulting live system.
448472 .IP "\fB\-\-security\fR true|false" 4
449473 defines if the security repositories specified in the security mirror options should be used or not.
450474 .IP "\fB\-\-source\fR true|false" 4
451475 defines if a corresponding source image to the binary image should be build. By default this is false because most people do not require this and would require to download quite a few source packages. However, once you start distributing your live image, you should make sure you build it with a source image alongside.
452476 .IP "\-s|\fB\-\-source\-images\fR iso|netboot|tar|hdd" 4
453477 defines the image type for the source image. Default is tar.
454 .IP "\fB\-\-firmware\-binary\fR true|false" 4
455 defines if firmware packages should be automatically included into the binary pool for debian\-installer. Note that only firmware packages available within the configured archive areas are included, e.g. an image with packages from main only will not automatically include firmware from non\-free. This option does not interfere with explicitly listed packages in binary package lists.
456 .IP "\fB\-\-firmware\-chroot\fR true|false" 4
457 defines if firmware packages should be automatically included into the live image. Note that only firmware packages available within the configured archive areas are included, e.g. an image with packages from main only will not automatically include firmware from non\-free. This option does not interfere with explicitly listed packages in chroot package lists.
458478 .IP "\fB\-\-swap\-file\-path\fR \fIPATH\fR" 4
459479 defines the path to a swap file to create in the binary image. Default is not to create a swap file.
460480 .IP "\fB\-\-swap\-file\-size\fR \fIMB\fR" 4
461481 defines what size in megabytes the swap file should be, if one is to be created. Default is 512MB.
482 .IP "\fB\-\-system\fR live|normal" 4
483 defines if the resulting system image should a live system or a normal, non-live system.
462484 .IP "\fB\-\-tasksel\fR apt|aptitude|tasksel" 4
463485 selects which program is used to install tasks. By default, this is set to tasksel.
464 .IP "\fB\-\-templates\fR \fIPATH\fR" 4
465 sets the path to the templates that live\-build is going to use, e.g. for bootloaders. By default, this is set to /usr/share/live/build/templates/.
466486 .IP "\fB\-\-uefi\-secure\-boot\fR \fIauto|enable|disable\fR" 4
467487 enables or disables Secure Boot support when using grub-efi, by installing signed shim and grub-efi packages. By default, this is set to auto, which means if the packages are available they will be installed, but if not only a warning will be printed and the normal non-signed grub-efi will be used.
468 .IP "\fB\-\-hdd\-size\fR MB" 4
469 defines what size the hdd image should be. Note that although the default is set to 10000 (= 10GB), it will not need 10GB space on your harddisk as the files are created as sparse files.
470488 .IP "\fB\-\-updates\fR true|false" 4
471489 defines if debian updates package archives should be included in the image or not.
472 .IP "\fB\-\-backports\fR true|false" 4
473 defines if debian backports package archives should be included in the image or not.
474490 .IP "\fB\-\-verbose\fR" 4
475491 increases the verbosity of messages output by \fBlb build\fR.
476 .IP "\fB\-\-win32\-loader true|false" 4
492 .IP "\fB\-\-win32\-loader\fR true|false" 4
477493 defines if win32\-loader should be included in the binary image or not.
494 .IP "\fB\-\-zsync\fR true|false" 4
495 defines whether a file for distributing the image in \fIzsync\fR(1) format will be generated. Defaults to true.
478496 .\" FIXME
479497
480498 .SH ENVIRONMENT
499517 This program is a part of live\-build.
500518
501519 .SH HOMEPAGE
502 More information about live\-build and the Live Systems project can be found on the homepage at <\fIhttps://debian-live.alioth.debian.org/\fR>.
520 More information about live\-build and the Live Systems project can be found on the homepage at <\fIhttps://wiki.debian.org/DebianLive\fR>.
503521
504522 .SH BUGS
505523 Bugs can be reported by submitting a bugreport for the live\-build package in the Bug Tracking System at <\fIhttp://bugs.debian.org/\fR> or by writing a mail to the Live Systems mailing list at <\[email protected]\fR>.
2222 This program is a part of live\-build.
2323
2424 .SH HOMEPAGE
25 More information about live\-build and the Live Systems project can be found on the homepage at <\fIhttps://debian-live.alioth.debian.org/\fR>.
25 More information about live\-build and the Live Systems project can be found on the homepage at <\fIhttps://wiki.debian.org/DebianLive\fR>.
2626
2727 .SH BUGS
2828 Bugs can be reported by submitting a bugreport for the live\-build package in the Bug Tracking System at <\fIhttp://bugs.debian.org/\fR> or by writing a mail to the Live Systems mailing list at <\[email protected]\fR>.
2222 This program is a part of live\-build.
2323
2424 .SH HOMEPAGE
25 More information about live\-build and the Live Systems project can be found on the homepage at <\fIhttps://debian-live.alioth.debian.org/\fR>.
25 More information about live\-build and the Live Systems project can be found on the homepage at <\fIhttps://wiki.debian.org/DebianLive\fR>.
2626
2727 .SH BUGS
2828 Bugs can be reported by submitting a bugreport for the live\-build package in the Bug Tracking System at <\fIhttp://bugs.debian.org/\fR> or by writing a mail to the Live Systems mailing list at <\[email protected]\fR>.
1313 .PP
1414 The \fICOMMAND\fR is a name of a live\-build command (see below).
1515 .PP
16 More documentation about how to use live\-build is available in the individual manpages for each helper and in the manual at <\fIhttps://debian-live.alioth.debian.org/manual/\fR>.
16 More documentation about how to use live\-build is available in the individual manpages for each helper and in the manual at <\fIhttps://live-team.pages.debian.net/live-manual/\fR>.
1717 .\" FIXME
1818
1919 .SH OPTIONS
237237 This program is a part of live\-build.
238238
239239 .SH HOMEPAGE
240 More information about live\-build and the Live Systems project can be found on the homepage at <\fIhttps://debian-live.alioth.debian.org/\fR>.
240 More information about live\-build and the Live Systems project can be found on the homepage at <\fIhttps://wiki.debian.org/DebianLive\fR>.
241241
242242 .SH BUGS
243243 Bugs can be reported by submitting a bugreport for the live\-build package in the Bug Tracking System at <\fIhttp://bugs.debian.org/\fR> or by writing a mail to the Live Systems mailing list at <\[email protected]\fR>.
6767 lb binary_loadlin ${@}
6868 lb binary_win32-loader ${@}
6969 lb binary_includes ${@}
70 lb binary_grub-efi ${@}
7071 lb binary_hooks ${@}
71 lb binary_grub-efi ${@}
7272 lb binary_checksums ${@}
7373
7474 if [ "${LB_BUILD_WITH_CHROOT}" != "true" ]
4848 mkdir -p binary/.disk
4949
5050 ARCHITECTURE="$(echo ${LB_ARCHITECTURES} | sed -e 's| |/|g')"
51 DISTRIBUTION="$(echo ${LB_DISTRIBUTION} | cut -b 1 | tr '[a-z]' '[A-Z]')"
52 DISTRIBUTION="${DISTRIBUTION}$(echo ${LB_DISTRIBUTION} | cut -b 2-)"
51 DISTRIBUTION="$(echo ${LB_DISTRIBUTION_BINARY} | cut -b 1 | tr '[a-z]' '[A-Z]')"
52 DISTRIBUTION="${DISTRIBUTION}$(echo ${LB_DISTRIBUTION_BINARY} | cut -b 2-)"
5353
5454 if [ -e chroot/etc/os-release ]
5555 then
110110 do
111111 if [ -e "${LOCATION}" ]
112112 then
113 cp "${LOCATION}/${LB_PARENT_DISTRIBUTION}/${LB_ARCHITECTURES}_udeb_include" binary/.disk/udeb_include
113 cp "${LOCATION}/${LB_PARENT_DISTRIBUTION_BINARY}/${LB_ARCHITECTURES}_udeb_include" binary/.disk/udeb_include
114114
115115 continue
116116 fi
135135 do
136136 if [ -e "${LOCATION}" ]
137137 then
138 cp "${LOCATION}/${LB_PARENT_DISTRIBUTION}/${LB_ARCHITECTURES}_netinst_udeb_include" binary/.disk/udeb_include
138 cp "${LOCATION}/${LB_PARENT_DISTRIBUTION_BINARY}/${LB_ARCHITECTURES}_netinst_udeb_include" binary/.disk/udeb_include
139139
140140 continue
141141 fi
158158 do
159159 if [ -e "${LOCATION}" ]
160160 then
161 cp "${LOCATION}/${LB_PARENT_DISTRIBUTION}/${LB_ARCHITECTURES}_businesscard_udeb_include" binary/.disk/udeb_include
161 cp "${LOCATION}/${LB_PARENT_DISTRIBUTION_BINARY}/${LB_ARCHITECTURES}_businesscard_udeb_include" binary/.disk/udeb_include
162162
163163 continue
164164 fi
156156 grub-efi)
157157 if [ -e binary/boot/grub/efi.img ]
158158 then
159 XORRISO_OPTIONS="${XORRISO_OPTIONS} -e boot/grub/efi.img -no-emul-boot"
160 XORRISO_OPTIONS="${XORRISO_OPTIONS} -isohybrid-gpt-basdat -isohybrid-apm-hfsplus"
159 XORRISO_OPTIONS="${XORRISO_OPTIONS} --efi-boot boot/grub/efi.img"
160 XORRISO_OPTIONS="${XORRISO_OPTIONS} -append_partition 2 0x01 binary/boot/grub/efi.img"
161161 else
162162 Echo "No EFI boot code to include in the ISO"
163163 fi
174174
175175 KERNEL_LIVE="/${INITFS}/${DEFAULT_KERNEL}"
176176 INITRD_LIVE="/${INITFS}/${DEFAULT_INITRD}"
177 APPEND_LIVE="${LB_BOOTAPPEND_LIVE}"
177 APPEND_LIVE="${LB_BOOTAPPEND_LIVE} findiso=\${iso_path}"
178178
179179 # Assembling kernel configuration
180180 _AMD64_686_NUMBER="0"
7070 fi
7171
7272 mkdir -p chroot/binary.deb/archives/partial
73 mv chroot/var/lib/dpkg/status chroot/var/lib/dpkg/status.tmp
74 touch chroot/var/lib/dpkg/status
7573
7674 for LIST in config/package-lists/*.list \
7775 config/package-lists/*.list.binary
8280 Expand_packagelist "${LIST}" "config/package-lists" > chroot/root/"$(basename ${LIST})"
8381
8482 # Downloading additional packages
85 Chroot chroot "xargs --no-run-if-empty --arg-file=/root/$(basename ${LIST}) apt-get ${APT_OPTIONS} -o Dir::Cache=/binary.deb --download-only install"
83 Chroot chroot "xargs --no-run-if-empty --arg-file=/root/$(basename ${LIST}) apt-get ${APT_OPTIONS} -o Dir::Cache=/binary.deb -o Dir::State::status=/dev/null --download-only install"
8684
8785 # Remove package list
8886 rm chroot/root/"$(basename ${LIST})"
130128 mv "${FILE}" binary/${POOL}/${SECTION}/"${LETTER}"/"${SOURCE}"
131129 done
132130
131 if [ -e chroot/etc/os-release ]
132 then
133 _VERSION="$(. chroot/etc/os-release && echo ${VERSION_ID})"
134 fi
135
136 if [ -n "${_VERSION}" ]; then
137 _LB_APT_VERSION_OPT='-o APT::FTPArchive::Release::Version="'"${_VERSION}"'"'
138 fi
139
133140 cd binary
134141
135142 for SECTION in ${POOL}/*
140147
141148 SECTION="$(basename ${SECTION})"
142149
143 mkdir -p ${DISTS}/${LB_PARENT_DISTRIBUTION}/${SECTION}/binary-${LB_ARCHITECTURES}
144 apt-ftparchive packages ${POOL}/${SECTION} > ${DISTS}/${LB_PARENT_DISTRIBUTION}/${SECTION}/binary-${LB_ARCHITECTURES}/Packages
145 gzip -9 -c ${DISTS}/${LB_PARENT_DISTRIBUTION}/${SECTION}/binary-${LB_ARCHITECTURES}/Packages > ${DISTS}/${LB_PARENT_DISTRIBUTION}/${SECTION}/binary-${LB_ARCHITECTURES}/Packages.gz
150 mkdir -p ${DISTS}/${LB_PARENT_DISTRIBUTION_BINARY}/${SECTION}/binary-${LB_ARCHITECTURES}
151 apt-ftparchive packages ${POOL}/${SECTION} > ${DISTS}/${LB_PARENT_DISTRIBUTION_BINARY}/${SECTION}/binary-${LB_ARCHITECTURES}/Packages
152 gzip -9 -c ${DISTS}/${LB_PARENT_DISTRIBUTION_BINARY}/${SECTION}/binary-${LB_ARCHITECTURES}/Packages > ${DISTS}/${LB_PARENT_DISTRIBUTION_BINARY}/${SECTION}/binary-${LB_ARCHITECTURES}/Packages.gz
146153 done
154
155 if [ -d dists/${LB_PARENT_DISTRIBUTION_BINARY} ]; then
156 apt-ftparchive \
157 -o APT::FTPArchive::Release::Origin="Debian" \
158 -o APT::FTPArchive::Release::Label="Debian" \
159 -o APT::FTPArchive::Release::Suite="${LB_PARENT_DISTRIBUTION_BINARY}" \
160 ${_LB_APT_VERSION_OPT} \
161 -o APT::FTPArchive::Release::Codename="${LB_PARENT_DISTRIBUTION_BINARY}" \
162 -o APT::FTPArchive::Release::Date="$(date -R)" \
163 -o APT::FTPArchive::Release::Architectures="${LB_ARCHITECTURES}" \
164 -o APT::FTPArchive::Release::Components="${LB_PARENT_ARCHIVE_AREAS}" \
165 -o APT::FTPArchive::Release::Description="Last updated: $(date -R)" \
166 release dists/${LB_PARENT_DISTRIBUTION_BINARY} \
167 > dists/${LB_PARENT_DISTRIBUTION_BINARY}/Release
168 fi
147169
148170 cd "${OLDPWD}"
149171
150172 rm -f chroot/bin/Packages
151173
152174 rm -rf chroot/binary.deb
153 mv chroot/var/lib/dpkg/status.tmp chroot/var/lib/dpkg/status
154175
155176 # Removing depends
156177 Remove_package
203203
204204 _VERSION="${_VERSION:-none}"
205205
206 _DISTRIBUTION="${LB_DISTRIBUTION}"
206 _DISTRIBUTION="${LB_DISTRIBUTION_BINARY}"
207207 _ARCHITECTURE="${LB_ARCHITECTURES}"
208208
209209 _DATE=$(date -R)
241241 -e "s#@APPEND_INSTALL_FAILSAFE@#${LB_BOOTAPPEND_INSTALL_FAILSAFE}#g" \
242242 -e "s|@PROJECT@|${_PROJECT}|g" \
243243 -e "s|@DISTRIBUTION@|${_DISTRIBUTION}|g" \
244 -e "s|@PARENT_DISTRIBUTION@|${LB_PARENT_DISTRIBUTION}|g" \
244 -e "s|@PARENT_DISTRIBUTION@|${LB_PARENT_DISTRIBUTION_BINARY}|g" \
245245 -e "s|@VERSION@|${_VERSION}|g" \
246246 -e "s|@ARCHITECTURE@|${_ARCHITECTURE}|g" \
247247 -e "s|@DATE@|${_DATE}|g" \
6464 fi
6565
6666 cat > chroot/etc/apt/${_PARENT_FILE} << EOF
67 deb ${LB_PARENT_MIRROR_CHROOT} ${LB_PARENT_DISTRIBUTION} ${LB_PARENT_ARCHIVE_AREAS}
67 deb ${LB_PARENT_MIRROR_CHROOT} ${LB_PARENT_DISTRIBUTION_CHROOT} ${LB_PARENT_ARCHIVE_AREAS}
6868 EOF
6969
7070 if [ "${_PASS}" = "source" ] || [ "${LB_APT_SOURCE_ARCHIVES}" = "true" ]
7171 then
72 echo "deb-src ${LB_PARENT_MIRROR_CHROOT} ${LB_PARENT_DISTRIBUTION} ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
72 echo "deb-src ${LB_PARENT_MIRROR_CHROOT} ${LB_PARENT_DISTRIBUTION_CHROOT} ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
7373 fi
7474
7575 if [ "${LB_DERIVATIVE}" = "true" ]
7676 then
7777 rm -f chroot/etc/apt/sources.list.d/${LB_MODE}.list
7878
79 _DISTRIBUTION="$(echo ${LB_DISTRIBUTION} | sed -e 's|-backports||')"
79 _DISTRIBUTION="$(echo ${LB_DISTRIBUTION_CHROOT} | sed -e 's|-backports||')"
8080
8181 echo "deb ${LB_MIRROR_CHROOT} ${_DISTRIBUTION} ${LB_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list.d/${LB_MODE}.list
8282
9090 then
9191 case "${LB_MODE}" in
9292 debian|progress-linux)
93 case "${LB_PARENT_DISTRIBUTION}" in
93 case "${LB_PARENT_DISTRIBUTION_CHROOT}" in
9494 sid)
9595
9696 ;;
9797
9898 *)
99 echo "deb ${LB_PARENT_MIRROR_CHROOT_SECURITY} ${LB_PARENT_DISTRIBUTION}/updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
99 echo "deb ${LB_PARENT_MIRROR_CHROOT_SECURITY} ${LB_PARENT_DISTRIBUTION_CHROOT}/updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
100100
101101 if [ "${_PASS}" = "source" ] || [ "${LB_APT_SOURCE_ARCHIVES}" = "true" ]
102102 then
103 echo "deb-src ${LB_PARENT_MIRROR_CHROOT_SECURITY} ${LB_PARENT_DISTRIBUTION}/updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
103 echo "deb-src ${LB_PARENT_MIRROR_CHROOT_SECURITY} ${LB_PARENT_DISTRIBUTION_CHROOT}/updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
104104 fi
105105 ;;
106106 esac
130130
131131 if [ "${LB_UPDATES}" = "true" ]
132132 then
133 echo "deb ${LB_PARENT_MIRROR_CHROOT} ${LB_PARENT_DISTRIBUTION}-updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
133 echo "deb ${LB_PARENT_MIRROR_CHROOT} ${LB_PARENT_DISTRIBUTION_CHROOT}-updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
134134
135135 if [ "${_PASS}" = "source" ] || [ "${LB_APT_SOURCE_ARCHIVES}" = "true" ]
136136 then
137 echo "deb-src ${LB_PARENT_MIRROR_CHROOT} ${LB_PARENT_DISTRIBUTION}-updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
137 echo "deb-src ${LB_PARENT_MIRROR_CHROOT} ${LB_PARENT_DISTRIBUTION_CHROOT}-updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
138138 fi
139139
140140 if [ "${LB_DERIVATIVE}" = "true" ]
152152 then
153153 case "${LB_MODE}" in
154154 debian)
155 if [ "${LB_PARENT_DISTRIBUTION}" != "sid" ]
155 if [ "${LB_PARENT_DISTRIBUTION_CHROOT}" != "sid" ]
156156 then
157 echo "deb ${LB_PARENT_MIRROR_CHROOT} ${LB_PARENT_DISTRIBUTION}-backports ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
157 echo "deb ${LB_PARENT_MIRROR_CHROOT} ${LB_PARENT_DISTRIBUTION_CHROOT}-backports ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
158158
159159 if [ "${_PASS}" = "source" ] || [ "${LB_APT_SOURCE_ARCHIVES}" = "true" ]
160160 then
161 echo "deb-src ${LB_PARENT_MIRROR_CHROOT} ${LB_PARENT_DISTRIBUTION}-backports ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
161 echo "deb-src ${LB_PARENT_MIRROR_CHROOT} ${LB_PARENT_DISTRIBUTION_CHROOT}-backports ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
162162 fi
163163 fi
164164 ;;
180180 do
181181 if [ -e "${FILE}" ]
182182 then
183 sed -e "s|@DISTRIBUTION@|${LB_DISTRIBUTION}|g" \
184 -e "s|@PARENT_DISTRIBUTION@|${LB_PARENT_DISTRIBUTION}|g" \
183 sed -e "s|@DISTRIBUTION@|${LB_DISTRIBUTION_CHROOT}|g" \
184 -e "s|@PARENT_DISTRIBUTION@|${LB_PARENT_DISTRIBUTION_CHROOT}|g" \
185185 -e "s|@ARCHIVE_AREAS@|${LB_ARCHIVE_AREAS}|g" \
186186 -e "s|@PARENT_ARCHIVE_AREAS@|${LB_PARENT_ARCHIVE_AREAS}|g" \
187187 "${FILE}" > "chroot/etc/apt/sources.list.d/$(basename ${FILE} .chroot)"
6161 then
6262 # Modify archive areas to remove leading/trailing whitespaces and replace other whitepspace with commas
6363 DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --components=$(echo ${LB_ARCHIVE_AREAS} | sed -e 's| |,|g')"
64 FOREIGN_DEBOOTSTRAP_OPTIONS="--components=$(echo ${LB_ARCHIVE_AREAS} | sed -e 's| |,|g')"
6465 fi
6566
6667 if [ "${_VERBOSE}" = "true" ]
8687 fi
8788
8889 Echo_breakage "Running debootstrap (download-only)... "
89 debootstrap ${DEBOOTSTRAP_OPTIONS} --download-only "${LB_PARENT_DISTRIBUTION}" chroot "${LB_PARENT_MIRROR_BOOTSTRAP}" ${DEBOOTSTRAP_SCRIPT}
90 debootstrap ${DEBOOTSTRAP_OPTIONS} --download-only "${LB_PARENT_DISTRIBUTION_CHROOT}" chroot "${LB_PARENT_MIRROR_BOOTSTRAP}" ${DEBOOTSTRAP_SCRIPT}
9091
9192 # Removing old cache
9293 rm -f cache/packages.bootstrap/*.deb
106107 DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --exclude=$(echo ${LB_BOOTSTRAP_QEMU_EXCLUDE} | sed 's| *|,|g')"
107108 fi
108109
109 Echo_message "Running debootstrap with qemu-debootstrap"
110 qemu-debootstrap ${DEBOOTSTRAP_OPTIONS} "${LB_PARENT_DISTRIBUTION}" chroot "${LB_PARENT_MIRROR_BOOTSTRAP}" ${DEBOOTSTRAP_SCRIPT}
110 Echo_message "Bootstrap will be foreign"
111 debootstrap ${DEBOOTSTRAP_OPTIONS} --foreign "${LB_PARENT_DISTRIBUTION_CHROOT}" chroot "${LB_PARENT_MIRROR_BOOTSTRAP}" ${DEBOOTSTRAP_SCRIPT}
112
113 Echo_message "Running debootstrap second stage under QEMU"
114 cp ${LB_BOOTSTRAP_QEMU_STATIC} chroot/usr/bin
115 Chroot chroot /bin/sh /debootstrap/debootstrap --second-stage ${FOREIGN_DEBOOTSTRAP_OPTIONS}
111116 else
112 debootstrap ${DEBOOTSTRAP_OPTIONS} "${LB_PARENT_DISTRIBUTION}" chroot "${LB_PARENT_MIRROR_BOOTSTRAP}" ${DEBOOTSTRAP_SCRIPT}
117 debootstrap ${DEBOOTSTRAP_OPTIONS} "${LB_PARENT_DISTRIBUTION_CHROOT}" chroot "${LB_PARENT_MIRROR_BOOTSTRAP}" ${DEBOOTSTRAP_SCRIPT}
113118 fi
114119
115120 # Deconfiguring debootstrap configurations
6565 Check_defaults
6666
6767 Echo_message "live-build ${LIVE_BUILD_VERSION}"
68 Echo_message "Building config tree for a ${LB_MODE}/${LB_DISTRIBUTION}/${LB_ARCHITECTURES} system"
68 Echo_message "Building config tree for a ${LB_MODE}/${LB_DISTRIBUTION_BINARY}/${LB_ARCHITECTURES} system"
6969
7070 # Bootstrapping system
7171 lb bootstrap ${@}
151151 progress-linux)
152152 if [ ! -e chroot/etc/apt/preferences.d/progress-linux.pref ]
153153 then
154 _DISTRIBUTION="$(echo ${LB_DISTRIBUTION} | sed -e 's|-backports||')"
154 _DISTRIBUTION="$(echo ${LB_DISTRIBUTION_BINARY} | sed -e 's|-backports||')"
155155
156156 _ENABLE_DISTRIBUTIONS="${_DISTRIBUTION}"
157157 _DISABLE_DISTRIBUTIONS=""
166166 _ENABLE_DISTRIBUTIONS="${_ENABLE_DISTRIBUTIONS} ${_DISTRIBUTION}-updates"
167167 fi
168168
169 case "${LB_DISTRIBUTION}" in
169 case "${LB_DISTRIBUTION_BINARY}" in
170170 *-backports)
171171 if [ "${LB_BACKPORTS}" = "true" ]
172172 then
6363 fi
6464
6565 cat > chroot/etc/apt/${_PARENT_FILE} << EOF
66 deb ${LB_PARENT_MIRROR_CHROOT} ${LB_PARENT_DISTRIBUTION} ${LB_PARENT_ARCHIVE_AREAS}
66 deb ${LB_PARENT_MIRROR_CHROOT} ${LB_PARENT_DISTRIBUTION_CHROOT} ${LB_PARENT_ARCHIVE_AREAS}
6767 EOF
6868
6969 if [ "${_PASS}" = "source" ] || [ "${LB_APT_SOURCE_ARCHIVES}" = "true" ]
7070 then
71 echo "deb-src ${LB_PARENT_MIRROR_CHROOT} ${LB_PARENT_DISTRIBUTION} ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
71 echo "deb-src ${LB_PARENT_MIRROR_CHROOT} ${LB_PARENT_DISTRIBUTION_CHROOT} ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
7272 fi
7373
7474 if [ "${LB_DERIVATIVE}" = "true" ]
7575 then
7676 rm -f chroot/etc/apt/sources.list.d/${LB_MODE}.list
7777
78 _DISTRIBUTION="$(echo ${LB_DISTRIBUTION} | sed -e 's|-backports||')"
78 _DISTRIBUTION="$(echo ${LB_DISTRIBUTION_CHROOT} | sed -e 's|-backports||')"
7979
8080 echo "deb ${LB_MIRROR_CHROOT} ${_DISTRIBUTION} ${LB_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list.d/${LB_MODE}.list
8181
8989 then
9090 case "${LB_MODE}" in
9191 debian|progress-linux)
92 case "${LB_PARENT_DISTRIBUTION}" in
92 case "${LB_PARENT_DISTRIBUTION_CHROOT}" in
9393 sid)
9494
9595 ;;
9696
9797 *)
98 echo "deb ${LB_PARENT_MIRROR_CHROOT_SECURITY} ${LB_PARENT_DISTRIBUTION}/updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
98 echo "deb ${LB_PARENT_MIRROR_CHROOT_SECURITY} ${LB_PARENT_DISTRIBUTION_CHROOT}/updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
9999
100100 if [ "${_PASS}" = "source" ] || [ "${LB_APT_SOURCE_ARCHIVES}" = "true" ]
101101 then
102 echo "deb-src ${LB_PARENT_MIRROR_CHROOT_SECURITY} ${LB_PARENT_DISTRIBUTION}/updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
102 echo "deb-src ${LB_PARENT_MIRROR_CHROOT_SECURITY} ${LB_PARENT_DISTRIBUTION_CHROOT}/updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
103103 fi
104104 ;;
105105 esac
129129
130130 if [ "${LB_UPDATES}" = "true" ]
131131 then
132 echo "deb ${LB_PARENT_MIRROR_CHROOT} ${LB_PARENT_DISTRIBUTION}-updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
132 echo "deb ${LB_PARENT_MIRROR_CHROOT} ${LB_PARENT_DISTRIBUTION_CHROOT}-updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
133133
134134 if [ "${_PASS}" = "source" ] || [ "${LB_APT_SOURCE_ARCHIVES}" = "true" ]
135135 then
136 echo "deb-src ${LB_PARENT_MIRROR_CHROOT} ${LB_PARENT_DISTRIBUTION}-updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
136 echo "deb-src ${LB_PARENT_MIRROR_CHROOT} ${LB_PARENT_DISTRIBUTION_CHROOT}-updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
137137 fi
138138
139139 if [ "${LB_DERIVATIVE}" = "true" ]
151151 then
152152 case "${LB_MODE}" in
153153 debian)
154 if [ "${LB_PARENT_DISTRIBUTION}" != "sid" ]
155 then
156 echo "deb ${LB_PARENT_MIRROR_CHROOT} ${LB_PARENT_DISTRIBUTION}-backports ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
154 if [ "${LB_PARENT_DISTRIBUTION_CHROOT}" != "sid" ]
155 then
156 echo "deb ${LB_PARENT_MIRROR_CHROOT} ${LB_PARENT_DISTRIBUTION_CHROOT}-backports ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
157157
158158 if [ "${_PASS}" = "source" ] || [ "${LB_APT_SOURCE_ARCHIVES}" = "true" ]
159159 then
160 echo "deb-src ${LB_PARENT_MIRROR_CHROOT} ${LB_PARENT_DISTRIBUTION}-backports ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
160 echo "deb-src ${LB_PARENT_MIRROR_CHROOT} ${LB_PARENT_DISTRIBUTION_CHROOT}-backports ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
161161 fi
162162 fi
163163 ;;
179179 do
180180 if [ -e "${FILE}" ]
181181 then
182 sed -e "s|@DISTRIBUTION@|${LB_DISTRIBUTION}|g" \
183 -e "s|@PARENT_DISTRIBUTION@|${LB_PARENT_DISTRIBUTION}|g" \
182 sed -e "s|@DISTRIBUTION@|${LB_DISTRIBUTION_CHROOT}|g" \
183 -e "s|@PARENT_DISTRIBUTION@|${LB_PARENT_DISTRIBUTION_CHROOT}|g" \
184184 -e "s|@ARCHIVE_AREAS@|${LB_ARCHIVE_AREAS}|g" \
185185 -e "s|@PARENT_ARCHIVE_AREAS@|${LB_PARENT_ARCHIVE_AREAS}|g" \
186186 "${FILE}" > "chroot/etc/apt/sources.list.d/$(basename ${FILE} .chroot)"
210210 cp ${FILE} chroot/etc/apt/preferences.d/$(basename ${FILE} .chroot)
211211 fi
212212 done
213
214 # Check local archive keys (chroot)
215 if Find_files config/archives/*.key || \
216 Find_files config/archives/*.key.chroot
217 then
218 for FILE in config/archives/*.key \
219 config/archives/*.key.chroot
220 do
221 if [ -e "${FILE}" ]
222 then
223 if grep -q "PGP PUBLIC KEY BLOCK" "${FILE}"
224 then
225 cp ${FILE} chroot/etc/apt/trusted.gpg.d/$(basename ${FILE}).asc
226 else
227 cp ${FILE} chroot/etc/apt/trusted.gpg.d/$(basename ${FILE}).gpg
228 fi
229 fi
230 done
231 fi
213232
214233 # Configure local package repository
215234 if Find_files config/packages.chroot/*.deb || Find_files config/packages/*.deb
343362 Chroot chroot "apt-get ${APT_OPTIONS} install aptitude"
344363 fi
345364 else # Get fresh indices
346 # Check local archive keys
347 if Find_files config/archives/*.key || \
348 Find_files config/archives/*.key.chroot
349 then
350 for FILE in config/archives/*.key \
351 config/archives/*.key.chroot
352 do
353 if [ -e "${FILE}" ]
354 then
355 if grep -q "PGP PUBLIC KEY BLOCK" "${FILE}"
356 then
357 cp ${FILE} chroot/etc/apt/trusted.gpg.d/$(basename ${FILE}).asc
358 else
359 cp ${FILE} chroot/etc/apt/trusted.gpg.d/$(basename ${FILE}).gpg
360 fi
361 fi
362 done
363 fi
364
365365 # Check local keyring packages
366366 if Find_files config/archives/*.deb
367367 then
459459 # Configure custom sources.list
460460
461461 cat > chroot/etc/apt/${_PARENT_FILE} << EOF
462 deb ${LB_PARENT_MIRROR_BINARY} ${LB_PARENT_DISTRIBUTION} ${LB_PARENT_ARCHIVE_AREAS}
462 deb ${LB_PARENT_MIRROR_BINARY} ${LB_PARENT_DISTRIBUTION_BINARY} ${LB_PARENT_ARCHIVE_AREAS}
463463 EOF
464464
465465 if [ "${_PASS}" = "source" ] || [ "${LB_APT_SOURCE_ARCHIVES}" = "true" ]
466466 then
467 echo "deb-src ${LB_PARENT_MIRROR_BINARY} ${LB_PARENT_DISTRIBUTION} ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
467 echo "deb-src ${LB_PARENT_MIRROR_BINARY} ${LB_PARENT_DISTRIBUTION_BINARY} ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
468468 fi
469469
470470 if [ "${LB_DERIVATIVE}" = "true" ]
471471 then
472472 rm -f chroot/etc/apt/sources.list.d/${LB_MODE}.list
473473
474 _DISTRIBUTION="$(echo ${LB_DISTRIBUTION} | sed -e 's|-backports||')"
474 _DISTRIBUTION="$(echo ${LB_DISTRIBUTION_BINARY} | sed -e 's|-backports||')"
475475
476476 echo "deb ${LB_MIRROR_BINARY} ${_DISTRIBUTION} ${LB_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list.d/${LB_MODE}.list
477477
485485 then
486486 case "${LB_MODE}" in
487487 debian|progress-linux)
488 case "${LB_PARENT_DISTRIBUTION}" in
488 case "${LB_PARENT_DISTRIBUTION_BINARY}" in
489489 sid)
490490
491491 ;;
492492
493493 *)
494 echo "deb ${LB_PARENT_MIRROR_BINARY_SECURITY} ${LB_PARENT_DISTRIBUTION}/updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
494 echo "deb ${LB_PARENT_MIRROR_BINARY_SECURITY} ${LB_PARENT_DISTRIBUTION_BINARY}/updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
495495
496496 if [ "${_PASS}" = "source" ] || [ "${LB_APT_SOURCE_ARCHIVES}" = "true" ]
497497 then
498 echo "deb-src ${LB_PARENT_MIRROR_BINARY_SECURITY} ${LB_PARENT_DISTRIBUTION}/updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
498 echo "deb-src ${LB_PARENT_MIRROR_BINARY_SECURITY} ${LB_PARENT_DISTRIBUTION_BINARY}/updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
499499 fi
500500 ;;
501501 esac
525525
526526 if [ "${LB_UPDATES}" = "true" ]
527527 then
528 echo "deb ${LB_PARENT_MIRROR_BINARY} ${LB_PARENT_DISTRIBUTION}-updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
528 echo "deb ${LB_PARENT_MIRROR_BINARY} ${LB_PARENT_DISTRIBUTION_BINARY}-updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
529529
530530 if [ "${_PASS}" = "source" ] || [ "${LB_APT_SOURCE_ARCHIVES}" = "true" ]
531531 then
532 echo "deb-src ${LB_PARENT_MIRROR_BINARY} ${LB_PARENT_DISTRIBUTION}-updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
532 echo "deb-src ${LB_PARENT_MIRROR_BINARY} ${LB_PARENT_DISTRIBUTION_BINARY}-updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
533533 fi
534534
535535 if [ "${LB_DERIVATIVE}" = "true" ]
547547 then
548548 case "${LB_MODE}" in
549549 debian)
550 if [ "${LB_PARENT_DISTRIBUTION}" != "sid" ]
551 then
552 echo "deb ${LB_PARENT_MIRROR_BINARY} ${LB_PARENT_DISTRIBUTION}-backports ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
550 if [ "${LB_PARENT_DISTRIBUTION_BINARY}" != "sid" ]
551 then
552 echo "deb ${LB_PARENT_MIRROR_BINARY} ${LB_PARENT_DISTRIBUTION_BINARY}-backports ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
553553
554554 if [ "${_PASS}" = "source" ] || [ "${LB_APT_SOURCE_ARCHIVES}" = "true" ]
555555 then
556 echo "deb-src ${LB_PARENT_MIRROR_BINARY} ${LB_PARENT_DISTRIBUTION}-backports ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
556 echo "deb-src ${LB_PARENT_MIRROR_BINARY} ${LB_PARENT_DISTRIBUTION_BINARY}-backports ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/${_PARENT_FILE}
557557 fi
558558 fi
559559 ;;
602602 do
603603 if [ -e "${FILE}" ]
604604 then
605 sed -e "s|@DISTRIBUTION@|${LB_DISTRIBUTION}|g" \
606 -e "s|@PARENT_DISTRIBUTION@|${LB_PARENT_DISTRIBUTION}|g" \
605 sed -e "s|@DISTRIBUTION@|${LB_DISTRIBUTION_BINARY}|g" \
606 -e "s|@PARENT_DISTRIBUTION@|${LB_PARENT_DISTRIBUTION_BINARY}|g" \
607607 -e "s|@ARCHIVE_AREAS@|${LB_ARCHIVE_AREAS}|g" \
608608 -e "s|@PARENT_ARCHIVE_AREAS@|${LB_PARENT_ARCHIVE_AREAS}|g" \
609609 "${FILE}" > "chroot/etc/apt/sources.list.d/$(basename ${FILE} .binary)"
5858
5959 FIRMWARE_PACKAGES=""
6060
61 _CONTENTS="$(for _PARENT_ARCHIVE_AREA in ${LB_PARENT_ARCHIVE_AREAS}; do echo ${LB_PARENT_MIRROR_CHROOT}/dists/${LB_PARENT_DISTRIBUTION}/${_PARENT_ARCHIVE_AREA}/Contents-${LB_ARCHITECTURES}.gz; done)"
61 _CONTENTS="$(for _PARENT_ARCHIVE_AREA in ${LB_PARENT_ARCHIVE_AREAS}; do echo ${LB_PARENT_MIRROR_CHROOT}/dists/${LB_PARENT_DISTRIBUTION_CHROOT}/${_PARENT_ARCHIVE_AREA}/Contents-${LB_ARCHITECTURES}.gz; done)"
6262
63 rm -f cache/contents.chroot/contents.${LB_PARENT_DISTRIBUTION}.${LB_ARCHITECTURES}
63 rm -f cache/contents.chroot/contents.${LB_PARENT_DISTRIBUTION_CHROOT}.${LB_ARCHITECTURES}
6464
6565 for _CONTENT in ${_CONTENTS}
6666 do
67 wget ${WGET_OPTIONS} ${_CONTENT} -O - | gunzip -c >> cache/contents.chroot/contents.${LB_PARENT_DISTRIBUTION}.${LB_ARCHITECTURES}
67 wget ${WGET_OPTIONS} ${_CONTENT} -O - | gunzip -c >> cache/contents.chroot/contents.${LB_PARENT_DISTRIBUTION_CHROOT}.${LB_ARCHITECTURES}
6868
69 FIRMWARE_PACKAGES="${FIRMWARE_PACKAGES} $(awk '/^lib\/firmware/ { print $2 }' cache/contents.chroot/contents.${LB_PARENT_DISTRIBUTION}.${LB_ARCHITECTURES} | sort -u)"
69 FIRMWARE_PACKAGES="${FIRMWARE_PACKAGES} $(awk '/^lib\/firmware/ { print $2 }' cache/contents.chroot/contents.${LB_PARENT_DISTRIBUTION_CHROOT}.${LB_ARCHITECTURES} | sort -u)"
7070 done
7171
7272 if echo ${LB_PARENT_ARCHIVE_AREAS} | grep -qs "non-free"
9090 then
9191 # FIXME: account for the fact that PARENT_DISTRIBUTION and DISTRIBUTION might be the same (to not have overlapping cache files for contents).
9292
93 _CONTENTS="$(for _ARCHIVE_AREA in ${LB_ARCHIVE_AREAS}; do echo ${LB_MIRROR_CHROOT}/dists/${LB_DISTRIBUTION}/${_ARCHIVE_AREA}/Contents-${LB_ARCHITECTURES}.gz; done)"
93 _CONTENTS="$(for _ARCHIVE_AREA in ${LB_ARCHIVE_AREAS}; do echo ${LB_MIRROR_CHROOT}/dists/${LB_DISTRIBUTION_CHROOT}/${_ARCHIVE_AREA}/Contents-${LB_ARCHITECTURES}.gz; done)"
9494
95 rm -f cache/contents.chroot/contents.${LB_DISTRIBUTION}.${LB_ARCHITECTURES}
95 rm -f cache/contents.chroot/contents.${LB_DISTRIBUTION_CHROOT}.${LB_ARCHITECTURES}
9696
9797 for _CONTENT in ${_CONTENTS}
9898 do
99 wget ${WGET_OPTIONS} ${_CONTENT} -O - | gunzip -c >> cache/contents.chroot/contents.${LB_DISTRIBUTION}.${LB_ARCHITECTURES}
99 wget ${WGET_OPTIONS} ${_CONTENT} -O - | gunzip -c >> cache/contents.chroot/contents.${LB_DISTRIBUTION_CHROOT}.${LB_ARCHITECTURES}
100100
101 FIRMWARE_PACKAGES="${FIRMWARE_PACKAGES} $(awk '/^lib\/firmware/ { print $2 }' cache/contents.chroot/contents.${LB_DISTRIBUTION}.${LB_ARCHITECTURES} | sort -u)"
101 FIRMWARE_PACKAGES="${FIRMWARE_PACKAGES} $(awk '/^lib\/firmware/ { print $2 }' cache/contents.chroot/contents.${LB_DISTRIBUTION_CHROOT}.${LB_ARCHITECTURES} | sort -u)"
102102 done
103103 fi
104104
4747 # ;;
4848 #esac
4949
50 for FLAVOUR in ${LB_LINUX_FLAVOURS}
50 for FLAVOUR in ${LB_LINUX_FLAVOURS_WITH_ARCH}
5151 do
5252 for PACKAGE in ${LB_LINUX_PACKAGES}
5353 do
5252 systemd)
5353 _PACKAGES="${_PACKAGES} systemd-sysv"
5454
55 if [ -e chroot/var/lib/dpkg/info/sysvinit.list ]
55 if Chroot_has_package sysvinit
5656 then
5757 Chroot chroot "dpkg --force-remove-essential --purge sysvinit"
5858 fi
6161 sysvinit)
6262 _PACKAGES="${_PACKAGES} sysvinit"
6363
64 if [ -e chroot/var/lib/dpkg/info/systemd-sysv.list ]
64 if Chroot_has_package systemd-sysv
6565 then
6666 Chroot chroot "dpkg --force-remove-essential --purge systemd systemd-sysv"
6767 fi
2020 \t [--apt-http-proxy URL]\n\
2121 \t [--apt-indices true|false]\n\
2222 \t [--apt-options OPTION|\"OPTIONS\"]\n\
23 \t [--aptitude-options OPTION|\"OPTIONS\"]\n\
2423 \t [--apt-pipeline DEPTH]\n\
2524 \t [--apt-recommends true|false]\n\
2625 \t [--apt-secure true|false]\n\
2726 \t [--apt-source-archives true|false]\n\
27 \t [--aptitude-options OPTION|\"OPTIONS\"]\n\
2828 \t [-a|--architectures ARCHITECTURE]\n\
29 \t [--archive-areas ARCHIVE_AREA|\"ARCHIVE_AREAS\"]\n\
30 \t [--backports true|false]\n\
31 \t [--binary-filesystem fat16|fat32|ext2|ext3|ext4|ntfs]\n\
2932 \t [-b|--binary-images iso|iso-hybrid|netboot|tar|hdd]\n\
30 \t [--binary-filesystem fat16|fat32|ext2|ext3|ext4|ntfs]\n\
3133 \t [--bootappend-install PARAMETER|\"PARAMETERS\"]\n\
3234 \t [--bootappend-live PARAMETER|\"PARAMETERS\"]\n\
3335 \t [--bootappend-live-failsafe PARAMETER|\"PARAMETERS\"]\n\
3436 \t [--bootloaders grub-legacy|grub-pc|syslinux|grub-efi]\n\
37 \t [--bootstrap-qemu-arch ARCH]\n\
38 \t [--bootstrap-qemu-exclude PACKAGES]\n\
39 \t [--bootstrap-qemu-static PATH]\n\
40 \t [--breakpoints]\n\
41 \t [--build-with-chroot true|false]\n\
3542 \t [--cache true|false]\n\
3643 \t [--cache-indices true|false]\n\
3744 \t [--cache-packages true|false]\n\
3845 \t [--cache-stages STAGE|\"STAGES\"]\n\
39 \t [--checksums md5|sha1|sha256|sha512|none]\n\
46 \t [--checksums md5|sha1|sha224|sha256|sha384|sha512|none]\n\
47 \t [--chroot-filesystem ext2|ext3|ext4|squashfs|jffs2|none]\n\
48 \t [--clean]\n\
49 \t [--color]\n\
4050 \t [--compression bzip2|gzip|lzip|xz|none]\n\
51 \t [-c|--conffile FILE]\n\
4152 \t [--config GIT_URL::GIT_BRANCH]\n\
42 \t [--zsync true|false]\n\
43 \t [--build-with-chroot true|false]\n\
44 \t [--chroot-filesystem ext2|ext3|ext4|squashfs|jffs2|none]\n\
45 \t [--clean\n\
46 \t [-c|--conffile FILE]\n\
4753 \t [--debconf-frontend dialog|editor|noninteractive|readline]\n\
4854 \t [--debconf-priority low|medium|high|critical]\n\
4955 \t [--debian-installer true|cdrom|netinst|netboot|businesscard|live|false]\n\
5056 \t [--debian-installer-distribution daily|CODENAME]\n\
57 \t [--debian-installer-gui true|false]\n\
5158 \t [--debian-installer-preseedfile FILE|URL]\n\
52 \t [--debian-installer-gui true|false]\n\
5359 \t [--debootstrap-options OPTIONS]\n\
5460 \t [--debootstrap-script SCRIPT]\n\
5561 \t [--debug]\n\
5662 \t [-d|--distribution CODENAME]\n\
57 \t [--parent-distribution CODENAME]\n\
58 \t [--parent-debian-installer-distribution CODENAME]\n\
63 \t [--distribution-binary CODENAME]\n\
64 \t [--distribution-chroot CODENAME]\n\
5965 \t [--dump]\n\
6066 \t [--fdisk fdisk|fdisk.dist]\n\
67 \t [--firmware-binary true|false]\n\
68 \t [--firmware-chroot true|false]\n\
6169 \t [--force]\n\
6270 \t [--grub-splash FILE]\n\
6371 \t [--gzip-options OPTION|\"OPTIONS\"]\n\
72 \t [--hdd-label LABEL]\n\
73 \t [--hdd-partition-start START]\n\
74 \t [--hdd-size SIZE]\n\
6475 \t [--ignore-system-defaults]\n\
65 \t [--initramfs auto|none|live-boot]\n\
76 \t [--image-name NAME]\n\
77 \t [--initramfs none|live-boot]\n\
6678 \t [--initramfs-compression bzip2|gzip|lzma]\n\
6779 \t [--initsystem sysvinit|systemd|none]\n\
68 \t [--image-name [NAME]\n\
6980 \t [--interactive shell]\n\
70 \t [--isohybrid-options OPTION|\"OPTIONS\"]\n\
71 \t [--hdd-label LABEL]\n\
72 \t [--hdd-size MB]\n\
73 \t [--hdd-partition-start [parted unit, e.g. 63s]\n\
7481 \t [--iso-application NAME]\n\
7582 \t [--iso-preparer NAME]\n\
7683 \t [--iso-publisher NAME]\n\
7784 \t [--iso-volume NAME]\n\
85 \t [--isohybrid-options OPTION|\"OPTIONS\"]\n\
7886 \t [--jffs2-eraseblock SIZE]\n\
7987 \t [--keyring-packages PACKAGE|\"PACKAGES\"]\n\
8088 \t [-k|--linux-flavours FLAVOUR|\"FLAVOURS\"]\n\
8189 \t [--linux-packages \"PACKAGES\"]\n\
90 \t [--loadlin true|false]\n\
8291 \t [--losetup losetup|losetup.orig]\n\
8392 \t [--memtest memtest86+|memtest86|none]\n\
84 \t [-m|--parent-mirror-bootstrap URL]\n\
85 \t [--parent-mirror-chroot URL]\n\
86 \t [--parent-mirror-chroot-security URL]\n\
87 \t [--parent-mirror-binary URL]\n\
88 \t [--parent-mirror-binary-security URL]\n\
89 \t [--parent-mirror-debian-installer URL]\n\
93 \t [--mirror-binary URL]\n\
94 \t [--mirror-binary-security URL]\n\
9095 \t [--mirror-bootstrap URL]\n\
9196 \t [--mirror-chroot URL]\n\
9297 \t [--mirror-chroot-security URL]\n\
93 \t [--mirror-binary URL]\n\
94 \t [--mirror-binary-security URL]\n\
9598 \t [--mirror-debian-installer URL]\n\
96 \t [--mode debian]\n\
97 \t [--system live|normal]\n\
99 \t [--mode debian|progress-linux]\n\
100 \t [--net-cow-filesystem nfs|cfs]\n\
101 \t [--net-cow-mountoptions OPTIONS]\n\
102 \t [--net-cow-path PATH]\n\
103 \t [--net-cow-server IP|HOSTNAME]\n\
98104 \t [--net-root-filesystem nfs|cfs]\n\
99105 \t [--net-root-mountoptions OPTIONS]\n\
100106 \t [--net-root-path PATH]\n\
101107 \t [--net-root-server IP|HOSTNAME]\n\
102 \t [--net-cow-filesystem nfs|cfs]\n\
103 \t [--net-cow-mountoptions OPTIONS]\n\
104 \t [--net-cow-path PATH]\n\
105 \t [--net-cow-server IP|HOSTNAME]\n\
106108 \t [--net-tarball true|false]\n\
107109 \t [--onie true|false]\n\
108110 \t [--onie-kernel-cmdline \"OPTION1 OPTION2\"]\n\
111 \t [--parent-archive-areas ARCHIVE_AREA|\"ARCHIVE_AREAS\"]\n\
112 \t [--parent-debian-installer-distribution CODENAME]\n\
113 \t [--parent-distribution CODENAME]\n\
114 \t [--parent-distribution-binary CODENAME]\n\
115 \t [--parent-distribution-chroot CODENAME]\n\
116 \t [--parent-mirror-binary URL]\n\
117 \t [--parent-mirror-binary-security URL]\n\
118 \t [-m|--parent-mirror-bootstrap URL]\n\
119 \t [--parent-mirror-chroot URL]\n\
120 \t [--parent-mirror-chroot-security URL]\n\
121 \t [--parent-mirror-debian-installer URL]\n\
109122 \t [--quiet]\n\
110 \t [--archive-areas ARCHIVE_AREA|\"ARCHIVE_AREAS\"]\n\
111 \t [--parent-archive-areas ARCHIVE_AREA|\"ARCHIVE_AREAS\"]\n\
112123 \t [--security true|false]\n\
113124 \t [--source true|false]\n\
114125 \t [-s|--source-images iso|netboot|tar|hdd]\n\
115 \t [--firmware-binary true|false]\n\
116 \t [--firmware-chroot true|false]\n\
117126 \t [--swap-file-path PATH]\n\
118127 \t [--swap-file-size MB]\n\
128 \t [--system live|normal]\n\
119129 \t [--tasksel apt|aptitude|tasksel]\n\
120130 \t [--uefi-secure-boot auto|enable|disable]\n\
121131 \t [--updates true|false]\n\
122 \t [--backports true|false]\n\
123132 \t [--verbose]\n\
124 \t [--loadlin true|false]\n\
125133 \t [--win32-loader true|false]\n\
126 \t [--bootstrap-qemu-exclude PACKAGES]\n\
127 \t [--bootstrap-qemu-static PATH]\n\
128 \t [--bootstrap-qemu-arch ARCH]"
134 \t [--zsync true|false]"
129135
130136
131137 Local_arguments ()
132138 {
133139 LONG_OPTIONS="apt:,apt-ftp-proxy:,apt-http-proxy:,apt-options:,aptitude-options:,debootstrap-options:,debootstrap-script:,
134 apt-pipeline:,apt-recommends:,apt-secure:,apt-source-archives:,bootstrap:,cache:,cache-indices:,cache-packages:,
140 apt-pipeline:,apt-recommends:,apt-secure:,apt-source-archives:,cache:,cache-indices:,cache-packages:,
135141 cache-stages:,debconf-frontend:,debconf-priority:,dump,
136142 initramfs:,initramfs-compression:,initsystem:,fdisk:,losetup:,mode:,system:,tasksel:,
137143 architectures:,clean,
138 distribution:,parent-distribution:,parent-debian-installer-distribution:,parent-mirror-bootstrap:,parent-mirror-chroot:,parent-mirror-chroot-security:,parent-mirror-binary:,
144 distribution:,parent-distribution:,parent-debian-installer-distribution:,
145 distribution-chroot:,parent-distribution-chroot:,
146 distribution-binary:,parent-distribution-binary:,
147 parent-mirror-bootstrap:,parent-mirror-chroot:,parent-mirror-chroot-security:,parent-mirror-binary:,
139148 parent-mirror-binary-security:,parent-mirror-debian-installer:,
140149 mirror-bootstrap:,mirror-chroot:,mirror-chroot-security:,mirror-binary:,
141150 mirror-binary-security:,mirror-debian-installer:,
148157 iso-volume:,jffs2-eraseblock:,memtest:,net-root-filesystem:,net-root-mountoptions:,
149158 net-root-path:,net-root-server:,net-cow-filesystem:,net-cow-mountoptions:,net-cow-path:,
150159 net-cow-server:,net-tarball:,onie:,onie-kernel-cmdline:,firmware-binary:,firmware-chroot:,swap-file-path:,swap-file-size:,
151 loadlin:,win32-loader:,source:,source-images:,breakpoints,conffile:,debug,force,
160 loadlin:,win32-loader:,source:,source-images:,breakpoints,conffile:,color,debug,force,
152161 help,ignore-system-defaults,quiet,usage,verbose,version,bootstrap-qemu-static:,bootstrap-qemu-arch:,
153162 uefi-secure-boot:,
154163 bootstrap-qemu-exclude:"
155164 # Remove spaces added by indentation
156165 LONG_OPTIONS="$(echo ${LONG_OPTIONS} | tr -d ' ')"
157 ARGUMENTS="$(getopt --longoptions ${LONG_OPTIONS} --name="${PROGRAM}" --options a:f:d:m:l:k:p:b:e:s:c:huv --shell sh -- "${@}")"
166 ARGUMENTS="$(getopt --longoptions ${LONG_OPTIONS} --name="${PROGRAM}" --options a:d:m:k:b:s:c:huv --shell sh -- "${@}")"
158167
159168 if [ "${?}" != "0" ]
160169 then
355364 shift 2
356365 ;;
357366
367 --distribution-chroot)
368 LB_DISTRIBUTION_CHROOT="${2}"
369 shift 2
370 ;;
371
372 --parent-distribution-chroot)
373 LB_PARENT_DISTRIBUTION_CHROOT="${2}"
374 shift 2
375 ;;
376
377 --distribution-binary)
378 LB_DISTRIBUTION_BINARY="${2}"
379 shift 2
380 ;;
381
382 --parent-distribution-binary)
383 LB_PARENT_DISTRIBUTION_BINARY="${2}"
384 shift 2
385 ;;
386
358387 -m|--parent-mirror-bootstrap)
359388 LB_PARENT_MIRROR_BOOTSTRAP="${2}"
360389 shift 2
452481 ;;
453482
454483 -k|--linux-flavours)
455 LB_LINUX_FLAVOURS="${2}"
484 LB_LINUX_FLAVOURS_WITH_ARCH="${2}"
456485 shift 2
457486 ;;
458487
897926
898927 if [ ! -e config ]
899928 then
900 Echo_message "Creating config tree for a ${LB_MODE}/${LB_DISTRIBUTION}/${LB_ARCHITECTURES} system"
929 Echo_message "Creating config tree for a ${LB_MODE}/${LB_DISTRIBUTION_BINARY}/${LB_ARCHITECTURES} system"
901930 mkdir config
902931 else
903 Echo_message "Updating config tree for a ${LB_MODE}/${LB_DISTRIBUTION}/${LB_ARCHITECTURES} system"
932 Echo_message "Updating config tree for a ${LB_MODE}/${LB_DISTRIBUTION_BINARY}/${LB_ARCHITECTURES} system"
904933 fi
905934
906935 # Creating live-build configuration
9941023 # live-build options
9951024
9961025 # \$_BREAKPOINTS: enable breakpoints
1026 # If set here, overrides the command line option
9971027 # (Default: ${_BREAKPOINTS})
9981028 #_BREAKPOINTS="${_BREAKPOINTS}"
9991029
10001030 # \$_DEBUG: enable debug
1031 # If set here, overrides the command line option
10011032 # (Default: ${_DEBUG})
10021033 #_DEBUG="${_DEBUG}"
10031034
10041035 # \$_COLOR: enable color
1036 # If set here, overrides the command line option
10051037 # (Default: ${_COLOR})
10061038 #_COLOR="${_COLOR}"
10071039
10081040 # \$_FORCE: enable force
1041 # If set here, overrides the command line option
10091042 # (Default: ${_FORCE})
10101043 #_FORCE="${_FORCE}"
10111044
10121045 # \$_QUIET: enable quiet
1046 # If set here, overrides the command line option
10131047 # (Default: ${_QUIET})
1014 _QUIET="${_QUIET}"
1048 #_QUIET="${_QUIET}"
10151049
10161050 # \$_VERBOSE: enable verbose
1051 # If set here, overrides the command line option
10171052 # (Default: ${_VERBOSE})
10181053 #_VERBOSE="${_VERBOSE}"
10191054
10381073 # (Default: ${LB_PARENT_DISTRIBUTION})
10391074 LB_PARENT_DISTRIBUTION="${LB_PARENT_DISTRIBUTION}"
10401075
1076 # \$LB_DISTRIBUTION_CHROOT: select distribution to use in the chroot
1077 # (Default: ${LB_DISTRIBUTION_CHROOT})
1078 LB_DISTRIBUTION_CHROOT="${LB_DISTRIBUTION_CHROOT}"
1079
1080 # \$LB_PARENT_DISTRIBUTION_CHROOT: select parent distribution to use in the chroot
1081 # (Default: ${LB_PARENT_DISTRIBUTION_CHROOT})
1082 LB_PARENT_DISTRIBUTION_CHROOT="${LB_PARENT_DISTRIBUTION_CHROOT}"
1083
1084 # \$LB_DISTRIBUTION_BINARY: select distribution to use in the final image
1085 # (Default: ${LB_DISTRIBUTION_BINARY})
1086 LB_DISTRIBUTION_BINARY="${LB_DISTRIBUTION_BINARY}"
1087
1088 # \$LB_PARENT_DISTRIBUTION_BINARY: select parent distribution to use in the final image
1089 # (Default: ${LB_PARENT_DISTRIBUTION_BINARY})
1090 LB_PARENT_DISTRIBUTION_BINARY="${LB_PARENT_DISTRIBUTION_BINARY}"
1091
10411092 # \$LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION: select parent distribution for debian-installer to use
10421093 # (Default: ${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION})
10431094 LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION="${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}"
11311182 LB_KEYRING_PACKAGES="${LB_KEYRING_PACKAGES}"
11321183
11331184 # \$LB_LINUX_FLAVOURS: set kernel flavour to use
1185 # This is kept for backwards compatibility
11341186 # (Default: autodetected)
1135 LB_LINUX_FLAVOURS="${LB_LINUX_FLAVOURS}"
1187 if [ -n "${LB_LINUX_FLAVOURS}" ]
1188 then
1189 LB_LINUX_FLAVOURS_WITH_ARCH="${LB_LINUX_FLAVOURS}"
1190 fi
1191
1192 # \$LB_LINUX_FLAVOURS_WITH_ARCH: set kernel flavour to use (with arch)
1193 # (Default: autodetected)
1194 LB_LINUX_FLAVOURS_WITH_ARCH="${LB_LINUX_FLAVOURS_WITH_ARCH}"
11361195
11371196 # \$LB_LINUX_PACKAGES: set kernel packages to use
11381197 # (Default: autodetected)
14161475 [Image]
14171476 Architecture: ${LB_ARCHITECTURES}
14181477 Archive-Areas: ${LB_ARCHIVE_AREAS}
1419 Distribution: ${LB_DISTRIBUTION}
1478 Distribution-Chroot: ${LB_DISTRIBUTION_CHROOT}
1479 Distribution-Binary: ${LB_DISTRIBUTION_BINARY}
14201480 Mirror-Bootstrap: ${LB_MIRROR_BOOTSTRAP}
14211481 EOF
14221482
14261486 cat >> config/build << EOF
14271487
14281488 Parent-Archive-Areas: ${LB_ARCHIVE_AREAS}
1429 Parent-Distribution: ${LB_PARENT_DISTRIBUTION}
1489 Parent-Distribution-Chroot: ${LB_PARENT_DISTRIBUTION_CHROOT}
1490 Parent-Distribution-Binary: ${LB_PARENT_DISTRIBUTION_BINARY}
14301491 Parent-Mirror-Bootstrap: ${LB_PARENT_MIRROR_BOOTSTRAP}
14311492 EOF
14321493
310310 # Downloading additional packages
311311 mkdir -p chroot/binary.deb/archives/partial
312312
313 mv chroot/var/lib/dpkg/status chroot/var/lib/dpkg/status.tmp
314 touch chroot/var/lib/dpkg/status
315
316313 case "${LB_ARCHITECTURES}" in
317314 amd64)
318315 DI_REQ_PACKAGES="lilo grub-pc"
348345
349346 FIRMWARE_PACKAGES=""
350347
351 _CONTENTS="$(for _PARENT_ARCHIVE_AREA in ${LB_PARENT_ARCHIVE_AREAS}; do echo ${LB_PARENT_MIRROR_CHROOT}/dists/${LB_PARENT_DISTRIBUTION}/${_PARENT_ARCHIVE_AREA}/Contents-${LB_ARCHITECTURES}.gz; done)"
352
353 rm -f cache/contents.chroot/contents.${LB_PARENT_DISTRIBUTION}.${LB_ARCHITECTURES}
348 _CONTENTS="$(for _PARENT_ARCHIVE_AREA in ${LB_PARENT_ARCHIVE_AREAS}; do echo ${LB_PARENT_MIRROR_CHROOT}/dists/${LB_PARENT_DISTRIBUTION_CHROOT}/${_PARENT_ARCHIVE_AREA}/Contents-${LB_ARCHITECTURES}.gz; done)"
349
350 rm -f cache/contents.chroot/contents.${LB_PARENT_DISTRIBUTION_CHROOT}.${LB_ARCHITECTURES}
354351
355352 for _CONTENT in ${_CONTENTS}
356353 do
357 wget ${WGET_OPTIONS} ${_CONTENT} -O - | gunzip -c >> cache/contents.chroot/contents.${LB_PARENT_DISTRIBUTION}.${LB_ARCHITECTURES}
358
359 FIRMWARE_PACKAGES="${FIRMWARE_PACKAGES} $(awk '/^lib\/firmware/ { print $2 }' cache/contents.chroot/contents.${LB_PARENT_DISTRIBUTION}.${LB_ARCHITECTURES} | sort -u)"
354 wget ${WGET_OPTIONS} ${_CONTENT} -O - | gunzip -c >> cache/contents.chroot/contents.${LB_PARENT_DISTRIBUTION_CHROOT}.${LB_ARCHITECTURES}
355
356 FIRMWARE_PACKAGES="${FIRMWARE_PACKAGES} $(awk '/^lib\/firmware/ { print $2 }' cache/contents.chroot/contents.${LB_PARENT_DISTRIBUTION_CHROOT}.${LB_ARCHITECTURES} | sort -u)"
360357 done
361358
362359 if echo ${LB_PARENT_ARCHIVE_AREAS} | grep -qs "non-free"
380377 then
381378 # FIXME: account for the fact that PARENT_DISTRIBUTION and DISTRIBUTION might be the same (to not have overlapping cache files for contents).
382379
383 _CONTENTS="$(for _ARCHIVE_AREA in ${LB_ARCHIVE_AREAS}; do echo ${LB_MIRROR_CHROOT}/dists/${LB_DISTRIBUTION}/${_ARCHIVE_AREA}/Contents-${LB_ARCHITECTURES}.gz; done)"
384
385 rm -f cache/contents.chroot/contents.${LB_DISTRIBUTION}.${LB_ARCHITECTURES}
380 _CONTENTS="$(for _ARCHIVE_AREA in ${LB_ARCHIVE_AREAS}; do echo ${LB_MIRROR_CHROOT}/dists/${LB_DISTRIBUTION_CHROOT}/${_ARCHIVE_AREA}/Contents-${LB_ARCHITECTURES}.gz; done)"
381
382 rm -f cache/contents.chroot/contents.${LB_DISTRIBUTION_CHROOT}.${LB_ARCHITECTURES}
386383
387384 for _CONTENT in ${_CONTENTS}
388385 do
389 wget ${WGET_OPTIONS} ${_CONTENT} -O - | gunzip -c >> cache/contents.chroot/contents.${LB_DISTRIBUTION}.${LB_ARCHITECTURES}
390
391 FIRMWARE_PACKAGES="${FIRMWARE_PACKAGES} $(awk '/^lib\/firmware/ { print $2 }' cache/contents.chroot/contents.${LB_DISTRIBUTION}.${LB_ARCHITECTURES} | sort -u)"
386 wget ${WGET_OPTIONS} ${_CONTENT} -O - | gunzip -c >> cache/contents.chroot/contents.${LB_DISTRIBUTION_CHROOT}.${LB_ARCHITECTURES}
387
388 FIRMWARE_PACKAGES="${FIRMWARE_PACKAGES} $(awk '/^lib\/firmware/ { print $2 }' cache/contents.chroot/contents.${LB_DISTRIBUTION_CHROOT}.${LB_ARCHITECTURES} | sort -u)"
392389 done
393390 fi
394391
400397 fi
401398
402399 # Set apt command prefix
403 _LB_APT_COMMAND="apt-get ${APT_OPTIONS} -o Dir::Cache=/binary.deb -o APT::Install-Recommends=false --download-only"
400 _LB_APT_COMMAND="apt-get ${APT_OPTIONS} -o Dir::Cache=/binary.deb -o Dir::State::status=/dev/null -o APT::Install-Recommends=false --download-only"
404401
405402 if [ "${LB_DEBIAN_INSTALLER}" = "live" ]
406403 then
416413
417414 # Drop the packages already installed that d-i doesn't explicitely need
418415 _REMAINING_PACKAGES="$(echo ${DI_FIRMWARE_PACKAGES} ${DI_REQ_PACKAGES} | sed -e 's# #|#g')"
419 _REMAINING_PACKAGES="$(sed -n -e 's|Package: ||p' chroot/var/lib/dpkg/status.tmp | grep -E -v "^(${_REMAINING_PACKAGES})\$")"
416 _REMAINING_PACKAGES="$(Chroot_package_list chroot | grep -E -v "^(${_REMAINING_PACKAGES})\$")"
420417
421418 for _PACKAGE in ${_REMAINING_PACKAGES}
422419 do
426423 # Download .debs of the required packages
427424 Chroot chroot ${_LB_APT_COMMAND} install ${DI_PACKAGES} ${DI_FIRMWARE_PACKAGES}
428425 fi
429
430 # Revert dpkg status file
431 mv chroot/var/lib/dpkg/status.tmp chroot/var/lib/dpkg/status
432426
433427 mv chroot/binary.deb ./
434428
519513 fi
520514
521515 # Udeb handling
522 mkdir binary.udeb
516 mkdir -p binary.udeb/pool-udeb/main
523517 cd binary.udeb
524518
525519 # Downloading udeb indices
575569 do
576570 if [ -e "${FILE}" ]
577571 then
578 Install_file "${FILE}" "pool"
572 Install_file "${FILE}" "pool-udeb"
579573
580574 # Prefer local udebs over downloaded udebs
581575 rm -f "$(basename ${FILE} | awk -F_ '{ print $1 }')"_*.udeb
589583 do
590584 if [ -e "${FILE}" ]
591585 then
592 Install_file "${FILE}" "pool"
586 Install_file "${FILE}" "pool-udeb"
593587
594588 # Prefer local udebs over downloaded udebs
595589 rm -f "$(basename ${FILE} | awk -F_ '{ print $1 }')"_*.udeb
634628 do
635629 if [ -f "$(basename ${UDEB})" ]
636630 then
637 mkdir -p $(dirname ${UDEB})
638 mv "$(basename ${UDEB})" "$(dirname ${UDEB})"
631 Install_file "$(basename ${UDEB})" "pool-udeb"
632 rm "$(basename ${UDEB})"
639633 fi
640634 done
641635
644638 cd "${OLDPWD}"
645639
646640 mv binary.udeb chroot/root
647 echo "cd /root/binary.udeb && apt-ftparchive packages pool/main > dists/${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}/main/debian-installer/binary-${LB_ARCHITECTURES}/Packages" > chroot/binary.sh
641 echo "cd /root/binary.udeb && apt-ftparchive packages pool-udeb/main > dists/${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}/main/debian-installer/binary-${LB_ARCHITECTURES}/Packages" > chroot/binary.sh
648642 Chroot chroot "sh binary.sh"
649643 rm -f chroot/binary.sh
650644 mv chroot/root/binary.udeb ./
671665 _LB_APT_VERSION_OPT='-o APT::FTPArchive::Release::Version="'"${_VERSION}"'"'
672666 fi
673667
674 case "${LB_PARENT_DISTRIBUTION}" in
668 case "${LB_PARENT_DISTRIBUTION_BINARY}" in
675669 sid)
676670 _SUITE="unstable"
677671 ;;
678672
679673 *)
680 _SUITE="${LB_PARENT_DISTRIBUTION}"
674 _SUITE="${LB_PARENT_DISTRIBUTION_BINARY}"
681675 ;;
682676 esac
683677
687681 -o APT::FTPArchive::Release::Label="Debian" \
688682 -o APT::FTPArchive::Release::Suite="${_SUITE}" \
689683 ${_LB_APT_VERSION_OPT} \
690 -o APT::FTPArchive::Release::Codename="${LB_PARENT_DISTRIBUTION}" \
684 -o APT::FTPArchive::Release::Codename="${LB_PARENT_DISTRIBUTION_BINARY}" \
691685 -o APT::FTPArchive::Release::Date="$(date -R)" \
692686 -o APT::FTPArchive::Release::Architectures="${LB_ARCHITECTURES}" \
693687 -o APT::FTPArchive::Release::Components="${LB_PARENT_ARCHIVE_AREAS}" \
699693 rm -f chroot/binary.sh
700694 mv chroot/root/binary ./
701695
702 case "${LB_PARENT_DISTRIBUTION}" in
703 jessie)
704 DISTRIBUTIONS="stable"
705 ;;
706
707 *)
708 DISTRIBUTIONS="stable testing unstable"
709 ;;
710 esac
711
712 if [ "${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}" != "${LB_PARENT_DISTRIBUTION}" ]
713 then
714 DISTRIBUTIONS="${DISTRIBUTIONS} ${LB_PARENT_DISTRIBUTION}"
696 DISTRIBUTIONS="stable testing unstable"
697
698 if [ "${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}" != "${LB_PARENT_DISTRIBUTION_BINARY}" ]
699 then
700 DISTRIBUTIONS="${DISTRIBUTIONS} ${LB_PARENT_DISTRIBUTION_BINARY}"
715701 fi
716702
717703 case "${LIVE_IMAGE_TYPE}" in
116116 # where available. workaround: disable backports
117117 case "${LB_MODE}" in
118118 progress-linux)
119 case "${LB_DISTRIBUTION}" in
119 case "${LB_DISTRIBUTION_BINARY}" in
120120 *-backports)
121121
122122 ;;
123123
124124 *)
125 if grep -qs "${LB_DISTRIBUTION}-backports" chroot/etc/apt/sources.list.d/progress-linux.list
125 if grep -qs "${LB_DISTRIBUTION_BINARY}-backports" chroot/etc/apt/sources.list.d/progress-linux.list
126126 then
127127 cp chroot/etc/apt/sources.list.d/progress-linux.list chroot/etc/apt/sources.list.d/progress-linux.list.orig
128128
129129 while read _LINE
130130 do
131 if echo "${_LINE}" | grep -qs ${LB_DISTRIBUTION}-backports
131 if echo "${_LINE}" | grep -qs ${LB_DISTRIBUTION_BINARY}-backports
132132 then
133133 sed -i -e "s|${_LINE}|#${_LINE}|" chroot/etc/apt/sources.list.d/progress-linux.list
134134 fi
4848
4949 mkdir -p source/.disk
5050
51 DISTRIBUTION="$(echo ${LB_DISTRIBUTION} | cut -b 1 | tr '[a-z]' '[A-Z]')"
52 DISTRIBUTION="${DISTRIBUTION}$(echo ${LB_DISTRIBUTION} | cut -b 2-)"
51 DISTRIBUTION="$(echo ${LB_DISTRIBUTION_BINARY} | cut -b 1 | tr '[a-z]' '[A-Z]')"
52 DISTRIBUTION="${DISTRIBUTION}$(echo ${LB_DISTRIBUTION_BINARY} | cut -b 2-)"
5353
5454 if [ -e chroot/etc/os-release ]
5555 then
+0
-1
share/bootloaders/extlinux/ldlinux.c32 less more
0 /usr/lib/syslinux/modules/bios/ldlinux.c32
+0
-1
share/bootloaders/syslinux/ldlinux.c32 less more
0 /usr/lib/syslinux/modules/bios/ldlinux.c32