Initial commit
This commit is contained in:
14
buildtools/customchroot
Normal file
14
buildtools/customchroot
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/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
|
||||
|
||||
Reference in New Issue
Block a user