From 86df95db830b335a4520392c058ce7ab90d614b9 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Fri, 17 Oct 2025 11:52:44 +0200 Subject: [PATCH] overlay coreos/config: Add config overrides for sys-libs/pam Signed-off-by: Krzesimir Nowak --- .../coreos/config/env/sys-libs/pam | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-libs/pam diff --git a/sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-libs/pam b/sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-libs/pam new file mode 100644 index 0000000000..83d7f0bf60 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-libs/pam @@ -0,0 +1,16 @@ +flatcar_pam_meson_args_array=( + '-Dvendordir=/usr/lib/pam' +) +export MYMESONARGS=${flatcar_pam_meson_args_array[*]@Q} +unset 'flatcar_pam_meson_args_array' + +cros_post_src_install_stuff_in_etc() { + # Keep empty pam.d and security directories in /etc. In theory we + # could omit creating them, but 1. some kola tests rely on them to + # exist and 2. empty directories are probably less confusing to + # users then no directories at all. For the latter reason, create + # also the symlink to the environment file. + keepdir /etc/pam.d + keepdir /etc/security + dosym /usr/lib/pam/environment /etc/environment +}