Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 25 lines (17 sloc) 0.644 kb
b1d202e @psycotica0 Initial Commit
authored
1 This is a few scripts to build a quick chroot mirror of your whole system.
2 It allows you to build up a mirror, enter into it, and then break it down.
3
4 They all need to be run as root.
5
6 So:
7
8 sudo ./build_mirror
9 This makes a file called cache.img.
10 It then mounts it to /mnt/cache and /mnt/union.
11 If cache.img exists, it mounts it.
12
13 sudo ./enter_mirror
14 This logs you in to the new image.
15
16 sudo ./breakdown_mirror
17 This unmounts all the areas.
18 It does not delete cache.img
19 You can do whatever you want with cache.img
20
21
22 Tip:
23 I tend to change .bashrc when I make a new image to put CHROOT in the PS1.
24 That way I can tell when I'm in and when I'm not.
Something went wrong with that request. Please try again.