Luca Boccassi
015e6b65f3
Revert "Test for executables: replace 'which' with more robust 'command -v'"
...
This reverts commit 2d9ab1f7f8
.
Causes test failure due to bashism.
2020-03-12 12:32:26 +00:00
johnraff
2d9ab1f7f8
Test for executables: replace 'which' with more robust 'command -v'
...
Instances of:
if [ $(which <command> ]
have been replaced with:
if command -v <command> >/dev/null
which is considered to be more robust in a range of environments.
scripts/build/chroot_archives: line 259:
if [ "${LB_APT}" = "aptitude" ] && [ ! $(Chroot chroot "which aptitude") ]
has been left untouched because the chroot might require a more complex command
which would need more testing.
manpages/Makefile: line 42:
@if [ ! -x "$$(which po4a 2>/dev/null)" ]; \
has been left untouched because I am not sufficiently familiar with makefiles.
2020-03-12 10:35:57 +00:00
Lyndon Brown
7a4a9f94b8
amend copyright & licensing blocks
...
Current versions of the project files are built upon versions published
and licensed by Daniel Baumann, but are modified copies of those files and
thus need to be marked as such per licensing requirements (afaik he did
not pass along ownership / licensing rights to anyone when he left the
project). We should also be careful to not be misrepresenting such
modified copies as being attributed to Daniel.
Adding a new copyright line referring to "The Debian Live team" should
suffice for this.
The authorship block in man pages has also similarly been updated.
Notes:
- tweaked a copy of daniel copyright lines stating 2014 instead of 2015.
both of these cases were in files that i had personally introduced in
some of my past merged commits that moved some code around. i don't know
why they stated 2014.
- binary_onie was introduced in 2018, so that has a 2018 date instead of
2016 unlike the rest.
- 'efi-image' is a 3rd-party (Canonical Ltd) work that we bundle, but it
has been modified by 674794a8f4
and
36a3ba7634
so I similarly added a
debian live copyright line.
- 'grub-cpmodules' is similar. it was only changed by the indentation fix
of 36a3ba7634
but modification is
modification, and this does help cover any possible future changes that
might be made.
2020-03-11 13:51:19 +00:00
Lyndon Brown
9faf9bcbed
hooks: run bin without explicit path
...
this got lost in reworking 7ee59d408e
Gbp-Dch: Short
2020-03-10 13:59:01 +00:00
Lyndon Brown
7ee59d408e
fix consistency in binary execution and existance checking
...
- prefer using `which` over hard coded paths
- it is redundant to check that the bin pointed to the return of
`which` exists and is executable, `which` already gives us
assurance of that if it returns true!
- the redirection of output (`2>/dev/null`) seems to be
unnecessary from my testing.
the instances relatnig to fdisk and losetup in functions/defaults.sh have
been left as they are since they get executed by `lb config` which can run
without sudo elevation unlike `lb build` and in that case `which` would
fail to find these binaries resulting in error.
this also fixes a bug showing an error for missing debootstrap - this tool
requires sudo privileges to run and thus is not found via a none elevated
which search.
Gbp-Dch: Short
Closes : #952927
2020-03-09 10:51:11 +00:00
Lyndon Brown
2f5ae873b0
bootloaders: fix ignoring LB_DEBIAN_INSTALLER_GUI in menu creation
...
LB_DEBIAN_INSTALLER_GUI defines whether or not to provide the graphical
installer. the installer_debian-installer script pays attention to it and
does not download it if not wanted. the actual bootloaders however
(both grub2/loopback and syslinux) ignore it, which leaves broken and
unwanted menu entries. this fixes that.
Gbp-Dch: Short
Closes : #952890
2020-03-05 11:48:04 +00:00
Raphaël Hertzog
2127283494
Standardize on having the GUI installation first in boot menus
...
debian-cd changed it that way, we already have it that way in EFI
boot, let's be consistent.
2020-01-23 16:47:04 +01:00
Matthijs Kooijman
f62a6f9dea
Remove ldlinux.c32 for extlinux and syslinux
...
Since syslinux 5.00, this file is installed into the disk root by the
extlinux and syslinux installer commands. For pxelinux and isolinux,
these files still need to be added manually. This is documented at:
https://wiki.syslinux.org/wiki/index.php?title=Library_modules#All_Syslinux_variants_need_an_additional_ldlinux_module
Keeping these unused files around is probably only confusing, so better
to remove them.
2019-05-30 16:14:51 +02:00
Raphaël Hertzog
2fe6afe460
Initialize /etc/default/locale with LANG=C.UTF-8
...
That way we always have a valid UTF-8 locale even when we don't have
the "locales" (or "locales-all") package installed.
2017-08-29 12:26:33 +02:00
Raphaël Hertzog
d18d0dfe2a
Add keyboard shortcut on the "Advanced options" syslinux menu entry
...
Thanks to Daniel Reichelt <debian@nachtgeist.net> for the patch.
Closes : #864386
2017-06-09 13:41:13 +02:00
Raphaël Hertzog
50b6a29523
Cleanup binary_loopback_cfg and offer more freedom in overriding the default grub-pc configuration.
2016-12-14 12:33:07 +01:00
Raphaël Hertzog
f7bb86fd58
Clean up grub configuration code
...
* Use only long kernel names.
* Put advanced options in a submenu.
* Use distro-agnostic labels.
* Don't generate entries with kernel version when we have a single
version.
2016-12-02 23:04:13 +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
674794a8f4
Try to reuse /isolinux/splash.png in default grub configuration.
2016-11-28 20:58:18 +01:00
Raphaël Hertzog
1ccb416230
Add symlinks for libgpl.c32 and libmenu.c32
...
They are required for the "Hardware Detection Tool (HDT)" menu entry that
live-build adds in the advanced menu.
Sponsored-by: Offensive Security
2016-01-08 09:18:35 +01: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
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
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
1a5fda595f
Adding hook to disable tmpfs on /tmp when using sysvinit, previously done by live-config.
2015-05-02 13:58:47 +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
ca758f9cb4
Adding hook to create locales files.
2015-02-23 22:41:52 +01:00
Daniel Baumann
ba6b9adeff
Updating d-i bootparameter separator for jessie.
2015-01-25 10:02:34 +01:00
Daniel Baumann
242aef5d83
Updating year in copyright notices to 2015.
2015-01-04 20:05:44 +01:00
Daniel Baumann
b5e99b5b14
Dropping support for wheezy.
2014-12-10 08:38:42 +01:00
Daniel Baumann
ef03f67f81
Adding hook to enable cryptsetup ( Closes : #767195 ).
2014-11-10 19:57:33 +01:00
Daniel Baumann
a284af94db
Dropping syslinux 6 symlinks from bootloader configs for wheezy.
...
In general there's no harm in having them as they are not used
on syslinux 4 distributions, however, but it's cosmetically nicer
and the path woudn't match anyway.
But.. since it turned out that we need the second copy of bootloaders
for wheezy anyway as wheezy and jessie are mutually exclusive
regarding paths where syslinux files are located, there's no
point in having them and confusing users with error messages
from cp -aL when stuff can't be dereferenced (which is ok).
2014-09-10 20:44:15 +02:00
Ben Armstrong
5fc57865a4
Exclude lib and non-main sections as tasksel does ( Closes : #758218 ).
2014-08-27 23:03:39 +02:00
Daniel Baumann
7312ca2d2d
Correcting wrong target for /etc/mtab symlink in create-mtab-symlink hook, thanks to Ben Armstrong <synrg@sanctuary.nslug.ns.ca>.
2014-08-22 17:11:30 +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
Simon McVittie
114a778b7a
If /etc/mtab exists as a file, replace it with a symlink ( Closes : #746570 ).
2014-06-25 20:52:08 +02:00
Daniel Baumann
e84476a7e5
Adding hook to create /etc/mtab as a symlink to /proc/mtab if not already existing ( Closes : #746570 ).
2014-05-01 17:40:11 +02:00
Simon McVittie
eeb4680557
Truncate /etc/machine-id instead of deleting it.
...
If /etc/machine-id exists but is empty, systemd will do tricks
with bind-mounts to ensure that a valid transient UUID is bind-mounted
over it, which is exactly what we want for a live system.
If /etc/machine-id does not exist, systemd-journald
will just fail, which is undesirable.
2014-04-28 19:45:52 +02:00
Daniel Baumann
f78b2a7d25
Adjusting splash.svg filename in embedded syslinux configurations to match code ( Closes : #745020 ).
2014-04-26 08:05:32 +02:00
Daniel Baumann
eb336bb782
Updating copyright notices for 2014.
2014-02-08 17:47:24 +01:00
Daniel Baumann
e9701039f7
Updating configuration path in update-apt-file-cache.hook.chroot.
2013-11-03 21:20:33 +01:00
Daniel Baumann
037066598a
Updating file suffixes of the internal default hooks.
2013-11-03 21:17:13 +01:00
Daniel Baumann
aa7939e085
Removing unused description variable in syslinux configs.
2013-09-18 11:43:49 +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
24cfdfc6a3
Adding hook to remove ssl-cert-snakeoil by default.
2013-06-19 08:01:03 +02:00
Daniel Baumann
f35f4c6b1d
Including memtest86+ in syslinux menu.
2013-05-27 17:07:05 +02:00
Daniel Baumann
b82c1349f2
Renumbering hook scripts.
2013-05-06 20:08:10 +02:00
Daniel Baumann
01e91f9c21
Adding hook to disable 70-persistent-cd.rules udev rule to prevent udev remember the cd device name both the one of the build system and the one of the live system ( Closes : #706926 ).
2013-05-06 20:07:09 +02:00
Daniel Baumann
45f1f9f0a0
Renaming remove-udev-persistent-rules.chroot hook to remove-udev-persistent-net-rules.chroot for future additional udev hooks.
2013-05-06 19:40:42 +02:00
Daniel Baumann
c287072126
Debranding package for derivatives.
2013-05-06 14:50:07 +02:00
Daniel Baumann
59ce459f40
Removing all references to my old email address.
2013-05-06 14:50:06 +02:00
Daniel Baumann
ba7535c73e
Removing superfluous menu default directive in installer syslinux menues.
2013-05-06 14:50:05 +02:00
Daniel Baumann
ea68bab304
Removing default menu marker for install entry in syslinux menu.
2013-05-06 14:50:05 +02:00
Daniel Baumann
e3455ee2c9
Adding key-shortcut for advanced options in syslinux menu.
2013-05-06 14:50:05 +02:00
Daniel Baumann
fdcebc3365
Including HDT in advanced options menu within syslinux menu.
2013-05-06 14:50:05 +02:00
Daniel Baumann
51e6e3b324
Correcting wrong debian-installer syslinux menu files.
2013-05-06 14:50:05 +02:00
Daniel Baumann
e5e62f66a1
Renumbering hooks.
2013-05-06 14:50:05 +02:00
Daniel Baumann
772af17699
Adding hook to remove systemd machine-id.
2013-05-06 14:50:05 +02:00
Daniel Baumann
2fb4009a8c
Updating syslinux configurations and handling for syslinux 5.
2013-05-06 14:50:05 +02:00
Daniel Baumann
3b7335e86b
Correcting vshift in syslinux themes to correct display bug with overlong lines, thanks to Thanatermesis <thanatermesis@gmail.com>.
2013-05-06 14:50:05 +02:00
Daniel Baumann
62d94a4454
Updating year in all copyright notices.
2013-05-06 14:50:03 +02:00
Daniel Baumann
a189319b43
Renumbering hooks.
2013-05-06 14:50:03 +02:00
Daniel Baumann
0cdbf60bc1
Moving removal of actual backup files for apt sources into correct hook.
2013-05-06 14:50:03 +02:00
Daniel Baumann
5e07604353
Removing kubuntu mode, it's not different anymore to standard ubuntu mode.
2013-05-06 14:50:02 +02:00
Daniel Baumann
0eb6a7bdae
Renumbering hooks.
2013-05-06 14:50:02 +02:00
Daniel Baumann
798e68096a
Merging remove-linux-image-backups into remove-backup-files hook.
2013-05-06 14:50:02 +02:00
Daniel Baumann
4908d4d6c1
Adding default hook to use mesa glx renderer.
2013-05-06 14:50:02 +02:00
Daniel Baumann
7ce3113f44
Using consistent naming for default hooks.
2013-05-06 14:50:02 +02:00
Daniel Baumann
af54c6b82c
Adding default hook to use newest nvidia version.
2013-05-06 14:50:02 +02:00
Daniel Baumann
cee58d8779
Also removing man chache in remove-temporary-files hook.
2013-05-06 14:50:02 +02:00
Daniel Baumann
d6a30e84eb
Adding default hook to truncate log files.
2013-05-06 14:50:02 +02:00
Daniel Baumann
fae7a1ce27
Moving removal of backup and temporary files to their own hook script.
2013-05-06 14:50:02 +02:00
Daniel Baumann
cf1de1682b
Moving kexec-tools default preseeding into its own hook script.
2013-05-06 14:50:02 +02:00
Daniel Baumann
bd22f9c864
Updating removal of adjtime in a split out hook for wheezy.
2013-05-06 14:50:02 +02:00
Daniel Baumann
0ad3b01c96
Adding default hook to remove mdadm configuration.
...
mdadm creates a /etc/mdadm/mdadm.conf configuration file
on package installation which contains array information
from the build system.
2013-05-06 14:50:02 +02:00
Raphaël Hertzog
ea3c9ae385
Adding initial menu entries for debian-installer.
2013-05-06 14:50:02 +02:00
Daniel Baumann
d1047e809a
Adding debian version 4.0~a1-1.
2013-05-06 14:48:46 +02:00
Daniel Baumann
052b308147
Removing superfluous menu default directive in installer syslinux menues.
2013-02-12 05:23:51 +01:00
Daniel Baumann
01eda54457
Removing default menu marker for install entry in syslinux menu.
2013-02-08 23:21:48 +01:00
Daniel Baumann
45f6d3af53
Adding key-shortcut for advanced options in syslinux menu.
2013-02-08 23:21:46 +01:00
Daniel Baumann
fb4d939559
Including HDT in advanced options menu within syslinux menu.
2013-02-08 22:44:00 +01:00
Daniel Baumann
574c96a037
Correcting wrong debian-installer syslinux menu files.
2013-02-08 22:43:58 +01:00
Daniel Baumann
f4b264d474
Renumbering hooks.
2013-02-08 21:40:28 +01:00
Daniel Baumann
4da218e858
Adding hook to remove systemd machine-id.
2013-02-08 21:40:28 +01:00
Daniel Baumann
bc08ea0115
Updating syslinux configurations and handling for syslinux 5.
2013-02-08 21:40:28 +01:00
Daniel Baumann
74dbadf2ff
Correcting vshift in syslinux themes to correct display bug with overlong lines, thanks to Thanatermesis <thanatermesis@gmail.com>.
2013-01-25 13:00:02 +01:00
Daniel Baumann
a203b86fdd
Updating year in all copyright notices.
2013-01-01 00:13:01 +01:00
Daniel Baumann
54fee83777
Renumbering hooks.
2012-12-19 06:44:52 +01:00
Daniel Baumann
9a72741066
Moving removal of actual backup files for apt sources into correct hook.
2012-12-19 05:54:16 +01:00
Daniel Baumann
7e8240cd5e
Removing kubuntu mode, it's not different anymore to standard ubuntu mode.
2012-12-17 13:51:44 +01:00
Daniel Baumann
a46350d7b3
Renumbering hooks.
2012-12-17 00:22:28 +01:00
Daniel Baumann
9d9e343f95
Merging remove-linux-image-backups into remove-backup-files hook.
2012-12-17 00:15:38 +01:00
Daniel Baumann
50c2839b1b
Adding default hook to use mesa glx renderer.
2012-12-17 00:10:39 +01:00
Daniel Baumann
995031ed72
Using consistent naming for default hooks.
2012-12-17 00:08:41 +01:00
Daniel Baumann
f8ac7662a7
Adding default hook to use newest nvidia version.
2012-12-17 00:06:33 +01:00
Daniel Baumann
1426c7780e
Also removing man chache in remove-temporary-files hook.
2012-12-17 00:00:11 +01:00
Daniel Baumann
5b11bd1a06
Adding default hook to truncate log files.
2012-12-16 23:58:54 +01:00
Daniel Baumann
43434c2f6a
Moving removal of backup and temporary files to their own hook script.
2012-12-16 23:56:55 +01:00
Daniel Baumann
18c8ece239
Moving kexec-tools default preseeding into its own hook script.
2012-12-16 23:48:24 +01:00
Daniel Baumann
414b89ed3f
Updating removal of adjtime in a split out hook for wheezy.
2012-12-13 20:32:18 +01:00
Daniel Baumann
8fd30d15b3
Adding default hook to remove mdadm configuration.
...
mdadm creates a /etc/mdadm/mdadm.conf configuration file
on package installation which contains array information
from the build system.
2012-12-12 11:43:41 +01:00
Raphaël Hertzog
5830520ecb
Adding initial menu entries for debian-installer.
2012-12-10 20:23:10 +01:00
Daniel Baumann
bbbe6a66df
Using four letter digit prefixes for hooks like for consistency with all other live packages.
2012-11-29 21:18:28 +01:00
Daniel Baumann
f7ba1350f8
Adding default hook to remove linux-image backup files.
2012-11-28 17:43:29 +01:00