From 918a48fd42d8b40d21431f13a8ba61c739676b12 Mon Sep 17 00:00:00 2001 From: mayeut Date: Tue, 15 Oct 2024 12:57:56 +0200 Subject: [PATCH] fix musllinux_1_1 --- docker/build_scripts/install-runtime-packages.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docker/build_scripts/install-runtime-packages.sh b/docker/build_scripts/install-runtime-packages.sh index 0c8ecf77..1d63e64c 100755 --- a/docker/build_scripts/install-runtime-packages.sh +++ b/docker/build_scripts/install-runtime-packages.sh @@ -138,6 +138,15 @@ if [ "${BASE_POLICY}" == "manylinux" ]; then echo "/usr/local/lib" > /etc/ld.so.conf.d/00-manylinux.conf ldconfig else + if [ ! -f /etc/pam.d/chsh ]; then + cat < /etc/pam.d/chsh +#%PAM-1.0 +auth sufficient pam_rootok.so +auth sufficient pam_shells.so +account required pam_permit.so +password include base-password +EOF + fi # set the default shell to bash chsh -s /bin/bash root useradd -D -s /bin/bash