From de4a62ed7ffadba452bc81632df91f5dae051544 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Mon, 13 Apr 2020 15:13:56 +0200 Subject: [PATCH] hooks: emit log message before running --- config/hooks/normal/0090-remove-unwanted-packages.hook.chroot | 1 + .../normal/0350-update-default-services-status.hook.chroot | 1 + .../normal/0425-update-session-manager-alternative.hook.chroot | 1 + config/hooks/normal/0450-enable-multiarch.hook.chroot | 1 + config/hooks/normal/0500-localepurge.hook.chroot | 1 + config/hooks/normal/0900-clear-apt-cache.hook.chroot | 2 ++ 6 files changed, 7 insertions(+) diff --git a/config/hooks/normal/0090-remove-unwanted-packages.hook.chroot b/config/hooks/normal/0090-remove-unwanted-packages.hook.chroot index 06c6f9d..a6a4e71 100755 --- a/config/hooks/normal/0090-remove-unwanted-packages.hook.chroot +++ b/config/hooks/normal/0090-remove-unwanted-packages.hook.chroot @@ -1,2 +1,3 @@ #!/bin/bash +echo "running [$0]" aptitude -y purge exim4-base nfs-common rpcbind \ No newline at end of file diff --git a/config/hooks/normal/0350-update-default-services-status.hook.chroot b/config/hooks/normal/0350-update-default-services-status.hook.chroot index 7e36efc..9936408 100755 --- a/config/hooks/normal/0350-update-default-services-status.hook.chroot +++ b/config/hooks/normal/0350-update-default-services-status.hook.chroot @@ -1,4 +1,5 @@ #!/bin/bash +echo "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" diff --git a/config/hooks/normal/0425-update-session-manager-alternative.hook.chroot b/config/hooks/normal/0425-update-session-manager-alternative.hook.chroot index 77b2214..7556b08 100755 --- a/config/hooks/normal/0425-update-session-manager-alternative.hook.chroot +++ b/config/hooks/normal/0425-update-session-manager-alternative.hook.chroot @@ -1,2 +1,3 @@ #!/bin/bash +echo "running [$0]" update-alternatives --set x-session-manager /usr/bin/xfce4-session \ No newline at end of file diff --git a/config/hooks/normal/0450-enable-multiarch.hook.chroot b/config/hooks/normal/0450-enable-multiarch.hook.chroot index 153cdc0..ebf4378 100755 --- a/config/hooks/normal/0450-enable-multiarch.hook.chroot +++ b/config/hooks/normal/0450-enable-multiarch.hook.chroot @@ -1,3 +1,4 @@ #!/bin/bash +echo "running [$0]" dpkg --add-architecture i386 apt update \ No newline at end of file diff --git a/config/hooks/normal/0500-localepurge.hook.chroot b/config/hooks/normal/0500-localepurge.hook.chroot index e3ca902..aed3d5b 100755 --- a/config/hooks/normal/0500-localepurge.hook.chroot +++ b/config/hooks/normal/0500-localepurge.hook.chroot @@ -1,3 +1,4 @@ #!/bin/bash +echo "running [$0]" locale-gen --keep-existing localepurge diff --git a/config/hooks/normal/0900-clear-apt-cache.hook.chroot b/config/hooks/normal/0900-clear-apt-cache.hook.chroot index 449b6c0..c64df36 100755 --- a/config/hooks/normal/0900-clear-apt-cache.hook.chroot +++ b/config/hooks/normal/0900-clear-apt-cache.hook.chroot @@ -1,4 +1,6 @@ #!/bin/sh +echo "running [$0]" + # clear APT package download cache to reduce the image size from ~100MB rm -vr /var/lib/apt/lists/