summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Hill <ahill@breadpudding.dev>2025-04-30 22:11:23 -0400
committerAlexander Hill <ahill@breadpudding.dev>2025-04-30 22:11:23 -0400
commit993bf9717a15d2c7d24c6135ac80e50cbdc8fd9c (patch)
treebb7732ea301030c3b789d3225f14dfbc392a90e2
parent6f14a7077c51d9e8f3ec9ca43b383c325195792b (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-xbuild-chroot.sh14
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