[buildd-tools-devel] Bug#526081: Bug#526081: Bug#526081: schroot: not enough warning for missing chroot

Roger Leigh rleigh at codelibre.net
Sat Feb 20 19:46:12 UTC 2010


On Wed, Apr 29, 2009 at 01:55:30PM +0200, Adeodato Simó wrote:
> + Roger Leigh (Wed, 29 Apr 2009 09:21:09 +0100):
> 
> > The only create_directory call is in
> > bin/schroot-mount/schroot-mount-main.cc
> > which creates mountpoints inside the chroot.  Are you mounting
> > in a directory path which has more than two levels nonexistent?
> > It might be that mkdir is failing due to create_directory not
> > behaving like "mkdir -p", in which case we should add the
> > functionality.
> 
> > Regarding errors, the useless error is coming from boost.  I'll need
> > to reproduce it and see what it's doing, and then file a bug against
> > boost if it's at fault.
> 
> I'm just using a chroot definition as follows:
> 
>     [foo]
>     type=lvm-snapshot
>     location=/nonexistant
>     device=/dev/vg/chroot
>     lvm-snapshot-options=--size 1G
> 
> And then:
> 
>     % sudo schroot -c foo-source
>     E: boost::filesystem::create_directory
>     E: foo-source: Chroot setup failed: stage=setup-start

I'm afraid I was never able to reproduce this.  Are you still
experiencing the issue with the latest (1.4.x) release of
schroot?

We call boost::filesystem::create_directories(directory)
to create the mountpoint.  This runs as root, so should never
fail unless there's something odd going on which prevents
mkdir(2) from working.


Thanks,
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20100220/962a3dfe/attachment.pgp>


More information about the Buildd-tools-devel mailing list