schroot build environment setup how to avoid bind-mount home
The solution is to edit the schroot configuration file at /etc/schroot/default/fstab
. Just comment out the line of /home /home none rw,bind 0 0
. If you run X you also need to uncomment the line for /run
. All other configuration files are also at the same location.
I recommend a different solution (my previous answer). You can use different fstab for different jails.
You could specify filesystem table file by editing schroot conf file. For example, if you add setup.fstab=minimal/fstab
to the end of /etc/schroot/chrood.d/[your chroot's].conf
, schroot would filesystem according to /etc/schroot/minimal/fstab
.