summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-04-23manpages: document that --linux-flavours is space separatedLyndon Brown
2020-04-23manpages: fix typoLyndon Brown
"more than that" -> "more than one" Gbp-Dch: Ignore
2020-04-23manpages: document space separation for --keyring-packagesLyndon Brown
2020-04-23manpages: document all values for --interactiveLyndon Brown
2020-04-23config: support comma or space separated archive area listsLyndon Brown
2020-04-23config: support both comma and space separated to-cache stagesLyndon Brown
2020-04-23manpage: document that multiple stages to cache should be space separatedLyndon Brown
2020-04-23manpage: fix consistency issuesLyndon Brown
- in underlining option parameters - in some cases of single or multiple (quoted + space separated) values Gbp-Dch: Ignore
2020-04-23manpages: indicate in usage that multiple bootloaders can be givenLyndon Brown
Gbp-Dch: Ignore
2020-04-23bootloaders: improve bootloader list handlingLyndon Brown
two parts of the code worked with both comma and space separated lists, while two others only worked with comma separated. swapping out commas with spaces when we setup the var in Set_config_defaults() means that individual scripts no longer need to worry about it and everything supports both; and that we can avoid the IFS/OLDIFS mess. Gbp-Dch: Short
2020-04-23manpages: fix mistakeLyndon Brown
the bootloader list should be comma separated not space. i do not know what possessed me to write space based in aed4e0fef2b87e20ea13ea86d36b9b12ac23426d. fix "booloader" typo while at it. Gbp-Dch: Ignore
2020-04-23fix outdated grub-legacy bootloader name referencesLyndon Brown
2020-04-23manpage: document that multiple archive areas should be space separatedLyndon Brown
2020-04-23Fix permissions & ownership of copied /etc/resolv.confLyndon Brown
Closes: #857740 [tweaked by Raphaƫl Hertzog to fix the chown root:root call]
2020-04-23binary_hdd: fix variable name typoLyndon Brown
2020-04-23config: fix wrong saved value for parent archive areasLyndon Brown
2020-04-23chroot_apt: fix broken removalLyndon Brown
2020-04-23chroot_apt: improve readabilityLyndon Brown
2020-04-23chroot_dpkg: remove redundant chmodLyndon Brown
left over from before using `ln` to setup the diversion Gbp-Dch: Ignore
2020-04-23frontend: fix use of config/environment[.binary]Lyndon Brown
the environment variables when held in a variable need to be used via `env` otherwise you get command not found errors. example: ``` $ echo "AA=aa" > config/environment $ lb config /usr/bin/lb: 83: AA=aa: not found $ ENV="AA=aa" $ ${ENV} true bash: AA=aa: command not found $ "${ENV}" true bash: AA=aa: command not found $ env ${ENV} true ``` Gbp-Dch: Short
2020-04-23chroot_prep: warn if running archives helper for bootstrap stageLyndon Brown
to protect against simple mistake of using 'all' instead of 'all-except-archives' when manually executing scripts (e.g. during development) at the bootstrap stage level. (the bootstrap stage does not and should not use the archives helper). Gbp-Dch: Ignore
2020-04-23binary_rootfs: use new chroot_prep helperLyndon Brown
2020-04-23binary_rootfs: fix missing handling of chroot_tmpfsLyndon Brown
2020-04-23bootstrap_archives: remove useless paramLyndon Brown
2020-04-23chroot_prep: expand coverageLyndon Brown
it now covers: - `lb chroot_apt install-binary` - `lb chroot_archives {chroot|binary|source} {install|remove}` by expanding usage from: `lb chroot_prep {install|remove} HELPERS [ARGS]` to: `lb chroot_prep {install|remove} HELPERS [MODE[ MODE..]] [ARGS]` where `[MODE[ MODE..]]` is an optional set of one or more of: - archives-chroot, which specifies to use 'chroot' as the first param to the chroot_archives script - archives-binary, which specifies to use 'binary' - archives-source, which specifies to use 'source' - apt-install-binary, which specified to pass 'install-binary' instead of 'install' to chroot_apt thus _all_ chroot prep scripts can be run through this helper now! note, in the case of the binary stage, 'archives' is deliberately not added to CHROOT_PREP_OTHER, this is not a mistake! Gbp-Dch: Short
2020-04-23binary: add missing use of chroot_tmpfsLyndon Brown
2020-04-23add bulk chroot preparation script execution helperLyndon Brown
rather than explicitly running one helper after another in the major build stages, or by hand (e.g. while testing things during development), they can be run in bulk via this new helper. it essentially just takes a list of helpers to run and runs them one by one. it supports running all helpers except chroot_archives because that one has different parameter requirements to the rest and supporting it would make things messier. helper scripts can either be named by their full script name or without the 'chroot_' prefix for brevity. you can also just specify 'all' to refer to all helpers (except chroot_archives, per above). it automatically reverses the order of the list when run in remove mode. Gbp-Dch: Short
2020-04-23binary: remove useless execution of `lb chroot_debianchroot remove`Lyndon Brown
it was not run in install mode so should not be run in remove mode. (whether it should in fact be run in install mode is another question; as is whether chroot_tmpfs should be being used) Gbp-Dch: Short
2020-04-23remove some unwanted quoting of list parametersLyndon Brown
there are additional instances in binary_* scripts that are left here because they are covered by changes in MR #157 Gbp-Dch: Short
2020-04-23fix $@ parameter expansion issuesLyndon Brown
$@ when unquoted is subject to further word splitting. this fixes a bunch of instances where it was incorrectly being used unquoted. Gbp-Dch: Short
2020-04-23packages: remove auto-installed on removalLyndon Brown
i've been noticing that in the binary_syslinux stage a wholebunch of packages get installed whilst installing isolinux, and then upon removing the installed packages at the end of the script, apt is listing a large number of those that were auto installed as no longer in use and can be removed via `apt autoremove`. this then persists through package installation and removal steps throughout remaining scripts. adding `--auto-remove` to `apt-get remove --purge` and similarly `--purge-unused` to `aptitude purge` instructs apt to get rid of the unused auto-installed packages at the same time as removing specific package that brought them in in the first place, and thus resolves the problem. Gbp-Dch: Short
2020-04-23binary_iso: remove duplicate copying of grub binariesjnqnfe
these files are already copied into place in the binary_grub-pc script. Gbp-Dch: Short
2020-04-23grub-pc: fix broken boot capabilityLyndon Brown
Closes: #956131
2020-04-23grub-efi: fix partial broken boot capabilityadrian15
when used alongside syslinux and when a single kernel flavour is used, things work correctly. otherwise booting from EFI is broken. the problem comes from the fact that syslinux, for a single kernel flavour creates the file /live/vmlinuz, which is used by the minimal EFI grub.cfg to locate the device and partition containing the live image. when multiple kernel flavours are used, it instead creates /live/vmlinuz1, /live/vmlinuz2, etc. which thus is a problem. similarly when syslinux is not used, you are left only with long filenames for the kernel files, for example /live/vmlinuz-4.19.0-8-amd64. in these situations grub cannot find the device containing the image and thus fails to display the boot menu. the solution here, instead of dynamically changing the filename searched for depending upon bootloader configuration, switches to doing a search for the file /.disk/info instead. this file is generated by binary_disk, and is present for iso, iso-hybrid and hdd images types, though grub-efi cannot be used for the hdd type. it is not created for the netboot type, but again, grub-efi is not compatible with that anyway. it is not created for the tar type, which the grub-efi script does not block as incompatible, but is this not a mistake? furthermore, switching to searching for /.disk/info helps avoid issues for systems that happen to actually include a real /live/vmlinuz path other than on a removable live disk or CD/DVD, as is the case with a HP system discussed in #924053. this patch was written by adrian15sgd@gmail.com, as per the authorship, who attached it to the #924053 bug discussion. this commit message however has been re-written by jnqnfe@gmail.com, prior to submission via an MR, as part of the fix towards the issues reported in #956131. Gbp-Dch: Short Closes: #924053
2020-04-23grub2|loopback: avoid empty submenuLyndon Brown
don't include the advanced menu at all if it's only entry - memtest - is not included (you just get a menu entry that does nothing, which may confused users into thinking that something is broken, as opposed to showing an empty submenu as i expected). Gbp-Dch: Short
2020-04-23grub2|loopback: define common targetLyndon Brown
Gbp-Dch: Ignore
2020-04-23grub2|loopback: extract memtest menu entry creation to config fileLyndon Brown
backwards compatibility: 1. the new file will be included alongside any user custom config 2. rather than replace MEMTEST with an actual config entry, we replace it with a line to import the content of the new file, and thus will work just as before. thus no backwards compatible breakage Gbp-Dch: Short
2020-04-23grub2|loopback: extract install menu entries to config filesLyndon Brown
backwards compatibility: 1. the new install.cfg and install_start.cfg files (chosen automatically from the install_*gui.cfg and install_*test.cfg files) will be included alongside any user custom config. 2. the placeholders are now replaced with lines importing these files thus everything will work just as before, i.e. no backwards compatibility breakage. Gbp-Dch: Short
2020-04-23grub2|loopback: move copying of files earlierLyndon Brown
necessary for changes in followup commits. Gbp-Dch: Short
2020-04-23syslinux: overwrite default files with user onesLyndon Brown
as just done for grub2|loopback the primary benefit here is that it means that user configs do not have to carry copies of all files; they just carry the ones they want to replace (or add). Gbp-Dch: Short
2020-04-23syslinux: simplificationLyndon Brown
`$_SOURCE` is always composed of `<foo>/${_BOOTLOADER}`, so we can just use `${_BOOTLOADER}` as the basename, without calling `basename ${_SOURCE}` Gbp-Dch: Ignore
2020-04-23grub2|loopback: overwrite default files with user onesLyndon Brown
...rather than choosing between the default set and a user provided set 1. ensures backwards compatibility after we switch from generation of certain content to that content being in pre-prepared config files, and thus no longer writing that config out to existing files. 2. means that user configs do not have to carry copies of all files; they just carry the ones they want to replace (or add). Gbp-Dch: Short
2020-04-23grub2|loopback: move advanced installer entries under own submenuLyndon Brown
this takes a step forward in moving towards the same updated layout as with syslinux; here we get: - <live entries> - Start installer - Advanced install options... - <full set of install options> - Advanced options... - Memory Diagnostic Tool (memtest86[+]) note that this only affects the default menu. custom configs are not affected by this change. further steps to complete the move to the updated layout will follow later. "Advanced options..." should perhaps be renamed later. Gbp-Dch: Short
2020-04-23grub2|loopback: improve memtest labelLyndon Brown
make it consistent with syslinux Gbp-Dch: Short
2020-04-23grub2|loopback: add hotkeys for some installer entriesLyndon Brown
an official current debian install disc was compared with to achieve better consistency. main menu: - i: for the single "start" entry advanced submenu: - g: for the main graphical entry - i: for the main text-based entry - x: for the main expert entry - a: for the main auto entry - r: for the main rescue entry - s: for the synth entry for expert, auto and rescue, the hotkey is given to the graphical entry where present, otherwise to the text entry. Gbp-Dch: Short
2020-04-23grub2|loopback: add hotkey for advanced options submenu (a)Lyndon Brown
2020-04-23grub2|loopback: add hotkey for memtest (m)Lyndon Brown
2020-04-23grub2|loopback: add hotkey for single kernel live entry (l)Lyndon Brown
2020-04-23grub2|loopback: allow providing hotkey to menu entry creation helpersLyndon Brown
2020-04-23grub2|loopback: use '@' bookended placeholdersLyndon Brown
...for consistency with syslinux config placeholders and improved clarity of what text is a placeholder. the old placeholders without the bookends are still replaced for user configs for backwards compatibility. the new ones are little used just at the moment but are expected to become used much more in later commits. Gbp-Dch: Short