systemd needs this file to be there because one of its configuration file
in pam.d, systemd-user, requires it. Otherwise, we would have errors like
below.
systemd: PAM _pam_load_conf_file: unable to open /etc/pam.d/system-auth
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
--- /dev/null
+# This file comes from systemd.
+
+auth sufficient pam_unix.so nullok try_first_pass
+
+account required pam_nologin.so
+account sufficient pam_unix.so
+
+password sufficient pam_unix.so nullok sha512 shadow try_first_pass try_authtok
+
+-session optional pam_loginuid.so
+-session optional pam_systemd.so
+session sufficient pam_unix.so
file://pam.d/common-session \
file://pam.d/common-session-noninteractive \
file://pam.d/other \
+ ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'file://pam.d/system-auth', '', d)} \
file://libpam-xtests.patch \
file://destdirfix.patch \
file://fixsepbuild.patch \