@@ -821,9 +821,6 @@ setup_apt()
821
821
# shellcheck disable=SC2086,2046
822
822
apt-get install -y $( apt-cache show ${deps} 2> /dev/null | grep " Package:" | sort -u | cut -d' ' -f2-)
823
823
824
- # Setup hooks
825
- setup_deb_exceptions
826
-
827
824
# In case the locale is not available, install it
828
825
# will ensure we don't fallback to C.UTF-8
829
826
if [ -e /etc/locale.gen ] && {
@@ -862,8 +859,6 @@ setup_apt()
862
859
# None
863
860
setup_dnf ()
864
861
{
865
- setup_rpm_exceptions
866
-
867
862
manager=$1
868
863
869
864
# If we need to upgrade, do it and exit, no further action required.
@@ -1060,8 +1055,6 @@ EOF
1060
1055
# None
1061
1056
setup_microdnf ()
1062
1057
{
1063
- setup_rpm_exceptions
1064
-
1065
1058
# If we need to upgrade, do it and exit, no further action required.
1066
1059
if [ " ${upgrade} " -ne 0 ]; then
1067
1060
microdnf upgrade -y
@@ -1243,9 +1236,6 @@ setup_pacman()
1243
1236
pacman -S --noconfirm glibc glibc-locales
1244
1237
fi
1245
1238
1246
- # Setup hooks
1247
- setup_pacman_exceptions
1248
-
1249
1239
# Ensure we have tzdata installed and populated, sometimes container
1250
1240
# images blank the zoneinfo directory, so we reinstall the package to
1251
1241
# ensure population
@@ -1425,8 +1415,6 @@ setup_swupd()
1425
1415
# None
1426
1416
setup_xbps ()
1427
1417
{
1428
- setup_xbps_exceptions
1429
-
1430
1418
# If we need to upgrade, do it and exit, no further action required.
1431
1419
if [ " ${upgrade} " -ne 0 ]; then
1432
1420
xbps-install -Syu
@@ -1522,8 +1510,6 @@ setup_xbps()
1522
1510
# None
1523
1511
setup_zypper ()
1524
1512
{
1525
- setup_rpm_exceptions
1526
-
1527
1513
# If we need to upgrade, do it and exit, no further action required.
1528
1514
if [ " ${upgrade} " -ne 0 ]; then
1529
1515
zypper dup -y
@@ -1662,6 +1648,23 @@ done
1662
1648
# Ensure we have the least minimal path of standard Linux File System set
1663
1649
PATH=" ${PATH} :/bin:/sbin:/usr/bin:/usr/sbin"
1664
1650
1651
+ # Setup pkg manager exceptions and excludes
1652
+ if command -v apt-get; then
1653
+ setup_deb_exceptions
1654
+ elif command -v pacman; then
1655
+ setup_pacman_exceptions
1656
+ elif command -v xbps-install; then
1657
+ setup_xbps_exceptions
1658
+ elif command -v zypper; then
1659
+ setup_rpm_exceptions
1660
+ elif command -v dnf; then
1661
+ setup_rpm_exceptions
1662
+ elif command -v microdnf; then
1663
+ setup_rpm_exceptions
1664
+ elif command -v yum; then
1665
+ setup_rpm_exceptions
1666
+ fi
1667
+
1665
1668
# Check if dependencies are met for the script to run.
1666
1669
if [ " ${upgrade} " -ne 0 ] ||
1667
1670
[ " ${missing_packages} " -ne 0 ] ||
0 commit comments