On Fri, Nov 11, 2011 at 06:17:18PM +0000, Wookey wrote: > Package:schroot > Version:1.4.19 > Subject:schroot doesn't mount /home submounts into the chroot > > Is there a good reason not to make rbind the default for /home in the > same way that it now is for /proc and /sys? Then users would get the > full 'schroot experience' where their $HOME is just the same insde the > chroot as outside.
We found recently that autofs does not play nicely with rbind, which led to complete removal of rbind from the profile fstabs in etc/profile-templates in the source. We now explicitly list each bind mount. I wasn't happy with doing this, especially since it's most likely a kernel bug. You actually end up with unmountable mounts, and need to reboot the entire system after running schroot since it's not possible to umount. We noticed this was occuring with rbind of /dev when using systemd, since systemd creates a number of autofs mounts under /dev. However, the problem affects all autofs mounts, not only those created by systemd. We can't be sure that the host isn't using autofs, hence we chose to go with the safe approach of not using rbind, and avoid the need to reboot the system to recover in such cases. Were the bug with binding of autofs mounts to be fixed, we would then certainly reconsider using rbind again. I'm not sufficiently familiar with the kernel to look at fixing it myself. Regards, Roger -- .''`. Roger Leigh : :' : Debian GNU/Linux http://people.debian.org/~rleigh/ `. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/ `- GPG Public Key: 0x25BFB848 Please GPG sign your mail. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org