Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (17 sloc) 644 Bytes
This is a few scripts to build a quick chroot mirror of your whole system.
It allows you to build up a mirror, enter into it, and then break it down.
They all need to be run as root.
sudo ./build_mirror
This makes a file called cache.img.
It then mounts it to /mnt/cache and /mnt/union.
If cache.img exists, it mounts it.
sudo ./enter_mirror
This logs you in to the new image.
sudo ./breakdown_mirror
This unmounts all the areas.
It does not delete cache.img
You can do whatever you want with cache.img
I tend to change .bashrc when I make a new image to put CHROOT in the PS1.
That way I can tell when I'm in and when I'm not.
Jump to Line
Something went wrong with that request. Please try again.