Skip to content

Commit

Permalink
hooks: emit log message before running
Browse files Browse the repository at this point in the history
  • Loading branch information
nodiscc committed Apr 13, 2020
1 parent e3bec8c commit de4a62e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/bash
echo "running [$0]"
aptitude -y purge exim4-base nfs-common rpcbind
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/bash
echo "running [$0]"
update-alternatives --set x-session-manager /usr/bin/xfce4-session
1 change: 1 addition & 0 deletions config/hooks/normal/0450-enable-multiarch.hook.chroot
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
echo "running [$0]"
dpkg --add-architecture i386
apt update
1 change: 1 addition & 0 deletions config/hooks/normal/0500-localepurge.hook.chroot
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
echo "running [$0]"
locale-gen --keep-existing
localepurge
2 changes: 2 additions & 0 deletions config/hooks/normal/0900-clear-apt-cache.hook.chroot
Original file line number Diff line number Diff line change
@@ -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/

Expand Down

0 comments on commit de4a62e

Please sign in to comment.