hooks: disable USE_DPKG to allow localepurge to run, re-enable it afterwards

fix formatting of debug messages
This commit is contained in:
nodiscc
2020-04-13 16:17:22 +02:00
parent de4a62ed7f
commit b52163058d
6 changed files with 12 additions and 6 deletions

View File

@@ -1,3 +1,3 @@
#!/bin/bash
echo "running [$0]"
echo "I: running $0"
aptitude -y purge exim4-base nfs-common rpcbind

View File

@@ -1,5 +1,5 @@
#!/bin/bash
echo "running [$0]"
echo "I: running $0"
disabled_services="avahi-daemon.service openvpn.service rsync.service ssh.service nmbd.service smbd.service libvirtd.service libvirt-guests.service"
enabled_services="bumblebeed.service cups-browsed.service bluetooth.service cups.service fancontrol.service laptop-mode.service ntp.service plymouth.service preload.service smartmontools.service rsyslog.service lm-sensors.service hddtemp.service haveged.service"

View File

@@ -1,3 +1,3 @@
#!/bin/bash
echo "running [$0]"
echo "I: running $0"
update-alternatives --set x-session-manager /usr/bin/xfce4-session

View File

@@ -1,4 +1,4 @@
#!/bin/bash
echo "running [$0]"
echo "I: running $0"
dpkg --add-architecture i386
apt update

View File

@@ -1,4 +1,10 @@
#!/bin/bash
echo "running [$0]"
echo "I: running $0"
locale-gen --keep-existing
# USE_DPKG must be disabled in localepurge configuration before running manually, else it will do nothing
sed -i 's/^USE_DPKG/#USE_DPKG/' /etc/locale.nopurge
localepurge
# re-enable USE_DPKG
sed -i 's/^#USE_DPKG/USE_DPKG/' /etc/locale.nopurge

View File

@@ -1,5 +1,5 @@
#!/bin/sh
echo "running [$0]"
echo "I: running $0"
# clear APT package download cache to reduce the image size from ~100MB
rm -vr /var/lib/apt/lists/