Skip to content

Commit

Permalink
init: fix missing hooks in pacman, Fix #1595 #1602 #1610 #1619
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Di Maio <[email protected]>
  • Loading branch information
89luca89 committed Dec 10, 2024
1 parent 18053c2 commit a7462f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion distrobox-init
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a7462f5

Please sign in to comment.