(no commit message)
[tails-test.git] / config / chroot_local-hooks / 52-update-rc.d
blobd27f7cbe1617ee6f08ba3ee619fe8c01a16beb34
1 #!/bin/sh
3 set -e
5 CUSTOM_INITSCRIPTS="
6 tails-detect-virtualization
7 tails-kexec
8 tails-reconfigure-kexec
9 tails-reconfigure-memlockd
10 tails-sdmem-on-media-removal
11 tails-set-wireless-devices-state
12 tor-controlport-filter
15 PATCHED_INITSCRIPTS="
16 alsa-utils
17 gdomap
18 haveged
19 hdparm
20 i2p
21 kexec
22 kexec-load
23 laptop-mode
24 memlockd
25 network-manager
26 plymouth
27 polipo
28 pulseaudio
29 resolvconf
30 saned
31 spice-vdagent
32 tor
33 ttdnsd
36 # Ensure that we are using dependency based boot
37 if ! dpkg -s insserv >/dev/null 2>&1 || [ -f /etc/init.d/.legacy-bootordering ]; then
38 echo "Dependency based boot sequencing is not configured. Aborting." >&2
39 exit 1
42 echo "Configuring boot sequence"
44 # The patches to adjust the runlevels are applied to the chroot
45 # after the packages have been installed. So we need to remove them first,
46 # to re-install them with our settings.
47 insserv -r $PATCHED_INITSCRIPTS
49 # Re-install overriden initscripts and install our custom ones.
50 insserv $PATCHED_INITSCRIPTS $CUSTOM_INITSCRIPTS