From 993bf9717a15d2c7d24c6135ac80e50cbdc8fd9c Mon Sep 17 00:00:00 2001 From: Alexander Hill Date: Wed, 30 Apr 2025 22:11:23 -0400 Subject: Moved PAM configuration to the build section Should be easier to navigate later on so we aren't looking for the PAM config in a misc. section someplace. --- build-chroot.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/build-chroot.sh b/build-chroot.sh index 7ad14c4..27c5eac 100755 --- a/build-chroot.sh +++ b/build-chroot.sh @@ -259,6 +259,13 @@ LDFLAGS="-Wl,--undefined-version" muon setup build # the Internet to download meson's tests in our current state. ~ahill samu -C build muon -C build install +# FIXME: This is enough to get PAM authentication going, but this really should +# be reviewed before it is put anywhere important. ~ahill +echo "#%PAM-1.0" > /etc/pam.d/system-auth +echo "auth required pam_unix.so nullok" >> /etc/pam.d/system-auth +echo "account required pam_unix.so" >> /etc/pam.d/system-auth +echo "password required pam_unix.so nullok shadow" >> /etc/pam.d/system-auth +echo "session required pam_unix.so" >> /etc/pam.d/system-auth cd .. # OpenRC Build @@ -794,13 +801,6 @@ cd .. echo "root::0:0::/:/bin/zsh" > /etc/passwd echo "root:x:0:root" > /etc/group echo "maple" > /etc/hostname -# FIXME: This is enough to get PAM authentication going, but this really should -# be reviewed before it is put anywhere important. ~ahill -echo "#%PAM-1.0" > /etc/pam.d/system-auth -echo "auth required pam_unix.so nullok" >> /etc/pam.d/system-auth -echo "account required pam_unix.so" >> /etc/pam.d/system-auth -echo "password required pam_unix.so nullok shadow" >> /etc/pam.d/system-auth -echo "session required pam_unix.so" >> /etc/pam.d/system-auth echo "NAME=Maple Linux" > /etc/os-release echo "VERSION=2025" >> /etc/os-release echo "ID=maple" >> /etc/os-release -- cgit v1.2.3