[buildd-tools-devel] Bug#675189: Bug#675189: schroot: Doesn't mount /dev, /proc, /sys, /home, etc. anymore

Roger Leigh rleigh at codelibre.net
Wed May 30 13:25:12 UTC 2012


On Wed, May 30, 2012 at 03:13:21PM +0200, Mike Hommey wrote:
> On Wed, May 30, 2012 at 02:02:08PM +0100, Roger Leigh wrote:
> > On Wed, May 30, 2012 at 02:41:09PM +0200, Mike Hommey wrote:
> > >   W: Failed to change to directory ‘/home/mh’: No such file or directory
> > >   I: The directory does not exist inside the chroot.  Use the --directory option to run the command in a different directory.
> > >   W: Falling back to directory ‘/’
> > >   (sid)$
> > 
> > Could you possibly provide the the output of 'schroot --config' and
> > 'schroot --info' for this chroot?
> > 
> > We have replaced the 'script-config' key with a new 'profile' key, but
> > this is intended to be entirely backward-compatible.  Also, since you
> > didn't AFAICS set the script-config setting, you /should/ just get
> > the same profile= and script-config settings as you had before.  These
> > should be "default" and "default/config", respectively.
> > 
> > Hopefully the --config and --info output will shed some light on what's
> > wrong here.
> 
> $ schroot --config -c sid
> # schroot configuration generated by schroot 1.5.3 on 30 May 2012
> profile=default
> 
> $ schroot --info -c sid
>   Configuration Profile  default
>   Script Configuration   default/config
>   User Modifiable Keys   
>   Root Modifiable Keys   
>   User Data              

So you have profile=default (and optionally, for backward compatibility,
script-config=default/config).  What you /are/ missing, however, is
the userdata (setup.fstab, setup.copyfiles, setup.nssdatabases, etc.)
which replace the config file.

> FWIW, when upgrading:
> Preparing to replace schroot 1.4.26-1 (using .../schroot_1.5.3-1_amd64.deb) ...
> Removing obsolete conffile /etc/schroot/buildd/config ...
> Removing obsolete conffile /etc/schroot/default/config ...
> Removing obsolete conffile /etc/schroot/desktop/config ...
> Removing obsolete conffile /etc/schroot/minimal/config ...
> Removing obsolete conffile /etc/schroot/sbuild/config ...
> Unpacking replacement schroot ...

This is intentional.  I'll need to look at why the userdata isn't
being set on your system--it certainly was for me during testing.
I'll have to see if there's some corner case which prevents it
being set.

The three settings which were in the config file are now settable
directly in the main configuration, and in addition this is now
extensible by the admin, so you can freely add additional keys
here for use in your own setup scripts, or to further customise
the existing ones.  If you had your own config files (not the
conffiles above), the script-config setting and setup scripts
will continue to allow them to be sourced.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux    http://people.debian.org/~rleigh/
 `. `'   schroot and sbuild  http://alioth.debian.org/projects/buildd-tools
   `-    GPG Public Key      F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800





More information about the Buildd-tools-devel mailing list