summaryrefslogtreecommitdiff
path: root/build-chroot.sh
diff options
context:
space:
mode:
authorAlexander Hill <ahill@breadpudding.dev>2025-05-05 06:56:09 -0400
committerAlexander Hill <ahill@breadpudding.dev>2025-05-05 06:56:09 -0400
commit2aeb13e7ee3f70e85f85bae9e77c2d3e1a10f94a (patch)
tree822ea1329a85e79b0da07ecf9d31300467c805f3 /build-chroot.sh
parentd7b549dc9a8ca2132638562c420b0079caa93a6d (diff)
Added /etc/pam.d, fixed rustc, and updated Linux
Diffstat (limited to 'build-chroot.sh')
-rwxr-xr-xbuild-chroot.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/build-chroot.sh b/build-chroot.sh
index 328bb4a..8d401fa 100755
--- a/build-chroot.sh
+++ b/build-chroot.sh
@@ -261,6 +261,7 @@ 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
+mkdir -p /etc/pam.d
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
@@ -795,7 +796,7 @@ export MRUSTC_TARGET_VER=$(echo $RUST_VERSION | sed "s/\.[^.]*$//")
# later on. ~ahill
MRUSTC_STDLIB=$(pwd)/rustc-$RUST_VERSION-src/mrustc-stdlib
mkdir -p $MRUSTC_STDLIB
-echo "#\![no_core]" > $MRUSTC_STDLIB/lib.rs
+echo "#![no_core]" > $MRUSTC_STDLIB/lib.rs
echo "[package]" > $MRUSTC_STDLIB/Cargo.toml
echo "name = \"mrustc_standard_library\"" >> $MRUSTC_STDLIB/Cargo.toml
echo "version = \"0.0.0\"" >> $MRUSTC_STDLIB/Cargo.toml