[buildd-tools-devel] Bug#815175: Bug#815175: sbuild-update fails to unmount schroots on failure
Ryan Kavanagh
rak at debian.org
Fri Feb 19 22:30:13 UTC 2016
Hi Josch,
On Fri, Feb 19, 2016 at 09:07:46PM +0100, Johannes Schauer wrote:
> Quoting Ryan Kavanagh (2016-02-19 18:56:32)
> > rak at zeta:~$ sbuild-update -udr source:jessie-amd64
> > E: 15binfmt: update-binfmts: unable to open /var/run/schroot/mount/jessie-snap-a6a720c2-d20d-4251-b3a5-1e043da0e1e2/bin/sh: No such file or directory
> > E: 20copyfiles: cp: cannot create regular file '/var/run/schroot/mount/jessie-snap-a6a720c2-d20d-4251-b3a5-1e043da0e1e2/etc/resolv.conf': No such file or directory
> > E: jessie-snap-a6a720c2-d20d-4251-b3a5-1e043da0e1e2: Chroot setup failed: stage=setup-start
> > Chroot setup failed
> > Error setting up source:jessie-amd64 chroot
> > Chroot setup failed at /usr/bin/sbuild-update line 170.
>
> this error looks strange.
>
> Can you tell me a way how I can reproduce the problem you have with
> sbuild-update?
The above error is a classic case of PEBKAC. I accomplished it roughly
as follows:
mkfs.ext4 /dev/wd/jessie-chroot
mkdir /tmp/jessie
mount /dev/wd/jessie-chroot /tmp/jessie
sbuild-createchroot jessie /tmp/wd-jessie-chroot http://httpredir.debian.org/debian
umount /tmp/jessie
... delete /etc/schroot/schroot.d/* and add the appropriate LVM snapshot
... config entry to /etc/schroot/schroot.conf
suild-update -udr source:jessie-amd64
which then caused a snapshot of /dev/wd/jessie-chroot to get mounted,
which was empty (I fed the wrong path to sbuild-createchroot), and so
sbuild-update obviously couldn't find bin/sh under it :)
So, I suppose this should be considered a 'wishlist' bug, where
sbuild-update should fail gracefully and umount stuff even on failure.
Best wishes,
Ryan
--
|_)|_/ Ryan Kavanagh | Debian Developer
| \| \ http://ryanak.ca/ | GPG Key 4A11C97A
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1859 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20160219/575d6c66/attachment-0001.sig>
More information about the Buildd-tools-devel
mailing list