#!/bin/bash # customchroot - Modify a stock SystemRescueCD # Set up the chroot environment for vfs in proc dev sys; do mkdir -p /mnt/custom/customcd/files/$vfs mount -o bind /$vfs /mnt/custom/customcd/files/$vfs done echo "Entering chroot environment. Type exit to leave." chroot /mnt/custom/customcd/files /bin/bash for vfs in proc dev sys; do umount /mnt/custom/customcd/files/$vfs done