From c971eb2f31746e5e6c84c12baa4009e7b2764ba8 Mon Sep 17 00:00:00 2001 From: Alexander Hill Date: Tue, 6 May 2025 23:37:40 -0400 Subject: Built a version of cargo and rustc that won't crash Co-authored-by: Alexander Hill Co-authored-by: Nicholas McDaniel --- chroot-bootstrap.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'chroot-bootstrap.sh') diff --git a/chroot-bootstrap.sh b/chroot-bootstrap.sh index 5fe43d0..f23e0b2 100755 --- a/chroot-bootstrap.sh +++ b/chroot-bootstrap.sh @@ -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 -- cgit v1.2.3