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"
......
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