live-build/share/hooks/normal
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
..
0020-create-mtab-symlink.hook.chroot Splitting non-live specific hooks into their own subdirectory within hooks. 2015-05-20 08:19:56 +02:00
0030-enable-cryptsetup.hook.chroot Splitting non-live specific hooks into their own subdirectory within hooks. 2015-05-20 08:19:56 +02:00
0040-create-locales-files.hook.chroot Initialize /etc/default/locale with LANG=C.UTF-8 2017-08-29 12:26:33 +02:00
0100-remove-adjtime-configuration.hook.chroot Splitting non-live specific hooks into their own subdirectory within hooks. 2015-05-20 08:19:56 +02:00
0110-remove-backup-files.hook.chroot Splitting non-live specific hooks into their own subdirectory within hooks. 2015-05-20 08:19:56 +02:00
0120-remove-dbus-machine-id.hook.chroot Splitting non-live specific hooks into their own subdirectory within hooks. 2015-05-20 08:19:56 +02:00
0130-remove-gnome-icon-cache.hook.chroot Splitting non-live specific hooks into their own subdirectory within hooks. 2015-05-20 08:19:56 +02:00
0140-remove-log-files.hook.chroot Splitting non-live specific hooks into their own subdirectory within hooks. 2015-05-20 08:19:56 +02:00
0150-remove-mdadm-configuration.hook.chroot Splitting non-live specific hooks into their own subdirectory within hooks. 2015-05-20 08:19:56 +02:00
0160-remove-openssh-server-host-keys.hook.chroot Splitting non-live specific hooks into their own subdirectory within hooks. 2015-05-20 08:19:56 +02:00
0170-remove-python-py.hook.chroot Splitting non-live specific hooks into their own subdirectory within hooks. 2015-05-20 08:19:56 +02:00
0180-remove-systemd-machine-id.hook.chroot Splitting non-live specific hooks into their own subdirectory within hooks. 2015-05-20 08:19:56 +02:00
0190-remove-temporary-files.hook.chroot Splitting non-live specific hooks into their own subdirectory within hooks. 2015-05-20 08:19:56 +02:00
0195-remove-ssl-cert-snakeoil.hook.chroot Splitting non-live specific hooks into their own subdirectory within hooks. 2015-05-20 08:19:56 +02:00
0200-remove-udev-persistent-cd-rules.hook.chroot Splitting non-live specific hooks into their own subdirectory within hooks. 2015-05-20 08:19:56 +02:00
0300-remove-udev-persistent-net-rules.hook.chroot Splitting non-live specific hooks into their own subdirectory within hooks. 2015-05-20 08:19:56 +02:00
0400-update-apt-file-cache.hook.chroot fix consistency in binary execution and existance checking 2020-03-09 10:51:11 +00:00
0410-update-apt-xapian-index.hook.chroot fix consistency in binary execution and existance checking 2020-03-09 10:51:11 +00:00
0420-update-glx-alternative.hook.chroot Splitting non-live specific hooks into their own subdirectory within hooks. 2015-05-20 08:19:56 +02:00
0430-update-mlocate-database.hook.chroot fix consistency in binary execution and existance checking 2020-03-09 10:51:11 +00:00
0440-update-nvidia-alternative.hook.chroot Splitting non-live specific hooks into their own subdirectory within hooks. 2015-05-20 08:19:56 +02:00
0910-remove-apt-sources-lists Splitting non-live specific hooks into their own subdirectory within hooks. 2015-05-20 08:19:56 +02:00