Skip to content

How to make aufs-based chroot (for KDE3 devel) #10

@midenok

Description

@midenok
  1. Install prerequisites: aufs-tools and scipts from here (get them with git clone to 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
  1. Create /opt/jail-trees, put there create-tree.sh
  2. Create /opt/jail, put there mount.sh and symlink to it umount.sh
  3. Run from inside /opt/jail-trees (as root):
./create-tree.sh kde3
rm -rf ./kde3/home
  1. Run from inside /opt/jail (as root):
./mount.sh kde3
  1. Fix any errors with mount/unmount, so the script will run smoothly without any messages. Check results with mount command.
  2. Hooray, we have working jail inside /opt/jail/kde3! Use it with chroot or more sophisticated schroot.
    For chroot run:
    chroot /opt/jail/kde3 and add into /etc/jailrc:
PS1={kde3}$PS1

then add into .bashrc:

[ -f /etc/jailrc ] && . /etc/jailrc

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions