Git log: commit 113d159b0b807c10829a1dd6a4472fef7f009eec
Author: Steev Klimaszewski <steev@kali.org>
Date: Wed Jan 20 10:28:33 2021 -0600
Add arm64 udeb include files
Signed-off-by: Steev Klimaszewski <steev@kali.org>
commit d145b0c9ec36d1a912b252cff7efa4a299b30da5
Author: Roland Clobus <rclobus@rclobus.nl>
Date: Sun Jan 17 14:06:11 2021 +0000
Bugfix: do not create /dev/lock and /dev/lock-frontend
commit fdcdab72dce551d0f281dd295e4d3f7f6a1a57b3
Author: Marcel Partap <mpartap@gmx.net>
Date: Sat Jan 16 17:14:17 2021 +0100
binary_rootfs stage: slightly lower mksquashfs nice levels (19 -> 17)
.. so its priority is low, but above BOINC grid computing (19).
commit 02520659500ce7df57fa388ebdac282a98dbbc8e
Author: Marcel Partap <mpartap@gmx.net>
Date: Sat Jan 16 17:09:52 2021 +0100
binary_rootfs stage: disable mksquashfs progress bar only in quiet mode
commit 63c1a5997de819dc89c38834535ab9f7c0a70c73
Author: Marcel Partap <mpartap@gmx.net>
Date: Thu Jan 14 12:29:51 2021 +0100
binary_rootfs stage: give custom MKSQUASHFS_OPTIONS precedence
courtesy of
sed -i -r '/MKSQUASHFS_OPTIONS/ s/"(\$\{.*\}) ([^"]+)"/"\2 \1"/' scripts/build/binary_rootfs
commit 91e1e65c873291d11495730d8ce6df5940706c2b
Author: Roland Clobus <rclobus@rclobus.nl>
Date: Sat Jan 2 17:41:50 2021 +0100
Apply SOURCE_DATE_EPOCH to newly generated files and create a log
commit 5636820be5ee2d247cba30876fc67ae27f295ed8
Author: Roland Clobus <rclobus@rclobus.nl>
Date: Thu Oct 8 22:17:42 2020 +0200
Set timestamp in embedded files of the installer
commit 15fab34ea2e154cee5e6d53da7f5c80b300ca77f
Author: Roland Clobus <rclobus@rclobus.nl>
Date: Sat Jan 2 17:40:55 2021 +0100
Set timestamp embedded in EFI files
commit 2b0559fd110fa5a1a3e997b064d15f8e67d8fe60
Author: Roland Clobus <rclobus@rclobus.nl>
Date: Sun Oct 4 13:55:12 2020 +0200
Use SOURCE_DATE_EPOCH for the partition-id of /boot/grub/efi.img
commit 760684b1e2586a72230e0426489dffd24138c3fd
Author: Roland Clobus <rclobus@rclobus.nl>
Date: Sun Oct 4 13:51:14 2020 +0200
Use SOURCE_DATE_EPOCH for the partition-id of /efi.img
commit 9712c46cff4c9fcd998cd5e0ab36f3eaea63cd87
Author: Roland Clobus <rclobus@rclobus.nl>
Date: Sun Oct 4 13:48:03 2020 +0200
Use SOURCE_DATE_EPOCH for 'now' in .disk/info
commit 0202f17cadeb2b369de58748cf52a5063eaafe9c
Author: Roland Clobus <rclobus@rclobus.nl>
Date: Sun Oct 4 13:52:07 2020 +0200
Use SOURCE_DATE_EPOCH for 'now' in the boot splash image
commit 9d2405166970c02b978cef817dd15c9cec9ed615
Author: Roland Clobus <rclobus@rclobus.nl>
Date: Sun Oct 4 13:49:06 2020 +0200
SOURCE_DATE_EPOCH is always set
commit 95cd662f4e91438cc179a282c31a8b71ceb49715
Author: Roland Clobus <rclobus@rclobus.nl>
Date: Wed Sep 2 12:11:27 2020 +0200
Ensure that SOURCE_DATE_EPOCH is always set in all sub scripts.
When SOURCE_DATE_EPOCH was already set before 'lb config', also enable
UTC timestamps.
commit 4d7c8c35e3df4a1d8b3000a18acf8019fcee266e
Author: Jan Kot <janymalino@gmail.com>
Date: Thu Jan 14 01:44:30 2021 +0100
exit.sh: fix selinux mountpoint
commit 96fe9e7ca979c768986948d8314479140e7fa63b
Author: Jan Kot <janymalino@gmail.com>
Date: Wed Jan 13 13:18:40 2021 +0100
packages.sh: check for /etc/debian_version existance rather than dpkg-query aviability
commit 954d9c7c312317e46d5a7adc1d8e9fa5180a9426
Author: Jan Kot <janymalino@gmail.com>
Date: Tue Jan 12 23:02:03 2021 +0100
bootstrap_debootstrap: change debootstrap path to /usr/sbin/debootstrap
As we're checking if debootstrap is present on the host machine, we should look for it in /usr/sbin and not ./bin
commit 576b4a70ae296681563a986db25f2e60ca2cbcb3
Author: Roland Clobus <rclobus@rclobus.nl>
Date: Wed Jan 13 11:41:21 2021 +0100
Add new manpage to the list of translatable files
commit 7ff772f2984187cca6227b8fca2e4f13891fb22e
Author: Raphaël Hertzog <raphael@offensive-security.com>
Date: Tue Jan 12 15:15:38 2021 +0100
Update changelog
commit e050d4c99444932ba005e2612a588a9bf404800f
Author: Raphaël Hertzog <raphael@offensive-security.com>
Date: Tue Jan 12 14:53:48 2021 +0100
Update renamed lintian tag names in lintian overrides.
Changes-By: lintian-brush
Fixes: lintian: renamed-tag
See-also: https://lintian.debian.org/tags/renamed-tag.html
commit f13273368a16df271e4317d413d9da564f541dea
Author: Raphaël Hertzog <raphael@offensive-security.com>
Date: Tue Jan 12 14:48:27 2021 +0100
Don't fail if one of the package lists expands to an empty list
When a package lists contains only packages protected by a test
that doesn't match for the current run, then Expand_package_list
outputs nothing and the following "grep -v" fails because it
has not filtered anything. Avoid this by protecting the "grep -v"
call with "|| true".
commit 831da55c0114c4dbb4f81b33c0b03addeacece4b
Author: Roland Clobus <rclobus@rclobus.nl>
Date: Mon Jan 11 14:34:11 2021 +0100
Preserve timestamps
commit f943fa9209acfe2fac7b8b6b23ed1baf304f27e4
Author: Unit 193 <unit193@unit193.net>
Date: Fri Jan 8 04:32:01 2021 -0500
Add 'unstable' as a valid distribution and link to sid.
commit b8279ed4a1580ca96a0184d84f8f64a362630710
Author: Ryan Finnie <ryan@finnie.org>
Date: Fri Jan 1 22:54:47 2021 -0800
Bugfix: Fix grub.cfg pc/ENABLE_MEMTEST check
Grub [ uses "-a", not "&&".
commit 037e93fe37f8b5d974e3e6219fa6ee94ad5cf504
Author: Roland Clobus <rclobus@rclobus.nl>
Date: Fri Jan 1 16:51:02 2021 +0000
Preserve timestamps
commit 3f7dd00fcb83177e679e9f1449200dee11dc1531
Author: Roland Clobus <rclobus@rclobus.nl>
Date: Sun Dec 13 18:33:54 2020 +0100
Delay resolving the timestamp for the ISO volume to the moment the ISO-image is created
commit fac389a51bbca45b2c240a483cc55a2d2a9e8200
Author: Roland Clobus <rclobus@rclobus.nl>
Date: Sun Dec 13 19:23:20 2020 +0100
A second invocation of 'lb config' will result in an identical settings file
commit edb12253eb785f0bccd0f7c19d23d7f9483273e1
Author: Roland Clobus <rclobus@rclobus.nl>
Date: Sun Dec 13 11:11:55 2020 +0100
Bugfix: use minutes instead of month in the time of the modification date field
commit 4eae44d13da639fcb9a23bf660c2a58e6a3466a4
Author: Roland Clobus <rclobus@rclobus.nl>
Date: Mon Dec 7 08:36:42 2020 +0100
Bugfix: use minutes instead of month in the time of the modification date field
commit e772dfd6d2849892ec03f611f621336676cf8b2b
Author: Matthijs Kooijman <matthijs@stdin.nl>
Date: Tue Nov 24 12:16:16 2020 +0100
binary_iso: Execute mkdir binary/.disk before writing to it
Before commit 9f3e5fe8d (Fix the way the .disk/mkisofs file is created)
all these commands (`mkdir`, write to `binary/.disk/mkisofs` and
`xorriso`) were in the same `binary.sh` script. Since that commit, the
write was extracted, to prevent issues with quoting, but the related
mkdir was left in `binary.sh`. This means that the write is now executed
first, and the `mkdir` only afterwards, making the `mkdir` quite pointless.
In practice, this did not break becaue binary_disk also does the same
`mkdir` and runs before `binary_iso`, but if one runs commands manually
and skips `binary_iso`, then this does break.
Even though this is not really a supported usecase, just move the mkdir
outside of `binary.sh`, so it runs *before* the write again as intended.
commit c4b239caf51b39ff21b69de1a81f79732594a2a3
Author: Roland Clobus <rclobus@rclobus.nl>
Date: Wed Nov 11 11:21:34 2020 +0100
Bugfix: Live installer can run without LB_CACHE_PACKAGES
commit 6e4e10f0712a211d947185d9847c3f211210be25
Author: Roland Clobus <rclobus@rclobus.nl>
Date: Thu Oct 8 19:55:57 2020 +0200
Bugfix: LB_DERIVATIVE was used the wrong way around
commit 7360d50fa6b7ef4809d28cf873ab7d29dc2a6f97
Author: Thore Sommer <debian@thson.de>
Date: Tue Oct 27 15:07:11 2020 +0000
Added the option to include files before and after package installation
Moved includes.chroot to includes.chroot_after_packages and added
includes.chroot_before_packages. includes.chroot does still work as before.
We also now use rsync for copying files if it is installed.
This improves runtime and space consumption for large includes.
Gbp-Dch: Short
Closes: #927128
commit 7b19209aaeb14719d8029fa321aa39aef08b6e94
Author: Thore Sommer <debian@thson.de>
Date: Mon Oct 12 18:26:16 2020 +0000
Option for using systemd-nspawn instead of chroot for hooks.
Installation of flatpaks doesn't work with normal chroots.
This patch enables support for using systemd-nspawn in hooks.
Gbp-Dch: Short
Closes: #965953
commit 59380dddf0e0468b51f3587fcbafe8cdb72bd0c7
Author: Luca Boccassi <luca.boccassi@microsoft.com>
Date: Mon Oct 12 14:49:28 2020 +0100
Autopkgtest: disable updates/security repositories, not available for Bullseye
commit 9a26533a06a8892b4014d86fe0c9d9e3b08ae1e5
Author: Thore Sommer <debian@thson.de>
Date: Wed Oct 7 23:25:22 2020 +0200
Add option to change compression algorithm and level for squashfs.
commit ce39f3e507a8d03b1c986c400d797f13f82ae9d5
Author: Marcel Partap <mpartap@gmx.net>
Date: Mon Jun 22 17:24:31 2020 +0200
For 32bit UEFI secure boot, the package name is grub-efi-ia32-signed
avoids spitting out warning
> [2020-06-07 22:30:32] lb binary_grub-efi
> P: Begin preparing Grub based EFI support...
> Reading package lists...
> Building dependency tree...
> Reading state information...
> Package grub-efi-amd64-signed is not available, but is referred to by another package.
> This may mean that the package is missing, has been obsoleted, or
> is only available from another source
>
> E: Package 'grub-efi-amd64-signed' has no installation candidate
> W: UEFI Secure Boot disabled due to missing signed Grub/Shim.
commit 169645b478343b5c588ba18014433e4420e12205
Author: Ryan Finnie <ryan@finnie.org>
Date: Sat Jul 25 22:35:28 2020 -0700
grub-efi: Show fwsetup, do not show incompatible memtest even if enabled
commit 9536a37af08fa37c1db3cc1aa5149603215f7621
Author: Roland Clobus <rclobus@rclobus.nl>
Date: Sat Sep 19 18:43:00 2020 +0200
The sed -e ‘d’ commands with ‘#’ will not work, a slash is needed, fix for 7ffd2288d944840937f556bd56703ba381f4edcc (2015-01-15) and 578dbee516a370935e1b2e49205c524370e1f8d0 (2015-01-29)
commit f323c93b736c6007975eb116a45b86df5509e7d5
Author: Raphaël Hertzog <raphael@offensive-security.com>
Date: Fri Sep 25 12:04:05 2020 +0200
Update renamed lintian tag names in lintian overrides.
Changes-By: lintian-brush
Fixes: lintian: renamed-tag
See-also: https://lintian.debian.org/tags/renamed-tag.html
commit 4977733e981b5343be5e90c31f252c1960e6568f
Author: Raphaël Hertzog <raphael@offensive-security.com>
Date: Fri Sep 25 11:49:13 2020 +0200
Document our autopkgtest tests as needing internet access
commit c3968cf1c66a76872c528bf00e8a8556d06592c7
Author: Raphaël Hertzog <raphael@offensive-security.com>
Date: Fri Sep 25 11:47:38 2020 +0200
Use truncate --no-create --size=0 to truncate files
This avoids the permission error due to /proc/sys/fs/protected_regular = 2
setting which is now enabled by default in bullseye.
commit d2bc6e278d5065cabf4b6ec42e6e23797d57cc04
Author: Raphaël Hertzog <raphael@offensive-security.com>
Date: Fri Sep 25 11:40:06 2020 +0200
Another try to fix the CI
commit 9ebddbe9f7aebe061987389746dc9874445d3cb9
Author: Raphaël Hertzog <raphael@offensive-security.com>
Date: Fri Sep 25 11:32:34 2020 +0200
Use bullseye as default release in preparation of the next stable release
commit e1c3990648bdeb0cbe7853a4b4a298aba5ff0c9f
Author: Raphaël Hertzog <raphael@offensive-security.com>
Date: Fri Sep 25 11:28:39 2020 +0200
Try to fix CI to cope with latest salsa-ci changes
commit b14a9e5c79bbba9299bc7316c439e113f835a414
Author: Raphaël Hertzog <raphael@offensive-security.com>
Date: Fri Sep 25 11:08:40 2020 +0200
Tell APT to retry downloads a few times before giving up
We want to be resilient to small network hiccups and when you download
a large number of packages, the probability of a network hiccup are
increasing... as are the chances of hitting one of the apt bugs
(cf "Undetermined error"...).
commit 990dcf2eed4e5b3a9d6b4e9edefb255de095e922
Author: Victor Gavro <vgavro@gmail.com>
Date: Tue May 19 02:14:20 2020 +0300
chroot_apt: fixed adding Pin-Priority (broken in da1fab11)
Fixes !201
commit 56186add3c47969678b74ce956c32d0dc9600e04
Author: Ryan Finnie <ryan@finnie.org>
Date: Sun May 31 11:57:08 2020 -0700
architectures.sh: armhf/armel can be built on arm64
commit 6b0cc5529bb13bafdd503bff9dde61fa50eabdb8
Author: Ryan Finnie <ryan@finnie.org>
Date: Wed May 20 22:31:43 2020 -0700
Enable arm64 for binary_grub_cfg
Without modification, this produces a usable config for arm64
grub-efi iso-hybrid. Tested on qemu arm64 + serial console.
commit 13cf0e9ebe30a5af217ef5c64c550b64a92bcaf9
Author: Ryan Finnie <ryan@finnie.org>
Date: Sat May 30 14:11:45 2020 -0700
Add initial ppc64el support
Note that this does not include grub-ieee1275 support so the images will
not be bootable, but it's a first step and produces ISOs without error.
commit 263f84fe801f1664150673158495f26c9ce5ab32
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Tue Apr 28 19:10:47 2020 +0100
clean: handle all common options
support for options like `--debug` was missing.
Gbp-Dch: Short
commit fca128314754d937510312ce41ac39ae5d4d8125
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Tue Apr 28 19:41:45 2020 +0100
clean: refactor
this simplifies things to avoid the messy recursion.
it is also a necessary step to implementing handling of common options
like --debug. we need to process all options to decide how to approach
doing things (e.g. with debug messages to be output or not) before actually
performing any work, in order for options like --debug to be reacted to
properly.
also, as things were, options like `--debug` were not being passed along
in the recursive executions, while now that is no longer an issue.
the order of file/folder deletions for `--all`|`--purge`|`--remove`
actions is slightly changed here, but i don't see any issue with that and
it's cleaner to not preserve that.
Gbp-Dch: Short
commit 0afd3625ed3c2039e347830464eda8a378b2eb53
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Fri May 1 19:25:40 2020 +0100
bootloaders: reorganise installer menu entries
per layout from MR #199 discussion.
under "Advanced install options" we have:
- Graphical installer
- Text installer
- Graphical installer with dark theme
- Text installer with dark theme
- Installer with speech synthesis
under each of these we have a set of:
- Install
- Expert install
- Automated install
- Rescue mode
note that the 'automated' entries are moved up before the 'rescue' entries.
for hotkeys, the four entries above have hotkeys of 'i', 'x', 'a', and 'r'
respectively. ('x' is used instead of 'e' to avoid clash with standard
grub hotkey). this means that some entries that previous had no hotkeys
due to the flat list now have them. the other big difference is the main
graphical install entry going from 'g' to 'i' for consistency and the main
speech synth entry going from 's' to 'i' for the same reason.
furthermore, in the level above we have 'g' for normal graphical, 't' for
normal text install, 's' for speech synth, 'd' for graphical dark mode,
and 'k' for text dark mode.
the text-only sets are identical to the graphical ones except only for
dropping the graphical groups, simplifying maintenance, bringing clarity
to users of images (who may not have even made the image) that the set is
text-only, and keeping consistent hotkeys between graphical and text-only.
a 'start installer with speech synthesis' entry shortcut has been placed
at the top menu level alongside the 'start installer' shortcut.
Gbp-Dch: Short
commit ab2e8a91f5247075c173930f340ebccb92914a0b
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Sat Apr 4 05:27:31 2020 +0100
bootloaders: add accessible dark contrast installer menu options
following official install discs.
i've not bothered to update grub-legacy this time.
Gbp-Dch: Short
commit 9b2564a3ff2264ce3fabd02165f6e86b3a4f2621
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Sat Apr 4 05:10:13 2020 +0100
bootloaders: add advanced speech synth install entries
following the presence of them in the official install discs.
also drops unnecessary word "graphical" from existing speech
synth entry, following official Debian install discs.
i've not bothered to update grub-legacy this time.
Gbp-Dch: Short
commit 180207d711e7b882f110643178393fff611e46b5
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Tue May 5 21:49:57 2020 +0100
Revert "config: catch and report unexpected arguments"
This reverts commit 665372c19d7f54b5cfb92aaf313b7df9570f6191.
the kali test failed due to their script using a hack of passing along a
custom option after an early terminator through to their auto/config file.
the change implemented here was valuable, but i'll have to look into
revising things to work with what Kali is doing.
Gbp-Dch: Ignore
commit 18eefdd6f38631e15e56a2bd7a25bba50b05acfa
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Tue May 5 16:45:57 2020 +0100
s/Remove_package/Remove_packages/
it removes one or more, so should be plural for clarity
Gbp-Dch: Short
commit 919a464b64b4bda52a56b8732ea5ef7727649cf0
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Tue May 5 16:42:44 2020 +0100
s/Install_package/Install_packages/
it installs one or more, so should be plural for clarity
Gbp-Dch: Short
commit 9c8d26c97ff51ebc105e2bcf815c29ff79eea2a6
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Tue May 5 19:29:36 2020 +0100
packages: avoid unnecessary nesting
Gbp-Dch: Ignore
commit f27d13de08af9ae788b0d2f848e2202a399e4f43
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Tue May 5 01:56:36 2020 +0100
make temporary state of installed tools recoverable
some scripts temporarily install packages to accomplish some work before
then removing them. the list of packages installed is kept in memory in a
variable.
a weakness of this design is that if a failure occurs or the user cancels,
and then following this the user re-runs `lb build`, letting it try to
pick up and recover from where it left off, that list of packages that had
been installed is lost, resulting in those packages that were installed
then being a permanent part of the chroot.
here we fix this weakness by backing up the list to a file, which is always
read from on removal. thus in a recovery situation, any packages still
installed from a situation like that just described, will be removed upon
the next use of `Remove_package()`.
this is not perfect, since we are having to wait for opportunistic
execution of the remove function. we need to find a suitable place for the
`Cleanup_temp_packages()` function to be used.
- doing so in `Init_config_data()` would not be suitable because we don't
hold the lock when that's run, even if we ignored the hijacking of that
function for taking such action...
- doing it in `Exit()` doesn't seem a good fit either.
- putting it explicitly in every build script just seems a little messy...
perhaps a local exit trap like for removing the lock...?
note that `binary_rootfs` skips running the remove function after installing
tooling, since it just throws the wrapper chroot away, which then leaves the
file around with stale data for the next remove instance to pick up, which
then does not actually remove it because it's not installed. this is not
ideal either... perhaps the optimisation should be removed from that script?
Gbp-Dch: Short
commit a065e60043fc5ff217be0be90191305d8ade2518
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Tue May 5 19:04:35 2020 +0100
manpages: clarify UTC timestamps wrt. build log
Gbp-Dch: Ignore
commit 665372c19d7f54b5cfb92aaf313b7df9570f6191
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Tue May 5 18:58:39 2020 +0100
config: catch and report unexpected arguments
after handling arguments, catch and report any remaining "non-option"
arguments.
for instance users could make the basic mistake of using
`lb config --bootloaders syslinux grub-efi`, i.e. failing to quote the
multiple bootloaders (i actually encountered a user doing this who swore
that "it just worked"). catching and reporting such mistakes could be
valuable to users.
previous behaviour:
```
$ lb config --bootloaders syslinux grub-efi
P: Updating config tree for a debian/buster/amd64 system
P: Symlinking hooks...
```
new behaviour:
```
$ lb config --bootloaders syslinux grub-efi
[2020-05-05 18:56:07] lb config --bootloaders syslinux grub-efi
E: Unexpected argument found: grub-efi
```
Gbp-Dch: Short
commit d68290058e523bed56a8235e6408816ae3c8607e
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Tue May 5 00:52:13 2020 +0100
debootstrap: fix wrong param for Check_package call
debootstrap must obviously exist in the host. we thus must pass 'host'
not 'chroot' such that a warning about needing to install it on your host
system is output, rather than it being added to a list of packages to be
installed, which never occurs in this script.
Gbp-Dch: Ignore
commit 7cf7f74bc0570beedbea4b085fc799653a87c86e
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Mon May 4 23:19:58 2020 +0100
arches: fix Check_crossarchitectures param passing
Gbp-Dch: Ignore
commit 8a1bbe0841ced044444ebf4d7f2b44a689b9c26b
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Mon May 4 23:15:52 2020 +0100
arches: tidy
Gbp-Dch: Ignore
commit 08c86dc8ace433bd1efacc807357dc92661510ab
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Mon May 4 23:11:27 2020 +0100
arches: fix some Check_architectures() mess
- the comparison with LB_ARCHITECTURE seems to be based upon an old idea
of it potentially being intended in the past to hold more than one
arch (when it's name as also plural), but it in fact only holds one.
- similarly LB_BOOTSTRAP_QEMU_ARCHITECTURE is singular, so the comparison
with the set of params is bad.
- storing $@ in a variable before then looping is not a good idea
- script name was not being passed to the warnings
- can simplify by just returning in the valid case
i'm very suspicious about the correctness of the qemu bits, but that
can wait for now.
Gbp-Dch: Short
commit a542d52141acef0e2d2bb78253d6b5df4305dcd1
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Mon May 4 18:20:02 2020 +0100
rename binary_loopback_cfg to binary_grub_cfg
when loopback support was introduced, it initially duplicated the code
for generating a grub2 config, before the duplicated code was removed from
the grub-pc script, effectively thus moving grub config generation to the
loopback feature script.
grub-efi support was added after this.
this results in a misleading filename, since the `binary_loopback_cfg`
script is essential for use of grub-pc|grub-efi, and actually only has a
single line of code on top that's needed for adding actual loopback
support on top. (when grub-pc and grub-efi are not used, the entire script
is still needed for loopback support to work).
so here we rename it to make better sense, and correct/clarify bits of
documentation.
Gbp-Dch: Short
commit 3a523c3fc12ef23e720020e2bad151fc91b8b35d
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Mon May 4 17:28:48 2020 +0100
binary_iso: properly handle multiple bootloaders
with LB_BOOTLOADER_BIOS and LB_BOOTLOADER_EFI introduced, we can simplify
and correct things here.
previously it was possible for more than one of each type to be added.
Gbp-Dch: Short
commit d7883ec32b2bb907fce17fb759c08c5cd9851fc3
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Mon May 4 16:12:45 2020 +0100
config: improve BIOS/EFI bootloader selection handling
the design choice from when EFI support was introduced was to change
`--bootloader` to `--bootloaders`, with users specifying their selection
of BIOS and EFI bootloaders together. at this time there were not even any
decent validation checks being performed, and invalid combinations could
cause some chaos.
since then proper validation was put in place, including checking that
only a single instance of each of BIOS and EFI bootloaders exists in the
selection.
here we tweak things such that we stick with the same option, but we split
the selection up such that we store the BIOS and EFI selections separately
within the saved config file, and offer it up to scripts to help simplify
those scripts.
we must however retain support for splitting from the combined option,
both because we still use it in the combined option, and for backwards
compatibility with older saved configs.
Gbp-Dch: Short
commit 3f840aeeba982a858a881271a3bb48bca5b50dd8
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Mon May 4 14:28:37 2020 +0100
fully validate BIOS/EFI bootloader combinations
thus far, config bootloader validation only did the basic check that each
bootloader specified was a known and supported bootloader, it did not check
combinations.
it now checks combinations, and strips out the previous "bootloader role"
stuff.
the no-bootloaders warning is duplicated, covering two slightly different
situations (empty string, and whitespace string). this is anticipated to
be just temporary, with this just being the first step in better handling
bootloader selections.
Gbp-Dch: Short
commit f3a818da9ab1998944c20b0847a733bbdacb61d8
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Mon May 4 21:37:03 2020 +0100
binary_hdd: remove incorrect local scope
the "FIXME" function wrapper is just to temporarily disable the code.
Gbp-Dch: Ignore
commit 976be9f44bca9ee8be7e438348c1068faf50d9c6
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Mon May 4 17:40:23 2020 +0100
indentation fix
Gbp-Dch: Ignore
commit 7ad96bd64418951ab48e6e1c522c501e57b6b9d9
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Mon May 4 17:38:53 2020 +0100
fix redundant and incorrect source selections
"grub" presumably was what is now called "grub-legacy"
removed both because there is already a proper piece of code adding
bootloader packages.
Gbp-Dch: Ignore
commit cb2d9a0fe467dbf7a4de691e52c1f412007c098c
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Mon May 4 17:37:14 2020 +0100
fix another overlooked "grub" -> "grub-legacy" instance
Gbp-Dch: Ignore
commit 9d7393bbdbec133dedbc5c084a2596de227e04cf
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Mon May 4 16:16:00 2020 +0100
config: add note
The core purpose of `Prepare_config()` is to prepare the config by setting
defaults where not specified. It should not be involved itself in
validation of user options.
This can be an important distinction, for instance in `clean` where we
use this function, but avoid validation to potentially allow for an option
that deletes the config, that should work even in the face of an invalid
config.
Gbp-Dch: Ignore
commit 89ed6a54a10ba3b4ce781d8e1805f099b77cb7be
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Mon May 4 14:39:55 2020 +0100
config: fix inadequate validation check
Gbp-Dch: Ignore
commit 943c8fb5feb27cd60fd335f6e9e77524127f0f17
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Mon May 4 01:34:05 2020 +0100
extend config validation to all build components
while `lb build` ran the config validation check, spotting invalid configs
and stopping with an error, the major build stages if executed directly did
not, nor did the component stages.
here we move execution of the validation function into the common init
function, with an exported variable used to indicate that validation has
been performed. thus validation is performed no matter what part of the
build system you execute, but only once.
Gbp-Dch: Short
commit 7acd1f488f3b9d4348449a27d9412488dc8e1657
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Mon May 4 13:21:12 2020 +0100
get rid of a couple of useless variables
Gbp-Dch: Ignore
commit 76459a39cdc6f35485a867fd96c7cce29a2cc6b9
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Mon May 4 13:10:42 2020 +0100
clean: tweak init
`Init_config_data` is more suited to build scripts than here. note that
it's not used in `config` either. this deliberately does not pass along
arguments to it because `Arguments()` can only handle the basic common
options, not the `clean` set. this is somewhat confusing and causes a
pointless execution of `getopt`. furthermore the function is expanding
slightly further beyond it's original scope, with yet more change coming
that's unsuitable for `clean`, so it makes sense to avoid using the
function here just for the couple of function calls needed.
validation of the config is disabled, as it is not performed currently.
it is not clear if it should be enabled or not for `clean`. it may be
useful to not validate, if we wish to be able to provide users with an
option to be able to delete the config.
Gbp-Dch: Ignore
commit 21c697617d8299e19a99df12c70e36b379c91fce
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Sun May 3 21:02:32 2020 +0100
bootloaders: add timezone to splash timestamp
commit 9bc35759aab95d849cba38bcb6fd1bb072df9907
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Sun May 3 18:02:04 2020 +0100
config: fix stale live-build version in iso-preparer
using `$VERSION` as part of the default `$LB_ISO_PREPARER` means that when
you simply run `lb config` once, this variable is stored as a part of the
string, and replaced on use, but if you run `lb config` twice, it gets
replaced with a fixed version, that is then used in all subsequent builds.
let's replace with a placeholder (`@LB_VERSION@`) that can be used both in
the default, or in user strings, and will be replaced on use only.
this means that subsequent builds will always reflect the actual version
of live-build used.
Gbp-Dch: Ignore
commit 26a89a45e5c5311cfd43c3a3e37e18686462e402
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Sun May 3 19:28:58 2020 +0100
disk_info: obey new UTC timestamp control
commit ebf4b04b7f0bab4745ca9345c26a83d937a72578
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Sun May 3 20:24:33 2020 +0100
source_disk: de-duplicate date construction
Gbp-Dch: Ignore
commit 558942eccb9d90aa5ba0b9e0158504669efe907c
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Sun May 3 19:27:09 2020 +0100
syslinux: obey new UTC timestamp control
commit 31cc121c3dbce47438d51928e4b1e7229f514cb4
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Sun May 3 19:22:40 2020 +0100
config: obey new UTC timestamp control for default ISO volume label
commit 6cf3321d8471046bbbe203fb3f18d6507c402024
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Sun May 3 19:19:22 2020 +0100
config: provide UTC timestamp control
`DATE_UTC_OPTION` is set in `Prepare_config()` for use by scripts, even
though only a few scripts will actually use it, since it allows those
scripts to be cleaner. we may want to possibly extend this as a
`DATE_OPTIONS` variable perhaps as part of enabling proper reproduciblity.
Gbp-Dch: Short
commit 23f02ec7eeeac790c247ba084b8755c3b718ff01
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Sun May 3 18:50:41 2020 +0100
syslinux: support timezone date component
since date is not obtained as UTC, timezone is an important detail of
understanding the given time, which users may want to make use of.
Gbp-Dch: Short
commit dc64d8235d4b2706fa2bce6a6bd59d62e2fa9d88
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Sun May 3 18:35:02 2020 +0100
syslinux: fix date construction accuracy issue
don't construct each part from a fresh "now", which can result in
inaccuracies in the overall date due to "now" drifting over the individual
date calls. instead feed the full date that was obtained back into it when
extracting the component parts.
Gbp-Dch: Ignore
commit 7ad69658b249bd268497754b4933a65773c38593
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Sun May 3 15:08:28 2020 +0100
config: fix storage of --jffs2-eraseblock value
broken since it's introduction in 9ffb223d703a4bbb76e5278e59b3cc183f2f1aca
Gbp-Dch: Short
commit 918fe8ce2523ed8e89306b19bcc60fe43041052e
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Sun May 3 12:39:42 2020 +0100
config: small output alignment fix
Gbp-Dch: Ignore
commit 7276d0213fd26ee68b62b84080261e29512871e9
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Sun May 3 01:25:55 2020 +0100
fix usage/help/man bugs
- the definition of $PROGRAM as used in $USAGE strings defined in each
script has been broken for a long time, being simply "lb" when it needs
to be "lb COMMAND".
- `config` changed $PROGRAM to "lb config" thus its output was correct in
this regard unlike everything else, but with the switch to a more
"intelligent" `Man()` function recently, it means that instead of
`man lb config`, what was actually run was `man lb config config`,
which displayed the manpage, then on exiting with `q`, it showed some
sort of index line todo with a "config" search (no exact manpage
match?), for which you had to enter `ctrl+c` to get rid of.
this revises things to fix the issues, minimising change by changing
$PROGRAM to "lb COMMAND", with the frontend overriding this.
Gbp-Dch: Ignore
commit 96c797773201f60badcc7dac8b563f1dcf7ef349
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Sun May 3 00:59:37 2020 +0100
archives: output actual error for bad pass param
Gbp-Dch: Ignore
commit 43b4f9cdf62972bff5cff45f895305c391a895f2
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Sun May 3 00:58:18 2020 +0100
adjust action arg consumption order
did not properly consider all usage cases properly in deciding placement.
this captured `--usage` in `$PROGRAM --usage` as the action for instance.
Gbp-Dch: Ignore
commit 372a8fd91a9ec22c22250e4a0322432305b69a9f
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Sun May 3 00:38:08 2020 +0100
args: restore a little tidying
lost in a reversion
Gbp-Dch: Ignore
commit 82700d010b2b86e520cc3e71d2fd9ed11813f7d0
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Sat May 2 23:32:04 2020 +0100
manpages: formatting fix
Gbp-Dch: Ignore
commit 23ed83e730396d9af72343e126978418597c7deb
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Sat May 2 20:44:02 2020 +0100
config: tweak config file loading order
load the base set of files first, then any user arch/dist specific override
files second.
this is important since whenever config items get moved in the base files,
this can break the override files, if an option specified in one was moved
to a different common file that it loaded after.
Gbp-Dch: Ignore
commit 640a25f78d312dbd2553ab11131de02a9de3b2f0
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Sat May 2 18:44:03 2020 +0100
clean: output error on invalid argument
commit 22d8ac15dbc75af2acf02447cf045791b137d7d4
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Sat May 2 18:18:49 2020 +0100
options: de-duplicate common option handling
commit 55e17b1e256a4295c67f44e633adaa07f850d4fb
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Sat May 2 15:15:38 2020 +0100
config: refactor basic package list construction
Gbp-Dch: Ignore
commit b2b260242974a3a9ff479f7b597af96b8ea13d0d
Author: Lyndon Brown <jnqnfe@gmail.com>
Date: Tue Apr 28 16:53:38 2020 +0100
clean: expand debugging
Gbp-Dch: Ignore