diff options
| author | Alexander Hill <ahill@breadpudding.dev> | 2025-04-30 22:11:23 -0400 |
|---|---|---|
| committer | Alexander Hill <ahill@breadpudding.dev> | 2025-04-30 22:11:23 -0400 |
| commit | 993bf9717a15d2c7d24c6135ac80e50cbdc8fd9c (patch) | |
| tree | bb7732ea301030c3b789d3225f14dfbc392a90e2 | |
| parent | 6f14a7077c51d9e8f3ec9ca43b383c325195792b (diff) | |
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.
| -rwxr-xr-x | build-chroot.sh | 14 |
1 files 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 |
