-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
- Install prerequisites:
aufs-toolsand scipts from here (get them withgit cloneto correctly import symlink)
To check, if aufs is supported by your kernel use these commands:
root:~# modprobe aufs
root:~# lsmod|grep aufs
aufs 182094 0
- Create
/opt/jail-trees, put therecreate-tree.sh - Create
/opt/jail, put theremount.shand symlink to itumount.sh - Run from inside
/opt/jail-trees(as root):
./create-tree.sh kde3
rm -rf ./kde3/home
- Run from inside
/opt/jail(as root):
./mount.sh kde3
- Fix any errors with mount/unmount, so the script will run smoothly without any messages. Check results with
mountcommand. - Hooray, we have working jail inside
/opt/jail/kde3! Use it withchrootor more sophisticatedschroot.
Forchrootrun:
chroot /opt/jail/kde3and add into/etc/jailrc:
PS1={kde3}$PS1
then add into .bashrc:
[ -f /etc/jailrc ] && . /etc/jailrc
Reactions are currently unavailable