Raphaël Hertzog
7ad6c408e5
Default for LB_UNION_FILESYSTEM is now "overlay" just like in live-boot.
2016-12-02 15:10:19 +01:00
Raphaël Hertzog
58fd378005
Drop useless code in binary_grub-pc
2016-12-02 15:01:28 +01:00
Raphaël Hertzog
4204a74352
Drop useless code in binary_grub-efi
2016-12-02 14:57:45 +01:00
Raphaël Hertzog
fb0d4e2a18
Use a grub theme that integrates reasonably well with the current background picture.
2016-12-02 14:50:21 +01:00
Raphaël Hertzog
a15b579652
Drop an optimization in chroot_archives that has undesired side-effects
...
Thanks to jnqnfe for the patch.
Closes : #775989
2016-11-28 21:48:18 +01:00
Raphaël Hertzog
d8ca2041ad
Get rid of useless bootstrap_archive-keys script
...
Closes : #773775
2016-11-28 21:36:57 +01:00
Raphaël Hertzog
63af37b9c5
Copy sub-directories as well as files in grub config directory
...
This is to cover the case of a theme included in that directory.
2016-11-28 21:05:06 +01:00
Raphaël Hertzog
164f23368e
Support “lb config --debootstrap-script <script>”
...
This option lets you use an alternate bootstrap script when running
debootstrap. Thanks to Sjoerd Simons <sjoerd@debian.org> for the initial
patch.
Closes : #790033
2016-11-28 20:58:19 +01:00
Raphaël Hertzog
822459c7b2
Set xorriso's "modification time" to SOURCE_DATE_EPOCH
...
Thanks to Chris Lamb <lamby@debian.org> for the patch.
Closes : #831379
2016-11-28 20:58:19 +01:00
Sjoerd Simons
c12f7d715e
Pass components to debootstrap --second-stage
...
Commit e24e4b in debootstrap fixed setup_available to work in the
--foreign case (iotw at the second stage). Unfortunately this breaks
things if components aren't passed to the second stage _and_ your main
component isn't called main.
To fix this, pass --components to both the first and second stage
debootstrap when needed.
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
2016-11-28 20:58:18 +01:00
Raphaël Hertzog
674794a8f4
Try to reuse /isolinux/splash.png in default grub configuration.
2016-11-28 20:58:18 +01:00
Sophie Brun
e92dbc3696
Handle packages.chroot with an explicitly trusted file:// repository
...
Up to now we created a temporary GPG key that we registered with apt-key
but with the switch to GnuPG 2 by default, this code broke. Now we stop
doing that but we add the “trusted=yes“ attribute in sources.list so
that APT knows that the repository can be trusted even if it's unsigned.
Signed-off-by: Raphaël Hertzog <hertzog@debian.org>
2016-10-28 08:57:37 +02:00
Adrian Gibanel Lopez
7667d5faa7
Readded Installation boot entries to grub configuration files.
2016-08-26 20:23:02 +02:00
Adrian Gibanel Lopez
2d61dcc53c
Force the use of insmod all_video in grub.cfg so that we do not boot in blind mode in UEFI mode.
2016-07-31 15:09:13 +02:00
Adrian Gibanel Lopez
7becd08e4d
Added EFI support by the means of grub-efi
...
This work is based on debian-cd team work and uses,
as much as possible, the same mkisofs options
than the Debian Installation CD disk does.
It assumes that /boot/grub/grub.cfg (and other design items)
is generated by: binary_loopback_cfg .
It relies on efi-image and grub-cpmodules being setup
as build scripts on live-build package.
In the future event of these two files being moved
to a binary package (they are originally from:
src: live-installer) the binary_grub-efi script would have
to be rewritten to take the new paths into account.
2016-07-31 15:09:13 +02:00
Adrian Gibanel Lopez
9cebad25f9
Handle multiple bootloaders properly in binary_iso . Force mkisofs to add an additional eltorito entry if we have more than one bootloader.
2016-07-31 15:09:13 +02:00
Adrian Gibanel Lopez
58a97219c9
Stolen efi-image and grub-cpmodules from src:live-installer
...
These two scripts simplify the creation of efi images based on grub-efi.
I have decided to simply steal them. If I had to include them thanks to a source package that would have mean that an src repo would have to be defined by default.
TODO: Ask in a bug a RFE so that these two scripts are put into a binary that could be consumed by both live-installer and live-build packages.
2016-07-31 15:09:13 +02:00
Adrian Gibanel Lopez
c4327f6138
binary_loopback_cfg now renders grub.cfg by default.
...
The binary parts of grub-pc are left for the original binary_grub-pc.
As a consequence both /boot/grub/grub.cfg and /boot/grub/loopback.cfg files will be present in any Debian Live CD.
This might be useful to be reused from binary_grub-* bootloaders.
2016-07-31 15:09:13 +02:00
Adrian Gibanel Lopez
9d1a983cc8
Added new multi bootloader helper functions
...
* Added: functions/bootloaders.sh . This file adds bootloader functions that are heavily used in efi scenarios where a bootloader can act as a first or an extra bootloader.
Since the introduction of the new switch:
--bootloaders
you can setup it like this:
--bootloaders=syslinux,grub-efi
.
This means that syslinux is the first bootloader and grub-efi is the extra bootloader.
* Added new bootloader functions: Check_Non_First_Bootloader and Check_Non_Extra_Bootloader.
These functions let each one of the bootloaders abort the build because
they cannot perform a role either as a first bootloader or as an extra bootloader.
* Added bootloader functions: Check_First_Bootloader_Role, Check_Extra_Bootloader_Role and Check_Any_Bootloader_Role
These functions let bootloaders to force their default role in a single line.
At the same time many binary bootloaders were rewritten to make use of the new bootloader role functions explained above.
These roles were enforced:
binary_grub-legacy : First bootloader
binary_grub-pc : Either first or extra bootloader
binary_syslinux : Either first or extra bootloader
If a bootloader is tried to be used in a role that it's not meant to be used then the build fails because that might lead to a non-bootable system.
2016-07-31 15:08:11 +02:00
Adrian Gibanel Lopez
0624064d44
Remove repeated LB_PRIMARY_BOOTLOADER definition
2016-07-31 14:59:33 +02:00
Kristian Klausen
489a09ba92
Disable EXT4 64bit features
...
e2fsprogs 1.43 enabled ext4 "64bit" feature as default, which broke ext4
HDD images as EXTLINUX doesn't support it.
2016-06-18 19:36:16 +02:00
Kristian Klausen
5a981664ed
Switch d-i.debian.org URIs from http to https.
...
Closes : #809699
2016-05-26 21:58:03 +02:00
Kristian Klausen
6b0777c53e
Fix typo in binary_syslinux
...
Closes : #818916
2016-05-26 21:57:19 +02:00
Kristian Klausen
a8cc708427
Correct syslinux/extlinux mbr.bin path (second try)
...
dash doesn't support parameter expansion it seems.
So implemented with "tr" as in binary_syslinus.
2016-05-26 21:26:36 +02:00
Kristian Klausen
ddc6659002
Correct syslinux/extlinux mbr.bin path
...
Fix #773833
2016-05-26 17:34:22 +02:00
Kristian Klausen
090c6f3cea
Revert "Correct syslinux mbr.bin path."
...
This reverts commit 5161dcdf3b
.
2016-05-26 17:33:20 +02:00
Raphaël Hertzog
4d67c64ba2
Better handle empty package lists.
...
The fix in a294a46fb9
was not enough.
This should finally resolve the problem when a package list ends
up empty (most notably due to #if evaluating to false).
Sponsored-By: Offensive Security
2016-01-05 18:05:12 +01:00
Ben Armstrong
1f8975cc60
Remove 586 flavour for i386 architecture. ( Closes : #807972 )
2015-12-15 14:01:29 +00:00
Maximilian Mehnert
2c118b384c
scripts/build/binary_hdd: Fix code style
2015-12-15 13:59:49 +00:00
Maximilian Mehnert
46920d22bd
Old BIOS: start partition at specific place
...
Some BIOSes dont't boot from partitions starting at sector 1024.
Some are even more peculiar and only start from sector 63.
This patch adds an option for the binary_hdd target to manually
configure the partition start.
2015-09-23 10:48:46 +02:00
Maximilian Mehnert
8a52e569f5
force link creation when diverting flash-kernel
...
"ln -s /bin/true chroot/usr/sbin/flash-kernel" fails if the target
already exists.
2015-09-23 10:44:11 +02:00
Adrian Gibanel Lopez
b6771e7360
Loopback cfg support.
...
Development details
--------------------
* This patch has been based originally on: binary_grub2 . It has been
improved thanks to some binary_syslinux bits.
* This patch ensures that binary_loopback_cfg needs is run
before binary_syslinux is run.
The reason is that it reuses some code from binary_syslinux to avoid
problems when binary_syslinux renames the kernel filenames.
* This patch already supports CPU detection
* I haven't tested all the possible scenarios for the script (with the
latest version). When amd64 and 486 Gnu/Linux flavours is used and the
bootloader is syslinux it works ok.
* I have not implemented a disable switch for not generating it.
Usually you always want loopback.cfg to be there.
* Compared to binary_grub2 script I have removed the installation
entries because I did not see any of them in binary_syslinux.
How to test
-----------
These are some steps to easily test if Looback cfg support is working ok.
0) We assume you have generated an iso
1) Make sure you have a partition that Grub understands. Plain ext4 or
vfat should do it.
2) Create directory: /boot/boot-isos/
3) Put the iso file into that directory making sure it has an ISO or iso
extension.
4) Setup your computer to boot from cdrom and use: Super Grub2 Disk
2.00s2 (Hybrid version recommended)
5) Choose Boot manually...
6) Choose Bootable ISOs (in /boot- ... )
7) Choose (the detected) GRUB Loopback Config
(hdN,msodsN)/boot/boot-ios/name-of-the.iso
8) You will be presented your loopback.cfg. Choose anyone of the entries
(unless it does not match your cpu architecture of course).
9) You should boot into your Debian Live without problems (thanks to
findiso boot parametre).
If you ever wanted to test from your grub2 installation instead from
Super Grub2 Disk check: http://www.supergrubdisk.org/wiki/Loopback.cfg
for an example.
2015-08-30 00:04:04 +02:00
Adrian Gibanel Lopez
d515ae5684
Multi bootloader support
...
Note: OLDIFS use makes IFS to be reset to "" instead to it being unset.
Either we need to detect if old IFS was unset to unset it
or we need a proper way of setting it as a local variable.
Even more IFS it's not currently used in
Check_package (which it's called from: binary_hdd).
we should have a clean way of resetting/unsetting IFS when calling Check_package.
The other approach it's to explicitly define IFS with its default value in the
places inside live-build code where we implicitly suppose that it's going to have
its default value.
2015-08-29 23:56:41 +02:00
Carlos Zuferri
d43874c405
Adding missing file extension to hdd images.
2015-08-27 10:17:22 +02:00
Maximilian Mehnert
5161dcdf3b
Correct syslinux mbr.bin path.
2015-08-10 21:57:51 +02:00
Daniel Baumann
2dcb4dc06e
Updating stat calls to also give the right result in container setups, thanks to Kristian Klausen <klausenbusk@hotmail.com> ( Closes : #789300 ).
2015-08-10 21:45:00 +02:00
Daniel Baumann
421419c7fc
Getting rid of hard-coded release numbers and using /etc/os-release instead ( Closes : #790860 ).
...
Unfortunately VERSION_ID on testing/unstable is currently not included
in /etc/os-release, see #795124 .
2015-08-10 21:31:21 +02:00
Daniel Reichelt
2a400dc63e
Fix check for presence of chroot hooks
2015-07-26 13:44:16 +02:00
Raphaël Hertzog
2792097208
Drop elilo from list of d-i required packages on i386.
...
It's gone from unstable/testing and has never been really useful
on non-ia64 systems.
2015-07-15 12:05:52 +02:00
Raphaël Hertzog
b2dce51156
Do not pass an empty version in APT::FTPArchive::Release::Version ( Closes : #789800 ).
...
This avoids live-build triggering an apt-ftparchive bug (#693092 ).
2015-06-24 20:13:34 +02:00
Daniel Baumann
f7d2e5a84b
Correcting typos in chroot_hooks.
2015-06-15 07:11:03 +02:00
Daniel Baumann
c8ccfbc1b3
Removing parent-directory too when cleaning up the config tree bind mount in chroot.
2015-06-05 23:15:19 +02:00
Daniel Baumann
64a82a486c
Correcting execution of local source hooks.
2015-06-05 22:29:47 +02:00
Daniel Baumann
3d422634df
Correcting execution of local binary hooks.
2015-06-05 22:28:50 +02:00
Daniel Baumann
2fec43b68a
Correcting symlinking of hooks in lb config.
2015-06-05 21:35:59 +02:00
Daniel Baumann
ca1a31dec6
Installing apt and dpkg updates (if any) first in derivatives mode, then doing dist-upgrade.
2015-05-23 12:42:16 +02:00
Daniel Baumann
50794b1de1
Splitting non-live specific hooks into their own subdirectory within hooks.
2015-05-20 08:19:56 +02:00
Daniel Baumann
1c3891775b
Correcting leftover reference to binary_grub in binary.
2015-05-18 12:38:46 +02:00
Daniel Baumann
095e999d0c
Removing broken samhain handling ( Closes : #785264 ).
2015-05-14 13:15:45 +02:00
Daniel Baumann
9bf7c99eed
Dropping obsolete template checks within grub helpers.
2015-05-04 20:37:00 +02:00
Daniel Baumann
cf68abf417
Renaming grub helper to grub-legacy for consistency.
2015-05-04 20:36:20 +02:00
Daniel Baumann
f93fa286d5
Renaming grub2 helper to grub-pc for later grub-efi addition.
2015-05-04 20:33:00 +02:00
Daniel Baumann
50b0b6f125
Dropping support for upstart.
...
Ubuntu switched to systemd too, no point in keeping
upstart support arround anymore.
2015-05-03 16:12:30 +02:00
Daniel Baumann
279a149d8a
Dropping automagics for ubuntu.
...
Future live-build versions will still allow to use casper,
but its configuration will be done differently by a custom
config tree, rather than embedded and maintenance intensive
code in live-build itself.
2015-05-03 16:03:10 +02:00
Daniel Baumann
f93e83e351
Dropping automagics for casper.
...
Future live-build versions will still allow to use casper,
but its configuration will be done differently by hooks
in the config tree, rather than embedded and maintenance intensive
code in live-build itself.
2015-05-03 15:50:03 +02:00
Daniel Baumann
d18cb12cc1
Moving hooks to hooks/live, both in live-build sources and live-build configs.
...
Really soon live-build will support building non-live images out-of-the-box.
Therefore moving hooks into a live specific subdirectory.
2015-05-02 15:42:00 +02:00
Daniel Baumann
7e633e77f2
Moving grub and grub2 templates into shared bootloader config directory.
2015-04-29 07:52:56 +02:00
Daniel Baumann
ed197cd852
Overwriting reather than appending content of autorun.inf ( Closes : #777359 ).
2015-04-28 07:58:16 +02:00
Daniel Baumann
d0219db4cf
Calling lb config in lb build to support building a all-default-image with a simple lb build ( Closes : #778327 ).
2015-04-28 07:58:16 +02:00
Daniel Baumann
b1a8ae2e7c
Correcting wrong tar command for tarball images, thanks to Yadickson Soto <yadickson@gmail.com> ( Closes : #780627 ).
2015-04-28 07:58:16 +02:00
Daniel Baumann
d32a3ed292
Removing temporary hack to exclude prism2-usb-firmware-installer, the download homepage seems to work again ( Closes : #783433 ).
2015-04-27 07:50:52 +02:00
Daniel Baumann
319866567a
Applying patch from jnqnfe <jnqnfe@gmail.com> to correct grub2 bootloader directory within the binary images ( Closes : #775316 ).
2015-02-07 06:56:34 +01:00
Daniel Baumann
0c94983071
Using same logic to create the source/.disk/archive_trace for binary/.disk/archive_trace too ( Closes : #774200 ).
2015-02-07 06:50:28 +01:00
Daniel Baumann
e51315ae1e
Switching to default to linux-image-586 on i386.
2015-01-26 06:30:49 +01:00
Daniel Baumann
673a8da58b
Using -iso-level 3 option for xorriso to work with image sizes beyond 4 GB ( Closes : #775424 ).
2015-01-25 12:17:50 +01:00
Daniel Baumann
1cb6743d1c
Correcting typo in stagefile check for includes.chroot.
2015-01-25 10:27:26 +01:00
Daniel Baumann
1b4424f72f
Adding check for isolinux build-depends in chroot.
2015-01-07 10:57:00 +01:00
Daniel Baumann
affa96f63e
Removing spurious .grep.swp temporary file in source tree.
2015-01-05 18:36:12 +01:00
Daniel Baumann
242aef5d83
Updating year in copyright notices to 2015.
2015-01-04 20:05:44 +01:00
Daniel Baumann
1354704cad
Dropping manual include of dbus for live-config-systemd, it's a recommends now.
2015-01-04 19:53:11 +01:00
Daniel Baumann
2309994612
Correcting dependency checks in binary_package-lists ( Closes : #774336 ).
2015-01-04 19:50:58 +01:00
Daniel Baumann
90024a0391
Applying slightly modified patch from jnqnfe <jnqnfe@gmail.com> to show correct win32-loader ico file on windows ( Closes : #772781 ).
2015-01-04 19:37:21 +01:00
Daniel Baumann
93592a81b6
Dropping some sparc leftovers ( Closes : #774196 ).
2015-01-04 18:58:35 +01:00
Daniel Baumann
30122125be
Adding wget dependency in chroot_firmware.
2015-01-04 18:22:53 +01:00
Daniel Baumann
501a2817a5
Updating wget dependency in installer_debian-installer to look for wget on the host system rather than the chroot.
2015-01-04 18:22:03 +01:00
Daniel Baumann
fdc9250bca
Changing package dependency checks within chroot to work outside as well.
2015-01-04 18:19:47 +01:00
Daniel Baumann
b814f4e07e
Dropping cdebootstrap support ( Closes : #773657 ).
...
debootstrap is the official tool to bootstrap debian,
cdebootstrap has had the one or other bug making it
broken for times during the release cycles.
The extra effort of supporting both debootstrap
and cdebootstrap is hardly worth it since the bootstrap
stage is cached anyway.
2014-12-23 22:54:41 +01:00
Daniel Baumann
cb7e5f256c
Cleaning up from python removal (LIVE_IMAGE_PARENT_ARCHIVE_AREAS).
2014-12-10 09:19:07 +01:00
Daniel Baumann
07253b661c
Updating misc settings for progress-linux.
2014-12-10 09:01:06 +01:00
jnqnfe
31dbf95d86
Address "should check that we're building on debian through e.g. a 'derivative-is-based-on' variable or somesuch" fixme.
2014-12-10 08:44:05 +01:00
Jan Blunck
9d5639e9a0
Bind local repository into chroot directory.
...
If a local repository path is given as a mirror URL lets bind it into the
chroot. The local repository will be unmounted while processing "remove" or
latest by the exit function.
2014-12-10 08:43:02 +01:00
Daniel Baumann
b5e99b5b14
Dropping support for wheezy.
2014-12-10 08:38:42 +01:00
Daniel Baumann
8233dd2c4f
Ugly hack to force dbus inclusion when using live-config-systemd ( Closes : #769635 ).
2014-12-10 08:23:26 +01:00
Daniel Baumann
048c0827ae
Somewhat fixing sysvinit and casper legacy support, slightly improved patch from Rui Miguel P. Bernardo <rui.bernardo.pt@gmail.com> ( Closes : #772522 , #772651 ).
...
This however will still not work properly building upstart based
images but they have been broken/unsupported anyway since a long
time.
2014-12-10 08:19:48 +01:00
jnqnfe
0e9d949c3d
Fix typo in variable name (LH_LINUX_FLAVOURS instead of LB_LINUX_FLAVOURS) in installer_debian-installer script, affecting the armel architecture ( Closes : #770796 ).
2014-12-10 07:58:02 +01:00
Daniel Baumann
57dd8c6376
Correcting typo in apt.conf.d directory name, thanks to jnqnfe <jnqnfe@gmail.com> ( Closes : #771392 ).
2014-12-10 07:56:10 +01:00
Daniel Baumann
703b6d1f1f
Correcting stage name check in chroot_includes, thanks to jnqnfe <jnqnfe@gmail.com> ( Closes : #771377 ).
2014-12-10 07:54:30 +01:00
jnqnfe
ef9b1e8487
Fix missing grub2 option in bootloader selection ( Closes : #772671 ).
2014-12-10 07:51:50 +01:00
jnqnfe
6577c386ae
Fix chroot_package-lists script saving to wrong cache ( Closes : #771002 ).
2014-12-10 07:50:00 +01:00
Daniel Baumann
0290727086
Avoid failing to autocreate live.list.chroot in lb config when using --clean, thanks to jnqnfe <jnqnfe@gmail.com> ( Closes : #770637 ).
2014-12-10 07:45:14 +01:00
Daniel Baumann
2eecd1b814
Cleaning up from python removal (LIVE_IMAGE_ARCHIVE_AREAS).
2014-12-10 07:41:29 +01:00
Daniel Baumann
1f7f6dd88a
Cleaning up from python removal (LIVE_IMAGE_ARCHITECTURE).
2014-12-10 07:39:58 +01:00
Raphaël Hertzog
7b6dfd9d16
binary_syslinux: correct the path used to check if the bootloader is available.
...
The {iso,pxe,ext,sys}linux packages use /usr/lib/{ISO,PXE,EXT,SYS}LINUX/
directories and not /share/{ISO,PXE,EXT,SYS}LINUX/.
2014-12-10 06:26:55 +01:00
Raphaël Hertzog
a294a46fb9
Properly support empty package lists.
...
The user might not have created any package list or it might have
created a packages list that end up being empty due to various #if tests.
We should not fail in those cases.
2014-12-10 06:24:02 +01:00
Daniel Baumann
e9c1580178
Dropping prism2-usb-firmware-installer which fetches firmware from (at least) temporarily broken website.
2014-11-28 10:38:48 +01:00
Daniel Baumann
61a166adea
Applying patch from Gabriele Gristina <gabriele.gristina@gmail.com> to fix automated checks for using aptitude.
2014-11-10 19:48:53 +01:00
Daniel Baumann
7c00b1b4ac
Removing source_includes from toplevel source script, it was a python stub and will come back at a later point.
2014-09-11 06:40:15 +02:00
Daniel Baumann
8eaba8ea5c
Making populating of live.chroot.list distribution specific.
2014-09-09 21:00:56 +02:00
Daniel Baumann
d1eae01577
Creating live.list.chroot with live packages in config.
2014-09-04 04:49:05 +02:00
Daniel Baumann
50f2ef8712
Dropping leftover testroot call in bootstrap_cdebootstrap and bootstrap_debootstrap.
2014-08-28 23:07:31 +02:00
Daniel Baumann
bc50443cf0
Moving partial python rewrite to separate branch, let's do it in the jessie+1 cycle rather than go with the current mixed code.
2014-08-28 00:59:28 +02:00
Daniel Baumann
2a829562c9
Adding second set of bootloader templates for wheezy.
2014-07-24 05:02:11 +02:00
Daniel Baumann
dd47358700
Unconditionally replacing bootloader symlinks with syslinux 6 from jessie, this will break building wheezy images (so we have to come up with something better than that prior upload).
2014-07-22 20:26:06 +02:00
Daniel Baumann
1606ed3c5a
Enabling syslinux 6 support for jessie as well.
2014-07-22 20:11:56 +02:00
Daniel Baumann
6cfcbbb576
Updating isohdpfx handling for syslinux 6.
2014-06-30 21:05:57 +02:00
Daniel Baumann
e8cbbb09d3
Enabling syslinux 6 support for sid.
2014-06-13 08:39:22 +02:00
Daniel Baumann
4b815ee833
Also creating source stagefile in source_debian.
2014-05-07 07:59:44 +02:00
Daniel Baumann
6bfcd3689a
Adding wheezy legacy handling for syslinux.
2014-05-07 05:27:23 +02:00
Daniel Baumann
604d5f1416
Only removing stage files in lb clean --stage and keep .build around in order for init to detect initialized config directories properly.
2014-05-07 05:22:30 +02:00
Simon McVittie
5d6574552f
Add support for making ext[234] or btrfs hdd images bootable with extlinux ( Closes : #745816 )
...
extlinux configuration for the bootable image is installed to
/boot/extlinux, matching the extlinux-install script in Debian.
From the configuration point of view it's still called "syslinux",
the same as the rest of the syslinux family (pxelinux, isolinux etc.)
2014-04-27 12:37:37 +02:00
Daniel Baumann
10a6e8e579
Cleaning /etc/hosts as in previous live-build versions ( Closes : #744939 ).
2014-04-27 12:30:02 +02:00
Daniel Baumann
d3a0022d00
Calling init in build as well when automatically populating a new config tree.
2014-04-27 07:18:06 +02:00
Daniel Baumann
b30ee01e8a
Abort early in installer_preseed if d-i is not included on the image ( Closes : #745855 ).
2014-04-26 08:05:32 +02:00
Daniel Baumann
057a9097e5
Updating sha1sum for recompressed initrd images ( Closes : #745205 ).
2014-04-26 08:05:32 +02:00
Daniel Baumann
9db58d9489
Dropping superfluous comment about recompression initrd images in chroot_hacks.
2014-04-26 08:05:32 +02:00
Daniel Baumann
1867dc1e52
Using cp -a on all non-fat filesystems to copy content into the binary image ( Closes : #745824 ).
2014-04-26 08:05:29 +02:00
Daniel Baumann
d86fb1aeb4
Failing in lb config when config wasn't initialized first with lb init ( Closes : #744365 ).
2014-04-25 21:05:37 +02:00
Daniel Baumann
cce1e47ce8
Correcting required installer package determination to avoid extra packages, thanks to Benjamin Moody <benjamin.moody@gmail.com> ( Closes : #739729 ).
2014-04-25 21:00:56 +02:00
Daniel Baumann
7a52186c1b
Only automatically do replacements within syslinux configs when they are not directories (as they can be in the pxelinux.cfg case), thanks to Antony Messerli <amesserl@rackspace.com> ( Closes : #745760 ).
2014-04-25 20:51:14 +02:00
Kiel Christofferson
c9a09a282c
Only call shift if args are not empty.
...
Some shells (like dash) will exit fatally when the shift builtin is called
beyond the last option.
2014-03-02 06:22:19 +01:00
Kiel Christofferson
3c69e6b56c
Auto-detect foreign architectures in packagelist.
...
* Add function to output unique list of foreign architectures from an
expanded package list.
* If foreign architectures are detected, add unique architectures
to dpkg and update apt.
* This requires users to explicitly list at least _one_ package of a
foreign architecture in their package list (e.g. foo:arch) for any other
foreign arch dependencies to be handled appropriately.
2014-03-02 06:22:13 +01:00
Kiel Christofferson
9240aa3d3e
Only grab the latest version of kernel+initrd pair.
2014-02-21 12:56:43 -05:00
Kiel Christofferson
a934c03e06
Use LB_INITRAMFS case instead of assuming "live".
2014-02-21 12:56:43 -05:00
Daniel Baumann
eb336bb782
Updating copyright notices for 2014.
2014-02-08 17:47:24 +01:00
Daniel Baumann
5733ae0fe1
Explicitly building iso images with rock ridge extension.
2013-12-29 12:03:39 +01:00
Daniel Baumann
6ceaaa1e93
Silencing copying of syslinux themes since users get always distracted about syslinux 6 files not being dereferenced (which can be totally ignored if you're using syslinux 4).
2013-11-26 08:03:57 +01:00
Daniel Baumann
aeaaf8709e
Moving live-build development disclaimer message from lb-config to lb-init.
2013-11-06 09:48:30 +01:00
Daniel Baumann
038b1fa8f6
Moving bootstrapping of derivative archive-keys from config to init.
2013-11-06 08:16:31 +01:00
Daniel Baumann
960de852b7
Adding initial stub for lb init.
...
In the past, we had lb config for both creating a configuration directory
and updating settings in there. With the rewrite in Python, we're now
changing this finally to the more sane 'init' (create initial 'sample'
configuration directory tree, taking most arguments that lb config did)
and 'config' which will only be a get/set program to work on top of
an already initialized configuration tree.
2013-11-05 12:20:11 +01:00
Daniel Baumann
42fb1e1976
Dropping chroot_live-packages by moving logic outside of live-build into the config directory.
2013-11-05 11:16:39 +01:00
Daniel Baumann
3e0c126e2a
Creating all includes directories in config.
2013-11-04 19:48:25 +01:00
Daniel Baumann
4fa62f53fa
Adding bootstrap-includes.
2013-11-04 18:59:23 +01:00
Daniel Baumann
8e0188c72c
Adding sources-includes.
2013-11-04 18:46:56 +01:00
Daniel Baumann
1e04939721
Rewriting binary_includes in python.
2013-11-04 18:33:48 +01:00
Daniel Baumann
fee4e8b349
Rewriting chroot_includes in python.
2013-11-04 17:51:36 +01:00
Daniel Baumann
9e3863aa8f
Switching to later submodule naming scheme for python stubs.
2013-11-04 17:10:22 +01:00
Daniel Baumann
5603355e1d
Handling bootstrap cache inside the bootstrap stubs itself.
2013-11-04 14:02:40 +01:00
Daniel Baumann
83dacd9b39
Stuffing bootstrapping of archive-keys for derivatives into lb_config, it's not a runtime thing and its logic should not be embedded in live-build but the config directory.
2013-11-04 13:34:43 +01:00
Daniel Baumann
35919637af
Moving testroot into lb wrapper itself.
2013-11-04 13:00:12 +01:00
Daniel Baumann
52122b2845
Moving python stubs to their own subdirectory within the source tree.
2013-11-04 07:06:08 +01:00
Daniel Baumann
db331a3c5a
Rewriting source_hooks in python.
2013-11-04 06:43:40 +01:00
Daniel Baumann
90fd3636a4
Rewriting binary_hooks in python.
2013-11-04 06:37:31 +01:00
Daniel Baumann
1bcc449483
Automatically symlink hooks upon creation of the configuration tree.
2013-11-03 21:18:10 +01:00
Daniel Baumann
cec85c5598
Rewriting chroot_hooks in python.
2013-11-03 20:51:15 +01:00
Daniel Baumann
f03f05097e
Also processing config/hooks/*.hook in bootstrap_hooks, if any.
2013-11-03 20:51:12 +01:00
Daniel Baumann
258f506b96
Rewriting bootstrap_hooks in python.
2013-11-03 19:24:04 +01:00
Daniel Baumann
d83a3d3c30
Updating rsvg calls in binary_syslinux for newer versions of librsvg2-bin, thanks to Roberto Carlos Morano <rcmorano@emergya.com> ( Closes : #728030 ).
2013-10-28 08:31:02 +01:00
Daniel Baumann
006e38d955
Weakening mode on pts for compliance with eglibc 2.18 within containers during build.
2013-10-23 21:01:22 +02:00
Daniel Baumann
955175ac4b
Dropping incomplete and not really supported exposed root mode.
...
This might come back in future if there's demand for it
and the base is sufficiently cleaned up first.
2013-10-23 10:47:48 +02:00
Daniel Baumann
c7462c4043
Depending on python3, thanks to Richard Nelson <unixabg@gmail.com> ( Closes : #726806 )
2013-10-21 19:05:29 +02:00
Daniel Baumann
3afd2fb9cb
Adding note about outdated/unsupported versions in general develop-ment-version warning message.
2013-10-17 16:58:20 +02:00
Daniel Baumann
49b6f1efb2
Updating descriptions in python stubs.
2013-10-17 14:59:08 +02:00
Daniel Baumann
75df65480f
Sorting todo items in python stubs.
2013-10-17 14:55:11 +02:00
Daniel Baumann
4afbc74f34
Calling parted with optimal aligning.
2013-10-17 12:27:42 +02:00
Daniel Baumann
28dba93085
Harmonize comments in python stubs.
2013-10-17 11:24:27 +02:00
Daniel Baumann
d18a85705a
Using 4 instead of 4.0 for unreleased 4.x versions as version number in python stubs.
2013-10-17 11:10:32 +02:00
Daniel Baumann
ac880ca145
Making warning about alpha version of live-build in lb_config conditional on the internal version.
2013-10-17 09:38:54 +02:00
Daniel Baumann
cfdd08c6e1
Moving /selinux to /sys/fs/selinux to accomodate newer selinux in debian.
2013-10-16 20:40:27 +02:00
Daniel Baumann
93c041ec4a
Depending on python only for the time being, rather than python3.3.
2013-10-15 12:29:07 +02:00
Daniel Baumann
b32d972a42
Adding bootstrap hooks.
2013-10-15 12:24:48 +02:00
Daniel Baumann
4c2f7491dc
Updating to python 3.3 ( Closes : #723702 ).
2013-09-19 09:09:16 +02:00
Daniel Baumann
aa7939e085
Removing unused description variable in syslinux configs.
2013-09-18 11:43:49 +02:00
Jan Blunck
ddb8ad5dae
Selectively remove chroot-only APT configuration and preferences instead of wiping everything.
2013-09-18 10:48:21 +02:00
Jan Blunck
4d9c77d20e
Remove chroot-only configured apt sources in chroot_archives remove.
...
If an archive is configured with *.chroot extension remove it when
deconfiguring chroot/etc/apt/sources.list.d directory.
2013-09-18 10:36:31 +02:00
Daniel Baumann
1cdc2fc5b4
Making workaround for apt-get source actually working in backports-included-but-not-enabled scenarios.
2013-09-18 09:49:03 +02:00
Daniel Baumann
5ecae6eb90
Updating hardcoded defaults for syslinux splash descriptions for progress-linux.
2013-09-06 17:18:48 +02:00
Raphaël Hertzog
2d12d83527
Ensure xfsprogs and jfsutils are available in the ISO when d-i is used.
...
Otherwise users opting for XFS and JFS filesystems and installing without
network won't have them and the (first) boot can be interrupted due to
this.
Sponsored-by: Offensive Security
2013-08-26 19:02:20 +02:00
Daniel Baumann
1577d46064
Updating syslinux flavour detection for progress-linux.
2013-08-19 17:52:05 +02:00
Daniel Baumann
0dc87d1170
Updating binary repository prefix for progress-linux.
2013-08-19 08:57:25 +02:00
Daniel Baumann
a12212ee53
Correcting wrong installer directory moving check in progress-linux mode.
2013-08-07 20:06:47 +02:00
Daniel Baumann
d75e7b75c0
Renaming some leftover pieces from binary_debian-installer to installer_debian-installer.
2013-08-07 18:14:23 +02:00
Daniel Baumann
d758af1392
Removing obsolete starting of binary_debian-installer in binary.
2013-08-07 18:14:23 +02:00
Daniel Baumann
afd1060395
Correcting wrong defaults setting for parent distribution in config/build.
2013-08-07 17:50:20 +02:00
Daniel Baumann
0c10bd5318
Calling bootstrap_archives with correct pass argument.
2013-08-07 16:50:47 +02:00
Daniel Baumann
e94e9699b6
Stripping backports from sources.list temporarily when obtaining sources to workaround apts disregard of pinning for the cases where backports are included but not enabled.
2013-08-07 12:25:43 +02:00
Daniel Baumann
af16834f28
Updating linux-image package names for 3.0 in installer_debian-installer.
2013-07-30 18:13:57 +02:00
Daniel Baumann
383d4d26b7
Expanding all variables in all syslinux configuration files, rathern than on some selected ones only.
2013-07-12 16:34:46 +02:00
Daniel Baumann
18e0a2f325
Debranding live sources.
2013-07-01 16:50:08 +02:00
Daniel Baumann
b77349b8ce
Moving caching out of bootstrap_{c,}debootstrap to own helper for future unification with chroot caches helper.
2013-07-01 16:27:12 +02:00
Daniel Baumann
eab1da72ed
Handling dist-upgrade right after bootstrap with copy of chroot_archives as bootstrap_archives in preparation for a future multi-archive bootstrap.
...
It is important for derivatives that the bootstrap cache is setup completely,
it is re-used in several places and thus cannot consist of the parent
distribution only.
Until there's a supportable way to bootstrap from multiple archives at the same time
(and multistrap doesn't work for that as discussed in the past), we're going to run
a lot of duplicated code here to massage the apt sources for the time being.
2013-07-01 16:24:32 +02:00
Daniel Baumann
4e9c7ee662
Removing some leftovers in chroot_archives from --archives removal.
2013-07-01 16:08:33 +02:00
Daniel Baumann
613f8cfd6d
Dropping global archive definitions shipped in /usr/share/live/build/archives (same as with packagelists, hidden archive 'magic' is gone now in favour of explicit config tree configuration).
2013-06-25 09:12:03 +02:00
Daniel Baumann
57d26a0758
Using includes.installer instead of includes.debian-installer.
2013-06-24 14:27:48 +02:00
Daniel Baumann
ec01ef8e68
Adding note about live-build version in build to get the lb version into build logs.
2013-06-24 14:02:30 +02:00
Daniel Baumann
966afa2d64
Splitting out preseed handling from main installer script.
2013-06-20 11:24:12 +02:00
Daniel Baumann
001612cdc7
Breaking out installer integration into an own stage.
2013-06-20 10:57:56 +02:00
Daniel Baumann
79af3c1580
Extending wget calls with options variable in bootstrap_archive-keys too ( Closes : #712710 ).
2013-06-19 08:01:03 +02:00
Daniel Baumann
bc35323876
Updating versioning scheme references to match new scheme since wheezy.
2013-05-31 13:53:30 +02:00
Daniel Baumann
d26dea3710
Sorting imports in python stubs.
2013-05-15 22:49:13 +02:00
Daniel Baumann
d61c044ec0
Moving creation of chroot.files manifest in lb chroot after pseudo-filesystems have been unmounted to avoid loops, thanks to Michal Suchanek <hramrach@gmail.com>.
2013-05-15 14:56:17 +02:00
Daniel Baumann
2bad1bd9c8
Sorting kernel versions in reverse order (newest first) in syslinux configurations in consistency with normal bootloader behaviours.
2013-05-13 12:57:35 +02:00
Daniel Baumann
ee674162da
Adding ls -lR files as .files output.
2013-05-06 14:50:08 +02:00
chals
36a44c849a
Changing how syslinux files are copied to make netboot images work properly.
2013-05-06 14:50:08 +02:00
Daniel Baumann
9a15cd0114
Skipping loadlin inclusion on netboot images.
2013-05-06 14:50:08 +02:00
Daniel Baumann
4155fd9641
Updating todo in python stubs.
2013-05-06 14:50:08 +02:00
Daniel Baumann
02ebd3f0c2
Updating derivatives archive-key signature validiation to look by default at both debian and debian-maintainers keyrings.
2013-05-06 14:50:08 +02:00
Daniel Baumann
39ef5a723c
Writing errors to stderr in Python stubs.
2013-05-06 14:50:08 +02:00
Daniel Baumann
73c892d114
Switching argument and configuration handling order in Python stubs.
2013-05-06 14:50:08 +02:00
Daniel Baumann
8f293ccd9c
Dropping now unused intermediate config/image.
2013-05-06 14:50:07 +02:00
Daniel Baumann
06dac65ee3
Removing bootstrap_cache, not needed anymore.
2013-05-06 14:50:07 +02:00