<div dir="ltr">Hi all,<br><br>I looked at the source code for schroot, and found that a mount command was being forked/exec'd for every line in the fstab file. I was able to get ro bind mounts working with two entries in the fstab file. Examples:<br><br>/sandboxes/rev3disks/platform /home/Platform none ro,bind 0 0<br>/sandboxes/rev3disks/sdk /home/SDK none ro,bind 0 0<br><br>#The lines below are necessary to change the bind mount to readonly<br>/home/Platform /home/Platform none remount,ro,bind 0 0<br>/home/SDK /home/SDK none remount,ro,bind 0 0<br><br>The key was to make sure you specify bind even when doing the remount. Stumbled on that while reading the mount man page.<br><br>The output of schroot still warns that the dirs are rw, but a check of /proc/mounts outside of the sandbox confirms they've been properly remounted ro.<br><br>Thanks for all the great work with schroot! It solves many of my build problems!<br><br>Chris Fester<br clear="all"><div><div><div><div><div><div><div><br>-- <br>Oh, meltdown... It's one of these annoying buzzwords. We prefer to call it an unrequested fission surplus.<br>-- Mr. Burns, The Simpsons
</div></div></div></div></div></div></div></div>