schroot doesn't make bind mounts for a plain chroot

Bug #513803 reported by Martin Pool
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
schroot (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: schroot

schroot with the configuration quoted below doesn't seem to run its setup scripts, and therefore does not bind-mount the filesystems mentioned in /etc/schroot/mount-defaults. I can't work out why. A comment in the scripts hints they may just not be run for plain chroots, but I can't see why that is useful, and I can't see that it's documented.

[karmic-lp]
description=Karmic for Launchpad
directory=/chroot/karmic-lp
users=mbp
root-users=mbp
script-config=script-defaults

ProblemType: Bug
Architecture: i386
Date: Thu Jan 28 15:40:03 2010
DistroRelease: Ubuntu 10.04
Package: schroot 1.3.1-1
ProcEnviron:
 PATH=(custom, user)
 LANG=en_AU.UTF-8
 SHELL=/bin/zsh
ProcVersionSignature: Ubuntu 2.6.32-11.15-generic
SourcePackage: schroot
Uname: Linux 2.6.32-11-generic i686

Revision history for this message
Martin Pool (mbp) wrote :
Revision history for this message
Max Bowsher (maxb) wrote :

From the schroot.conf manpage:

   Plain and directory chroots
       Chroots of type ‘plain’ or ‘directory’ are directories accessible in the filesystem.
       The two types are equivalent except for the fact that if run-setup-scripts is set
       to ‘true’ for ‘plain’ chroots, filesystem mounting is disabled.

Therefore I believe schroot is functioning as designed.

Revision history for this message
Michael Bienia (geser) wrote :

I use schroot for my dev chroot (where I work on packages) and it bind mounts my directories as expected.
Looking at the wiki article for using schroot for a LP chroot, I guess you missed adding "type=directory" to your schroot.conf stanza (default is type=plain). And as Max wrote 'plain' schroots don't bind mount.

Revision history for this message
Martin Pool (mbp) wrote :

You're right, I didn't understand this was controlled by type=

Changed in schroot (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.