Rename to iglunix from lazybox

This commit is contained in:
aheirman 2021-02-06 13:46:14 +01:00
parent 5b7c97d944
commit 56051d2324
8 changed files with 44 additions and 41 deletions

27
chroot_iglunix Executable file
View file

@ -0,0 +1,27 @@
#!/bin/bash
cd ./root
echo "Going to chroot, woot!"
mkdir proc
mkdir sys
mkdir dev
mkdir tmp
if true
then
sudo mount --bind /tmp tmp/
sudo mount -t proc /proc proc/
sudo mount -t sysfs /sys sys/
sudo mount --rbind /dev dev/
fi
sudo chroot ./ /bin/sh
sudo umount root/tmp/
sudo umount root/proc/
sudo umount root/sys/
sudo mount --make-rprivate root/dev/
sudo umount -l root/dev/