[Bug 671126] Re: --keyring argument breaks qemu-debootstrap

Alex Chiang achiang at canonical.com
Mon Nov 8 15:55:19 UTC 2010


Clint, I agree that this isn't really a problem with
qemu-debootstrap. There is no sane way for qemu-debootstrap to
deal with all the possible debootstrap arguments unless you
completely replicate debootstrap command line parsing in the
wrapper, which doesn't make sense.

I agree that this bug should be Invalid in qemu-kvm.

-- 
--keyring argument breaks qemu-debootstrap
https://bugs.launchpad.net/bugs/671126
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is a direct subscriber.

Status in “pbuilder” package in Ubuntu: New
Status in “qemu-kvm” package in Ubuntu: New

Bug description:
Binary package hint: pbuilder

The file /usr/share/pbuilder/pbuilderrc defines:

# Set the debootstrap variant to 'buildd' type.
DEBOOTSTRAPOPTS=(
    '--variant=buildd'
    '--keyring' '/usr/share/keyrings/ubuntu-archive-keyring.gpg'
    )

When we create an armel chroot using pbuilder create, we call build-arm-chroot / qemu-debootstrap. The DEBOOTSTRAPOPTS arg is passed, and it turns out that qemu-debootstrap has trouble parsing the command line arguments if there is a space between the option and the value. This in turn causes the chroot creation to fail later, as we attempt to run debootstrap in the chroot:

http://pastebin.ubuntu.com/525893/

Arguably, the command line parsing of qemu-debootstrap should be fixed, but there's nothing wrong or hacky about using the --option=value style of passing arguments to debootstrap. debootstrap itself can handle both styles.





More information about the Ubuntu-sponsors mailing list