I would like to introduce a little bash script called ro-chroot. you can download it here: http://vectorlinux.osuosl.org/Uelsk8s/ro-chrootIt was made to help developers in packaging,but it has many more uses.It uses aufs to overlay your / and keeps track of all changes done while its running.What this means is that you can download files delete files change files and exit the script and all your data is safely untouched, but all of the changes are neatly stored in a CHROOT-RW dir.

mount: mount point CHROOT/proc does not existmount: mount point CHROOT/dev does not existchroot: failed to run command `/bin/bash': No such file or directoryumount: CHROOT/dev: not foundumount: CHROOT/proc: not foundumount: CHROOT: not mounted

My file system is set up as ext4When I run dmesg | tail I get the following...

I did some more testing and it appears that you need to be on another partition to use / as ro so if your new install is sda1 then you must also have a working partition like sda2.running inside the new install on sda1 you would mount sda2 "mount /dev/sda2 /mnt/sda2" and then cd to sda2 "cd /mnt/sda2"then you can run the ro-chroot script as root "root:# /root/ro-chroot"

sorry for the problems, that's what happens when you don't test for every possible run scenario.

mkchroot: http://vectorlinux.osuosl.org/Uelsk8s/mkchrootmkchroot takes an install ISO as an argument and installs into a CHROOT-RW dir that it makes in the current dir you are running in. it installs all the pkgs and runs the setup scripts from the installer. this chroot is great for building pkgs in, just in case your install is heavily modified or you are running another version besides the one you want to build packages for.

ro-chroot2: http://vectorlinux.osuosl.org/Uelsk8s/ro-chroot2ro-chroot2 is the same as ro-chroot except that it uses the CHROOT-RW dir made by mkchroot as its ro dir. this is great if you want to build packages in a clean environment or if you have a tricky pkg that is installing things into /

I've made a tutorial for anyone who wants to try uelsk8s chroot jail.Great tool. Thankyou uelsk8s.Here is the youtube linkor if you wait a moment I'll have it up on the videotut link on the vl7.0 desktop as well.