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/bash
set -e
# Including common functions
. "${LB_BASE:-/usr/share/live/build}"/scripts/build.sh
......
#! /bin/sh
set -e
echo "
iface lo inet loopback" >>/etc/network/interfaces
#!/bin/sh
set -e
# scanning for lvm devives takes time on boot
find /etc/rcS.d -name "S*lvm2" | xargs rm -f
#!/bin/sh
set -e
# Disable swapon to avoid initscripts to setup swap space.
# Rationale: security-in-depth model.
set -e
SWAPON=/sbin/swapon
# Move any /sbin/swapon installed by any package out of the way,
......
#!/bin/sh
set -e
# Create the clear user.
#
# We run unsafe-browser under this user, so that we can whitelist its
......
#!/bin/sh
set -e
# Create the htp user.
#
# We run htpdate as this user, so that we can whitelist its
......
#!/bin/sh
set -e
# Create the tails-iuk-get-target-file user.
#
# The tails-iuk-get-target-file program may be run as this user.
......
#!/bin/sh
set -e
# Create the tails-install-iuk user.
#
# The tails-install-iuk program may be run as this user,
......
#!/bin/sh
set -e
# Remove pdnsd's resolvconf hook.
echo "removing pdnsd resolvconf hook"
......
#!/bin/sh
set -e
# Remove pidgin's (libpurple's) MSN support, that is affected by
# security issues far too often.
......
#!/bin/sh
set -e
echo "installing backported Xorg"
apt-get --yes install -t squeeze-backports \
......
#!/bin/sh
set -e
echo "Installing Iceweasel localization packages"
apt-get install --yes -t squeeze-backports iceweasel-l10n-all
#!/bin/sh
set -e
rm -f /usr/share/initramfs-tools/scripts/live-bottom/22sslcert
rm -f /usr/share/initramfs-tools/scripts/live-bottom/33enable_apport_crashes
rm -f /usr/share/initramfs-tools/scripts/live-bottom/34disable_kde_services
......
#!/bin/sh
set -e
# Compress the initramfs using a more size-wise efficient algorithm.
OPTS_FILE='/etc/initramfs-tools/initramfs.conf'
......
#!/bin/sh
set -e
# Remove unwanted iceweasel search plugins.
echo "removing unwanted iceweasel search plugins"
......
#!/bin/sh
set -e
# Build binary sqlite iceweasel files from plain text SQL files.
echo "building iceweasel sqlite files"
......
#!/bin/sh
set -e
if [ ! -d /etc/X11 ]; then
mkdir /etc/X11
chmod 755 /etc/X11
......
#!/bin/sh
set -e
# This must be set in order for the i2p init script to work
sed -ie 's/^RUN_DAEMON=.*$/RUN_DAEMON="true"/' /etc/default/i2p
#!/bin/sh
set -e
rm -f /etc/resolvconf/resolv.conf.d/original
#!/bin/sh
set -e
# Load GConf settings.
echo "Loading GConf settings"
......
#!/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