summaryrefslogtreecommitdiff
path: root/share/hooks
AgeCommit message (Collapse)Author
2021-01-23Reproducible fix for glibcRoland Clobus
2020-09-25Use truncate --no-create --size=0 to truncate filesRaphaël Hertzog
This avoids the permission error due to /proc/sys/fs/protected_regular = 2 setting which is now enabled by default in bullseye.
2020-05-01Replace 'which' with 'command -v' to test for the existance of an executablejohnraff
This is considered to be more robust. Two instances remain: scripts/build/chroot_archives, line 257: if [ "${LB_APT}" = "aptitude" ] && [ ! $(Chroot chroot "which aptitude") ] The command is run inside a chroot where the environment might be special, and would need further testing. manpages/Makefile, line 42: @if [ ! -x "$$(which po4a 2>/dev/null)" ]; \ I am insufficiently familiar with makefile syntax to edit this.
2020-04-23Add updated directives to enable cryptsetup support in initrdRaphaël Hertzog
This fixes cryptsetup modules not being installed into initrd with warning: > cryptsetup: WARNING: The initramfs image may not contain cryptsetup binaries > nor crypto modules. If that's on purpose, you may want to uninstall the > 'cryptsetup-initramfs' package in order to disable the cryptsetup initramfs > integration and avoid this warning. Thanks-to: Marcel Partap
2020-04-23Fix indentationRaphaël Hertzog
2020-03-12Revert "Test for executables: replace 'which' with more robust 'command -v'"Luca Boccassi
This reverts commit 2d9ab1f7f82f9a98b97d1503c1e3f31c86061c15. Causes test failure due to bashism.
2020-03-12Test for executables: replace 'which' with more robust 'command -v'johnraff
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-10hooks: run bin without explicit pathLyndon Brown
this got lost in reworking 7ee59d408ed7681908966a5b2fb28e8f98116d31 Gbp-Dch: Short
2020-03-09fix consistency in binary execution and existance checkingLyndon Brown
- 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
2017-08-29Initialize /etc/default/locale with LANG=C.UTF-8Raphaël Hertzog
That way we always have a valid UTF-8 locale even when we don't have the "locales" (or "locales-all") package installed.
2015-05-20Splitting non-live specific hooks into their own subdirectory within hooks.Daniel Baumann
2015-05-02Moving hooks to hooks/live, both in live-build sources and live-build configs.Daniel Baumann
Really soon live-build will support building non-live images out-of-the-box. Therefore moving hooks into a live specific subdirectory.
2015-05-02Adding hook to disable tmpfs on /tmp when using sysvinit, previously done by ↵Daniel Baumann
live-config.
2015-02-23Adding hook to create locales files.Daniel Baumann
2014-11-10Adding hook to enable cryptsetup (Closes: #767195).Daniel Baumann
2014-08-22Correcting wrong target for /etc/mtab symlink in create-mtab-symlink hook, ↵Daniel Baumann
thanks to Ben Armstrong <synrg@sanctuary.nslug.ns.ca>.
2014-06-25If /etc/mtab exists as a file, replace it with a symlink (Closes: #746570).Simon McVittie
2014-05-01Adding hook to create /etc/mtab as a symlink to /proc/mtab if not already ↵Daniel Baumann
existing (Closes: #746570).
2014-04-28Truncate /etc/machine-id instead of deleting it.Simon McVittie
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.
2013-11-03Updating configuration path in update-apt-file-cache.hook.chroot.Daniel Baumann
2013-11-03Updating file suffixes of the internal default hooks.Daniel Baumann
2013-06-19Adding hook to remove ssl-cert-snakeoil by default.Daniel Baumann
2013-05-06Renumbering hook scripts.Daniel Baumann
2013-05-06Adding hook to disable 70-persistent-cd.rules udev rule to prevent udev ↵Daniel Baumann
remember the cd device name both the one of the build system and the one of the live system (Closes: #706926).
2013-05-06Renaming remove-udev-persistent-rules.chroot hook to ↵Daniel Baumann
remove-udev-persistent-net-rules.chroot for future additional udev hooks.
2013-05-06Renumbering hooks.Daniel Baumann
2013-05-06Adding hook to remove systemd machine-id.Daniel Baumann
2013-05-06Renumbering hooks.Daniel Baumann
2013-05-06Moving removal of actual backup files for apt sources into correct hook.Daniel Baumann
2013-05-06Removing kubuntu mode, it's not different anymore to standard ubuntu mode.Daniel Baumann
2013-05-06Renumbering hooks.Daniel Baumann
2013-05-06Merging remove-linux-image-backups into remove-backup-files hook.Daniel Baumann
2013-05-06Adding default hook to use mesa glx renderer.Daniel Baumann
2013-05-06Using consistent naming for default hooks.Daniel Baumann
2013-05-06Adding default hook to use newest nvidia version.Daniel Baumann
2013-05-06Also removing man chache in remove-temporary-files hook.Daniel Baumann
2013-05-06Adding default hook to truncate log files.Daniel Baumann
2013-05-06Moving removal of backup and temporary files to their own hook script.Daniel Baumann
2013-05-06Moving kexec-tools default preseeding into its own hook script.Daniel Baumann
2013-05-06Updating removal of adjtime in a split out hook for wheezy.Daniel Baumann
2013-05-06Adding default hook to remove mdadm configuration.Daniel Baumann
mdadm creates a /etc/mdadm/mdadm.conf configuration file on package installation which contains array information from the build system.
2013-05-06Adding debian version 4.0~a1-1.debian/4.0_a1-1Daniel Baumann
2013-02-08Renumbering hooks.Daniel Baumann
2013-02-08Adding hook to remove systemd machine-id.Daniel Baumann
2012-12-19Renumbering hooks.Daniel Baumann
2012-12-19Moving removal of actual backup files for apt sources into correct hook.Daniel Baumann
2012-12-17Removing kubuntu mode, it's not different anymore to standard ubuntu mode.Daniel Baumann
2012-12-17Renumbering hooks.Daniel Baumann
2012-12-17Merging remove-linux-image-backups into remove-backup-files hook.Daniel Baumann
2012-12-17Adding default hook to use mesa glx renderer.Daniel Baumann