Commit cb84fff4 authored by Tails developers's avatar Tails developers

Make all chroot_local-hooks log something.

parent 67e6d7b2
......@@ -2,5 +2,7 @@
set -e
echo "Disabling scanning of LVM devices at boot time"
# scanning for lvm devives takes time on boot
find /etc/rcS.d -name "S*lvm2" | xargs rm -f
......@@ -2,6 +2,8 @@
set -e
echo "Disabling swapon"
# Disable swapon to avoid initscripts to setup swap space.
# Rationale: security-in-depth model.
......
......@@ -2,6 +2,8 @@
set -e
echo "Configuring compression of the initramfs"
# Compress the initramfs using a more size-wise efficient algorithm.
OPTS_FILE='/etc/initramfs-tools/initramfs.conf'
......
......@@ -2,6 +2,8 @@
set -e
echo "Setting up localized iceweasel search plugins"
# Link localized Tails searchplugins to the proper localization directories:
# e.g. files in '/usr/share/amnesia/iceweasel/searchplugins/locale/es' will be
# linked in '/etc/iceweasel/searchplugins/locale/es-AR',
......
#!/bin/sh
echo "Generating iceweasel profile"
#generate iceweasel profile at build time, so that it has a fixed name
set -e
......
#!/bin/sh
echo "Creating symbolic link for potentially persistent iceweasel bookmarks"
#create a symlink to places.sqlite in iceweasel profile
#from a dedicated "bookmarks" directory, so that
#it can be easily made persistent
......
......@@ -2,6 +2,8 @@
set -e
echo "Configuring I2P"
I2P="/usr/share/i2p"
WRAPPER="/etc/i2p/wrapper.config"
......
......@@ -2,6 +2,8 @@
set -e
echo "Tweaking the offline website's CSS"
# Yelp becomes awfully slow when 'box-shadow' properties are used.
# So let's just remove the bling-bling to get a better offline browsing
# experience.
......
......@@ -2,6 +2,8 @@
set -e
echo "Removing tsocks"
# Move any /usr/bin/tsocks installed by any package out of the way,
# now (--rename) as well for any future one (hint: apt-get upgrade...).
dpkg-divert --rename --add /usr/bin/tsocks
......@@ -2,5 +2,7 @@
set -e
echo "Creating system-wide Tails GnuPG keyring"
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
......@@ -2,6 +2,8 @@
set -e
echo "Disabling some live-config hooks"
# workaround live-config bug (LIVE_NOCONFIGS is not taken into account)
touch /var/lib/live/config/policykit
touch /var/lib/live/config/sudo
......@@ -2,5 +2,7 @@
set -e
echo "Deduplicating files in /usr/share/doc"
/usr/bin/hardlink -t /usr/share/doc
apt-get --yes purge hardlink
......@@ -2,4 +2,6 @@
set -e
echo "Setting correct file permissions"
chmod 00440 /etc/sudoers.d/*
......@@ -2,6 +2,8 @@
set -e
echo "Configuring the runtime APT proxy"
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