A whole new world!~

Co-authored-by: Alexander Hill <ahill@breadpudding.dev>
Co-authored-by: Nicholas McDaniel <nickmcdaniel00@gmail.com>
This commit is contained in:
Alexander Hill
2025-04-02 19:57:21 -04:00
commit f18cf1e886
8 changed files with 909 additions and 0 deletions

22
maple-chroot.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/sh
MAPLE=$(pwd)/maple
if mount --rbind /dev $MAPLE/dev && mount --make-rslave $MAPLE/dev; then
if mount -t proc /proc $MAPLE/proc; then
if mount --rbind /sys $MAPLE/sys && mount --make-rslave $MAPLE/sys; then
if mount --rbind /tmp $MAPLE/tmp; then
if mount --bind /run $MAPLE/run; then
if mount --bind ./sources $MAPLE/maple/sources; then
chroot $MAPLE /bin/sh
umount $MAPLE/maple/sources
fi
umount $MAPLE/run
fi
umount $MAPLE/tmp
fi
umount -R $MAPLE/sys
fi
umount $MAPLE/proc
fi
umount -R $MAPLE/dev
fi