From 6211efeb184af4758ab178bfca0127164919a4f7 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 25 Aug 2019 02:54:23 -0400 Subject: [PATCH] images/archlinux: do not run unneeded pacman hooks The hook installed by the kernel for the purpose of running mkinitcpio is not needed during CI runs. The package itself is in IgnorePkg to prevent useless updates, however, currently, it is triggered regardless by updates which distribute files in /usr/lib/initcpio. For example, systemd. Mask the hook file so that it does not get run under any circumstances. --- images/archlinux/genimg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/images/archlinux/genimg b/images/archlinux/genimg index 05bc4df..7c8dc2b 100755 --- a/images/archlinux/genimg +++ b/images/archlinux/genimg @@ -54,6 +54,9 @@ Server = http://lug.mtu.edu/archlinux/\$repo/os/\$arch Server = http://mirrors.kernel.org/archlinux/\$repo/os/\$arch EOF +mkdir -p $root/etc/pacman.d/hooks/ +ln -s /dev/null $root/etc/pacman.d/hooks/90-linux.hook + sed -i 's/#en_US.UTF-8/en_US.UTF-8/' $root/etc/locale.gen run_root locale-gen -- 2.38.5