Commit Graph

421 Commits

Author SHA1 Message Date
Daniel Baumann 36d4a6672f Updating splash.svg handling for unchrooted and chrooted builds. 2012-07-18 21:55:07 +02:00
Daniel Baumann 600275fcf9 Adding support for pinning preferences files in config/archives/*.pref{.chroot,.binary}. 2012-07-18 21:03:20 +02:00
Daniel Baumann 0a553d2a32 Handle multiple version numbers when having more than one linux flavours for splash.svg post-processing. 2012-07-18 20:44:05 +02:00
Daniel Baumann 56465f7f46 Removing spurious lb_source_netboot, there's not such thing as a netboot specific source tarball anyway. 2012-07-18 20:12:35 +02:00
Daniel Baumann f4de284deb Adding xz as valid compression format. 2012-07-18 20:07:06 +02:00
Daniel Baumann 75ca21eaec Adding support for zsync control files generation, thanks to Hector Oron <hector.oron@gmail.com> for the idea and prototype. 2012-07-18 19:37:20 +02:00
Daniel Baumann 310be05bff Renaming net flavour to netboot for consistency. 2012-07-18 19:26:07 +02:00
Daniel Baumann 23bf55a73c Applying patch from Steven Shiau <steven@nchc.org.tw> to conditionally copy /etc/apt/secring.gpg* files. 2012-07-18 17:45:52 +02:00
Daniel Baumann cfc14171c4 Adding dynamic informations into the splash and creating the png export at build time. 2012-07-08 19:18:31 +02:00
Daniel Baumann f2c37f226b Improving error message in lb wrapper to show the command in case of a missing command. 2012-07-03 16:05:31 +02:00
Daniel Baumann 6b506cb7ba Switching from smbfs to cifs-utils (Closes: #679240). 2012-06-27 14:34:10 +02:00
Daniel Baumann 788455780b Automatically include intel-microcode when building with firmware and non-free enabled. 2012-06-12 13:38:20 +02:00
Daniel Baumann 52bdb68d18 Changing default binary.list filename to binary.contents to make it more explicit and not to be confused with package lists. 2012-06-12 10:08:58 +02:00
Daniel Baumann 87374242c6 For consistency, respecting config/environment too for both chroot and binary environments (but the content of sepcific environments for either chroot or binary still has precedence over the generic one). 2012-06-06 21:32:08 +02:00
Hector Oron 8d9de19390 Dont assume bash when configuring chroot with QEMU.
Currently running second stage with QEMU on a chroot without bash fails.
The following patch teaches chroot to use /bin/sh instead default /bin/bash.
2012-06-06 19:59:15 +02:00
Daniel Baumann a5a651f08d Updating live-media checksum names for newer live-boot. 2012-06-05 17:40:52 +02:00
Daniel Baumann 59ec07d99a Removing grub-efi from d-i packages for the time being, it doesn't work correctly yet. 2012-06-05 12:59:53 +02:00
Daniel Baumann 328222f8c7 Moving local includes from auto/{functions,scripts} to local/{functions,scripts} where they belong. 2012-06-04 11:55:22 +02:00
Daniel Baumann 434307c22d Updating cache directory names to consistent naming scheme. 2012-06-04 11:55:22 +02:00
Daniel Baumann ead507b47c Making firmware package assembling a bit more robust. 2012-06-04 11:55:18 +02:00
Daniel Baumann 4007e00a56 Adding grub-efi to static list of packages for the d-i pool for amd64. 2012-06-04 11:54:14 +02:00
Daniel Baumann aa0c0fb107 Renaming internal .stage to .build for consistency within the configuration tree. 2012-06-03 22:42:41 +02:00
Daniel Baumann a666a80a4f Renaming config/binary_debian-installer-includes to config/includes.binary_debian-installer for consistency with the other include directories. 2012-06-03 08:27:16 +02:00
Daniel Baumann 75a671efca Allowing to use comments in config/environment.{binary,chroot}. 2012-05-31 13:16:19 +02:00
Daniel Baumann 7ce43cfc16 Allowing to inject variables through config/environment.binary into the binary environment. 2012-05-31 13:15:18 +02:00
Daniel Baumann dc6b3d90da Moving firmware symlink creation to the end of binary_debian-installer in order to ensure to take only the latest packages into account that get into the image, regardless if they come from the archive or are localy included. 2012-05-31 13:04:55 +02:00
Daniel Baumann 5e91eadadc Naming resulting binary isohybrid image binary.hybrid.iso from now on for consistency with the different hdd images later on. 2012-05-25 19:25:38 +02:00
Daniel Baumann 626b9923f7 Correcting renaming of syslinux files in progress mode to actually work. 2012-05-25 19:13:20 +02:00
Daniel Baumann 69194996f7 Using /boot on live media instead of /isolinux or /syslinux in progress mode. 2012-05-23 07:22:51 +02:00
Daniel Baumann f759856a78 Correcting typo in binary_rootfs to restore 'plain' live filesystem support. 2012-05-23 07:19:19 +02:00
Daniel Baumann 224a2304c8 Adding failsafe entries for syslinux bootloaders in embedded configs. 2012-04-29 09:30:50 +02:00
Daniel Baumann 58cb79b8cd Transforming failsafe boot parameter into an own option. 2012-04-27 20:31:49 +02:00
Daniel Baumann 0af78a1f67 Slight reordering in lb_binary_debian-installer. 2012-04-27 00:20:40 +02:00
Daniel Baumann 678f2c1cfb Adding symlinks in /firmware for debian-installer on live media. 2012-04-26 23:37:56 +02:00
Daniel Baumann 4eec1db12f Updating static list of live specific packages that get unconditionally added and included in the source images. 2012-04-26 23:08:15 +02:00
Daniel Baumann 53898caf1f Also include firmware-linux meta package if non-free is enabled.
While the actual firmware packages are automatically detected,
it is handy to have the firmware-linux meta package included
if non-free is enabled. That way, future upgrades to newer kernels
will keep having all available firmware packages pulled in too.
2012-04-26 23:02:53 +02:00
Daniel Baumann 4a182167c7 Automatically preseed some known firmware packages. 2012-04-26 22:56:57 +02:00
Daniel Baumann b8bf4da08f Adding support for including firmware packages automatically within the live system. 2012-04-26 22:39:36 +02:00
Daniel Baumann add95845d9 Removing 'frozen' symlink in d-i dists, the other suitnames can probably go to. 2012-04-26 22:28:50 +02:00
Daniel Baumann ee4838878f Generating package indices for the detected sections within binary pool, needed for proper firmware package placement. 2012-04-26 22:28:50 +02:00
Daniel Baumann e5b2325f2c Installing packages into their detected sections within binary pool, needed for proper firmware package placement. 2012-04-26 22:28:50 +02:00
Daniel Baumann bbd9c284e4 Adding support for including firmware packages automatically within debian-installer. 2012-04-26 22:28:48 +02:00
Daniel Baumann 1361d324e1 Adding memtest to the list of options appended in fail-safe mode. 2012-04-21 10:47:13 +02:00
intrigeri f3b93ad321 Adding nosplash to the list of options appended in fail-safe mode. 2012-04-18 16:24:56 +02:00
Daniel Baumann 5cfd66788e Correcting destination directory for extraction of the gfxboot-theme in ubuntu mode. 2012-04-17 21:52:07 +00:00
Daniel Baumann 02a0e0b64f Temporarily including bzip2 manually when bootstrapping until #657560 has been fixed in unstable. 2012-04-11 09:01:24 +02:00
Daniel Baumann 73682ba57a Correcting regression in the form of a wrong path in binary_syslinux for syslinux theme packages. 2012-04-10 10:53:22 +02:00
Daniel Baumann f3f9ad8bde When removing fstab for live-installer also touch an empty file for it to avoid other packages failing on non-existing fstab. 2012-04-06 12:10:04 +02:00
Daniel Baumann 805cebe2e4 Prefering default modules in initrd even on netboot images (Closes: #667594). 2012-04-05 10:24:40 +02:00
Daniel Baumann 544bde3039 Moving kernel and initrd into tftpboot directory for netboot images. 2012-04-04 21:19:15 +02:00
Daniel Baumann 8fa786ba89 Avoid calling update-initrd in lb_chroot_hacks if the target system has no initrd, thanks to Hector Oron <zumbi@debian.org>. 2012-03-07 18:12:26 +01:00
Daniel Baumann e5f5af6525 Adding architecture to the output message when running lb_config. 2012-03-03 13:05:29 +01:00
Daniel Baumann 7809c0ef96 Removing --username cruft, live-config bootparameters should be used via --bootappend-live. 2012-02-26 19:55:28 +01:00
Daniel Baumann ea22359fa6 Removing --hostname cruft, live-config bootparameters should be used via --bootappend-live. 2012-02-26 19:50:49 +01:00
Daniel Baumann b7a0d88db0 Removing warning about resolvconf package, not be needed anymore. 2012-02-07 13:31:41 +01:00
Daniel Baumann 7f91738540 Correcting destination path for uuid.conf when using casper in binary_disk, thanks to Luigi Capriotti <l.capriotti@xbmc.org> (Closes: #658995). 2012-02-07 10:12:52 +01:00
Daniel Baumann 17b425e9bd Correcting lzcat call in binary_disk to not bail out due to non-standard file extension (unknown suffix -- unchanged), thanks to Luigi Capriotti <l.capriotti@xbmc.org> (Closes: #658995). 2012-02-07 10:11:31 +01:00
Daniel Baumann b1c3aecd28 Handling /etc/resolv.conf even if it's a dangling symlink like with resolv.conf, thanks to Stephane Graber <stgraber@ubuntu.com> (Closes: #657640). 2012-02-07 10:04:51 +01:00
Daniel Baumann 3004ef6851 Shortening kernel and initrd filenames in /live again similar to what we did with in lenny.
Unfortunately, syslinux as of wheezy and newer apparently does not support
long filenames anymore. Therefore, we do have to shorten the filenames
from:

	/live/vmlinuz-3.2.0-1-amd64
	/live/initrd.img-3.2.0-1-amd64

to:

	/live/vmlinuz
	/live/initrd.img

In case more than one kernel flavour is used, the files are being
numbered, starting with vmlinuz1 and initrd1.img.
2012-02-06 23:17:23 +01:00
Daniel Baumann 3f62ac0a3d Cleaning up handling of apt preferences when building in progress mode. 2012-02-06 23:15:13 +01:00
Daniel Baumann bd9b635a0a Simplyfing automatic pinning in derivative modes. 2012-02-06 23:15:13 +01:00
Daniel Baumann d9a0202d1b Dereferencing potential symlinked apt preference files in chroot_apt/*.pref. 2012-02-06 23:15:13 +01:00
Daniel Baumann 7e1fc7431c Avoid removing populated apt preferences file in derivative mode. 2012-02-06 23:15:13 +01:00
Daniel Baumann db4b354436 Improve backports handling in derivatives mode.
If LB_BACKPORTS=true, then backports are configured in sources.list,
however, not enabled.

If backports are enabled depends on pinning, either manually through
apt/preferences.d snipplets in local includes/chroot_apt, or,
depending on distribution (e.g. building artax-backports enables
pinning automatically).
2012-02-06 23:15:13 +01:00
Daniel Baumann 9c9cdbbb33 Removing useless top-comment for /etc/apt/preferences.d/progress.pref. 2012-02-06 23:15:13 +01:00
Daniel Baumann 822dc2c028 Updating year in copyright notices for 2012. 2012-02-06 23:15:12 +01:00
Daniel Baumann 335b5d0352 Using /etc/apt/sources.list.d/debian.list instead of /etc/apt/sources.list in derivative mode. 2012-02-06 23:15:11 +01:00
Daniel Baumann cc9fb10e25 Removing removal of bootstrap-base udeb in binary_debian-installer.
If both bootstrap-base and live-installer are available on the installer,
live-installer is prefereded by d-i (because of the live specific .disk info).

If live-installer is included, can be disabled with live-installer/enable=false
and d-i will use bootstrap-base in order to debootstrap the base system on
/target.
2012-02-06 23:15:11 +01:00
Daniel Baumann d2944e4341 Renaming forgotten binary_packagelists to binary_package-lists to match the rest of lb. 2012-02-06 23:15:11 +01:00
Daniel Baumann 2bcb8b67e4 Avoid warning messages in binary_packagelists for not existing local lists. 2012-02-06 23:15:11 +01:00
Daniel Baumann 0b6d68ce73 Adding note about 404 errors that are on purpose when fetching udebs in derivative mode. 2012-02-06 23:15:11 +01:00
Daniel Baumann 7b99b1a9e9 Giving a note about what mode we are configuring, now that mode is determined automatically based on the host system. 2012-02-06 23:15:11 +01:00
Daniel Baumann 4e2a532f37 Updating lb_binary_syslinux for embedded syslinux themes. 2012-02-06 17:02:58 +01:00
Colin Watson 3a75594b8c Print the current time before starting a command with the lb wrapper script (Closes: #630089). 2012-01-12 22:22:57 +01:00
Daniel Baumann dce7b385ba Using syslinux payload as fallback in lb_binary_syslinux if no destinct image type could be deduced (Closes: #655562). 2012-01-12 12:34:53 +01:00
Daniel Baumann 2eab8fec68 Correcting wrong and incompatible loop for casper initrds in binary_disk. 2012-01-12 11:57:45 +01:00
Matthijs Kooijman 93a18b9cad Unmount chroot/root/config when running lb_clean. 2012-01-10 21:54:58 +01:00
Matthijs Kooijman 58209e8bd8 Use a two-stage mount again for mounting config inside chroot in lb_chroot_hooks.
This reverts part of cacf9b6e34 (but also adds a "bind" option to the
remount command, as documented in mount(8)).

Apparently, doing "mount -o bind,ro" doesn't work. It outputs:

	mount: warning: chroot/root/config seems to be mounted read-write.

and mounts read-write instead of read-only. This behaviour is
documented in mount(8). Newer kernels do seem to allow
combining bind with the read-only option (see mount(2)), but this does
not seem to work (possibly because mount is trying to be smart).
2012-01-10 21:54:58 +01:00
Matthijs Kooijman e7ecf56be3 Make the config available to all hooks.
Previously, the config was bindmounted inside the chroot only for hooks
from the config dir, now it is done earlier so it is available for all
hooks.

Note that it is now also done if there are no hooks, but this is
probably enough of an exception case to not warrant the extra plumbing
required to detect the case (and doing an extra bindmount shouldn't
really hurt anyway...).
2012-01-10 21:54:58 +01:00
Matthijs Kooijman ea491a1a1a Fix pathname for running hooks in lb_chroot_hooks.
lb_chroot_hooks would copy the hooks to run to
chroot/root/lb_chroot_hooks, but then try to run them from chroot/root
(which obviously fails). This means lb_chroot_hooks has not been working
for hooks from /usr/share/live/build/hooks since lb_chroot_hooks was
added in revision e4793268. Running hooks from the config directory was
unaffected.
2012-01-10 21:54:58 +01:00
Matthijs Kooijman dbe6a82bc0 Make lb_chroot_hooks work with dash.
Apparently, dash doesn't expand shell patterns within a quoted string,
whereas bash does. We can't remove the quoting entirely, though, since
that would cause problems when $LB_BASE or $_HOOK contains spaces (note
that $_HOOK can probably never contain spaces, but let's handle it just
in case). Only quoting the expansion of $LB_BASE and $_HOOK, but not the
shell pattern should make the hooks work with both bash and dash again.
2012-01-10 21:54:58 +01:00
Daniel Baumann ecbcdaa784 Using xz compression for squashfs only on wheezy and sid for the moment, not artax-backports. 2012-01-07 20:25:54 +01:00
Daniel Baumann 6bb4a22152 Adding temporary hack with pinning to avoid squashfs-tools mismatch for artax-backports. 2012-01-07 20:18:43 +01:00
Daniel Baumann e05fa004ff Correcting assembling of automatic pinning in progress mode. 2012-01-07 19:59:55 +01:00
Daniel Baumann e3c9db7a2b Fix unconditional overwriting of /etc/apt/preferences.d/progress.pref in progress mode. 2012-01-07 19:59:55 +01:00
Daniel Baumann ac004b56d2 Adding support for apt preference.d in config/chroot_apt. 2012-01-07 19:59:53 +01:00
Matthijs Kooijman 4581e49d4e Fixing lb_binary_rootfs leaving the chroot without archives files. 2012-01-03 21:08:34 +01:00
Daniel Baumann e57e3a2bac Creating progress specific disk info files in progress mode. 2011-11-29 16:28:17 +01:00
Daniel Baumann 4272857617 Removing --tasks leftovers in lb_config. 2011-11-02 13:10:54 +01:00
Daniel Baumann fda0dfab52 Adding temporary manual setting of d-i urls for progress. 2011-10-30 09:49:41 +01:00
Daniel Baumann 2c1c76edcf Bail out early in lb_source if source is disabled (Closes: #646807). 2011-10-27 21:58:16 +02:00
Daniel Baumann 0da0a10a95 Also strip out source archives from local archive definitions when using --apt-source-archives false. 2011-10-13 17:44:00 +02:00
Daniel Baumann e9a5afc6cc Deal with non-existing preseed files in config tree. 2011-10-13 09:38:32 +02:00
Daniel Baumann b0454ad434 Correcting wrong location when looking for local preseed files in config tree, thanks to Eugenio Paolantonio <me@medesimo.eu> (Closes: #645116). 2011-10-13 09:38:32 +02:00
Ben Howard d90c311ef9 Adding foreign bootstrap via qemu for cross arch building. 2011-10-05 07:38:53 +02:00
Daniel Baumann 5ec41753cc Adding bug number to comments when moving top-level sources.list. 2011-10-03 12:38:59 +02:00
Ben Howard 0b654837bb Adding check for missing mtab during chrooted binary rootfs stage. 2011-10-01 08:04:57 +02:00
Daniel Baumann fc0d34a31b Making top sources.list conditional, not everyone necessarily always uses that. 2011-09-30 15:42:51 +02:00
Daniel Baumann cf4f1c8ace Treating sources.list top-level file specially to workaround bug in apt that makes sources.list.d sources to be never prefered over main sources.list when using pinning (Closes: #573054). 2011-09-30 15:26:34 +02:00
Colin Watson 5b7adeab62 Copying gfxboot theme when building for Ubuntu. 2011-09-30 12:10:58 +02:00