qemu-debootstrap doesn't parse --keyring correctly

Bug #684051 reported by Stefano Rivera
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qemu (Debian)
Unknown
Unknown
qemu-kvm (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: qemu-kvm

pbuilder passes arguments to qemu-debootstrap which it doesn't parse
correctly:

| # pbuilder --create --distribution sid --debootstrapopts --arch=armel --debootstrap qemu-debootstrap
|...
| I: running qemu-debootstrap
| /usr/bin/qemu-debootstrap
| I: Running command: debootstrap --arch armel --foreign --include=apt --variant=buildd --keyring /usr/share/keyrings/debian-archive-keyring.gpg sid . http://cdn.debian.net/debian
|...
| I: Running command: chroot sid /debootstrap/debootstrap --second-stage
| chroot: failed to run command `/debootstrap/debootstrap': No such file or directory
| E: qemu-debootstrap failed
| W: Aborting with an error

The bug is qemu-debootstrap can parse --keyring=foo but not --keyring foo. It
shifts all the arguments up by one, and thinks "sid" is the target, rather than
the distribution.

Patch attached.

SR

Revision history for this message
Stefano Rivera (stefanor) wrote :
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Please see bug 671126. The conclusion there was that it makes more sense for
pbuilder to send the expected arguments than for qemu-debootstrap to be changed.

Changed in qemu-kvm (Ubuntu):
status: New → Invalid
Revision history for this message
Stefano Rivera (stefanor) wrote :

And nobody forwarded that patch to Debian, grumble.

/me does something about it. Thanks.

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.