Skip to content

Commit 5372b03

Browse files
committed
Consolidate three single-target config hooks into one
Merge journald-improve, logind-improve and remove-community-in-pacman into biglinux-improve-compatibility-config.hook. All three fired on biglinux-improve-compatibility install/upgrade only, each spawning a separate /bin/sh + sed chain. Running them from a single Exec reduces pacman hook fork overhead on our package upgrades without changing behavior or trigger frequency. No functional change: the same idempotent sed edits apply to /etc/systemd/journald.conf, /etc/systemd/logind.conf and /etc/pacman.conf.
1 parent 69ca033 commit 5372b03

4 files changed

Lines changed: 10 additions & 30 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[Trigger]
2+
Type = Package
3+
Operation = Install
4+
Operation = Upgrade
5+
Target = biglinux-improve-compatibility
6+
7+
[Action]
8+
Description = Apply BigLinux defaults for journald, logind and pacman.conf
9+
When = PostTransaction
10+
Exec = /bin/sh -c '[ -e /etc/systemd/journald.conf ] && sed -i "s/SystemMaxUse=5M/SystemMaxUse=50M/" /etc/systemd/journald.conf; [ -e /etc/systemd/logind.conf ] && sed -i "s/^#*UserStopDelaySec\s*=.*/UserStopDelaySec=0/;s/^#*KillUserProcesses\s*=.*/KillUserProcesses=yes/" /etc/systemd/logind.conf; [ -e /etc/pacman.conf ] && sed -i "/\[community\]/{N;N;N;d;}" /etc/pacman.conf; :'

biglinux-improve-compatibility/usr/share/libalpm/hooks/journald-improve.hook

Lines changed: 0 additions & 10 deletions
This file was deleted.

biglinux-improve-compatibility/usr/share/libalpm/hooks/logind-improve.hook

Lines changed: 0 additions & 10 deletions
This file was deleted.

biglinux-improve-compatibility/usr/share/libalpm/hooks/remove-community-in-pacman.hook

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)