Built a version of cargo and rustc that won't crash

Co-authored-by: Alexander Hill <ahill@breadpudding.dev>
Co-authored-by: Nicholas McDaniel <nickmcdaniel00@gmail.com>
This commit is contained in:
Alexander Hill
2025-05-06 23:37:40 -04:00
parent 2aeb13e7ee
commit c971eb2f31
4 changed files with 415 additions and 17 deletions

View File

@@ -16,7 +16,14 @@ if mount --rbind /dev $MAPLE/dev && mount --make-rslave $MAPLE/dev; then
if mount --bind /run $MAPLE/run; then
if [ -d $MAPLE/maple/sources ]; then
if mount --bind ./sources $MAPLE/maple/sources; then
run_chroot
if [ -d $MAPLE/maple/patches ]; then
if mount --bind ./patches $MAPLE/maple/patches; then
run_chroot
umount $MAPLE/maple/patches
fi
else
run_chroot
fi
umount $MAPLE/maple/sources
fi
else