Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tails
tails
Commits
cb84fff4
Commit
cb84fff4
authored
Mar 05, 2014
by
Tails developers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make all chroot_local-hooks log something.
parent
67e6d7b2
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
28 additions
and
0 deletions
+28
-0
config/chroot_local-hooks/04-nolvm
config/chroot_local-hooks/04-nolvm
+2
-0
config/chroot_local-hooks/05-disable_swapon
config/chroot_local-hooks/05-disable_swapon
+2
-0
config/chroot_local-hooks/12-initramfs-compress
config/chroot_local-hooks/12-initramfs-compress
+2
-0
config/chroot_local-hooks/14-add_localized_iceweasel_searchplugins
...root_local-hooks/14-add_localized_iceweasel_searchplugins
+2
-0
config/chroot_local-hooks/14-generate-iceweasel-profile
config/chroot_local-hooks/14-generate-iceweasel-profile
+2
-0
config/chroot_local-hooks/15-symlink-places.sqlite
config/chroot_local-hooks/15-symlink-places.sqlite
+2
-0
config/chroot_local-hooks/16-i2p_config
config/chroot_local-hooks/16-i2p_config
+2
-0
config/chroot_local-hooks/18-fix_offline_website_css_for_yelp
...ig/chroot_local-hooks/18-fix_offline_website_css_for_yelp
+2
-0
config/chroot_local-hooks/42-remove_tsocks_binary
config/chroot_local-hooks/42-remove_tsocks_binary
+2
-0
config/chroot_local-hooks/55-create-tails-keyring
config/chroot_local-hooks/55-create-tails-keyring
+2
-0
config/chroot_local-hooks/56-disable-live-config-hooks
config/chroot_local-hooks/56-disable-live-config-hooks
+2
-0
config/chroot_local-hooks/99-dedup_usr_share_doc
config/chroot_local-hooks/99-dedup_usr_share_doc
+2
-0
config/chroot_local-hooks/99-permissions
config/chroot_local-hooks/99-permissions
+2
-0
config/chroot_local-hooks/99-zzz_runtime_apt_proxy
config/chroot_local-hooks/99-zzz_runtime_apt_proxy
+2
-0
No files found.
config/chroot_local-hooks/04-nolvm
View file @
cb84fff4
...
...
@@ -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
config/chroot_local-hooks/05-disable_swapon
View file @
cb84fff4
...
...
@@ -2,6 +2,8 @@
set
-e
echo
"Disabling swapon"
# Disable swapon to avoid initscripts to setup swap space.
# Rationale: security-in-depth model.
...
...
config/chroot_local-hooks/12-initramfs-compress
View file @
cb84fff4
...
...
@@ -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'
...
...
config/chroot_local-hooks/14-add_localized_iceweasel_searchplugins
View file @
cb84fff4
...
...
@@ -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',
...
...
config/chroot_local-hooks/14-generate-iceweasel-profile
View file @
cb84fff4
#!/bin/sh
echo
"Generating iceweasel profile"
#generate iceweasel profile at build time, so that it has a fixed name
set
-e
...
...
config/chroot_local-hooks/15-symlink-places.sqlite
View file @
cb84fff4
#!/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
...
...
config/chroot_local-hooks/16-i2p_config
View file @
cb84fff4
...
...
@@ -2,6 +2,8 @@
set
-e
echo
"Configuring I2P"
I2P
=
"/usr/share/i2p"
WRAPPER
=
"/etc/i2p/wrapper.config"
...
...
config/chroot_local-hooks/18-fix_offline_website_css_for_yelp
View file @
cb84fff4
...
...
@@ -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.
...
...
config/chroot_local-hooks/42-remove_tsocks_binary
View file @
cb84fff4
...
...
@@ -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
config/chroot_local-hooks/55-create-tails-keyring
View file @
cb84fff4
...
...
@@ -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
config/chroot_local-hooks/56-disable-live-config-hooks
View file @
cb84fff4
...
...
@@ -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
config/chroot_local-hooks/99-dedup_usr_share_doc
View file @
cb84fff4
...
...
@@ -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
config/chroot_local-hooks/99-permissions
View file @
cb84fff4
...
...
@@ -2,4 +2,6 @@
set
-e
echo
"Setting correct file permissions"
chmod
00440 /etc/sudoers.d/
*
config/chroot_local-hooks/99-zzz_runtime_apt_proxy
View file @
cb84fff4
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment