1

Is there a proper way to set up a copy-on-write based build env that use your live / as base files?

view story
linux-howto

http://askubuntu.com – I'm trying to set up a build environment using chroot, but instead of downloading ubuntu base files, I want to use my live / as base files for the chroot and use c-o-w to redirect any changes made in the chroot to other folder. So I come up with these sudo mkdir /var/chroot/build/{root,cow,ubuntu} sudo mount --bind / /var/chroot/build/root sudo mount --bind /proc /var/chroot/build/root/proc sudo mount --bind /dev/pts /var/chroot/build/root/dev/pts sudo mount -t overlayfs -o upperdir=/var/chroot/build/cow,lowerdir=/var/chroot/build/root overlayfs /var/chroot/build/ubuntu sudo chroot /var/chro (HowTos)