Commit fc1f7d6b authored by Tails developers's avatar Tails developers
Browse files

Catch more errors in local hooks

Ensure that all local hooks start with 'set -e'. This should prevent errors
to slip through the build process.
parent 44ace676
#!/bin/sh
set -e
echo "Setting GDM background"
# The gdm3 initscript updates /var/lib/gdm3/.gconf.mandatory/ at
......
#!/bin/sh
set -e
echo "Adding cpufreq modules to /etc/modules"
for module in acpi-cpufreq cpufreq_powersave cpufreq_ondemand dm-mod ; do
......
#!/bin/sh
set -e
# Disable ssh-agent in /etc/X11/Xsession.options
# (seahorse / gnome-keyring are more user-friendly)
......
#!/bin/sh
set -e
echo "Building VirtualBox guest modules"
hw_arch="`dpkg --print-architecture`"
......
#!/bin/sh
set -e
# Install modules managed by module-assistant
echo "installing modules managed by module-assistant"
......
#!/bin/sh
set -e
# Compile and install a custom udev-watchdog program
echo 'compiling and installing a custom udev-watchdog program'
......
#!/bin/sh
set -e
echo "managing initscripts"
# enable custom initscripts
......
#!/bin/sh
set -e
echo "Creating kernel and ramdisk symlinks"
# Get version information for the (newest) installed kernel.
......
#!/bin/sh
set -e
echo "Registering menus"
for app in liveusb-creator-launcher tails-persistence-delete tails-persistence-setup ; do
......
#!/bin/sh
set -e
gpg --batch --no-default-keyring --keyring /usr/share/keyrings/tails-keyring.gpg --import /usr/share/doc/tails/website/*.key
chmod a+r /usr/share/keyrings/tails-keyring.gpg
#!/bin/sh
set -e
# Append some version information to /etc/amnesia/version
echo "Appending some version information to /etc/amnesia/version"
......
#!/bin/sh
set -e
echo "Removing unwanted files"
rm -f /usr/share/icons/gnome/icon-theme.cache
......
#!/bin/sh
set -e
echo "Removing unwanted packages"
### Deinstall dev packages.
......
#!/bin/sh
set -e
/usr/bin/hardlink -t /usr/share/doc
apt-get --yes purge hardlink
#!/bin/sh
set -e
chmod 00440 /etc/sudoers.d/*
#!/bin/sh
set -e
echo "removing resolv.conf symbolic link"
rm -f /etc/resolv.conf
#!/bin/sh
set -e
cat > /etc/apt/apt.conf.d/0000runtime-proxy <<EOF
// Proxy through Polipo to torify outgoing APT HTTP connections.
// This setting must be overriden at build time by live-build's
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment