From a7462f52f875a1bd2a87efe2abbc32c13851dce2 Mon Sep 17 00:00:00 2001 From: Luca Di Maio Date: Tue, 10 Dec 2024 12:12:01 +0100 Subject: [PATCH] init: fix missing hooks in pacman, Fix #1595 #1602 #1610 #1619 Signed-off-by: Luca Di Maio --- distrobox-init | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/distrobox-init b/distrobox-init index 309a3a5ee0..b9b4343ed5 100755 --- a/distrobox-init +++ b/distrobox-init @@ -513,6 +513,8 @@ setup_deb_exceptions() # None setup_pacman_exceptions() { + setup_pkg_manager_hooks + # Workarounds for pacman. We need to exclude the paths by using a pre-hook to umount them and a # post-hook to remount them. Additionally we neutralize the systemd-post-hooks as they do not # work on a rootless container system. @@ -1238,7 +1240,7 @@ setup_pacman() pacman -S --needed --noconfirm $(pacman -Ssq | grep -E "^($(echo ${deps} | tr ' ' '|'))$") if [ ! -e "/usr/share/i18n/locales${HOST_LOCALE}" ]; then - pacman -S --noconfirm glibc + pacman -S --noconfirm glibc glibc-locales fi # Setup hooks