arm cloud image contains unpackaged /usr/bin/qemu-arm-static

Bug #1052089 reported by Scott Moser on 2012-09-17
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu on EC2
High
Unassigned

Bug Description

# this just gets binfmt set up correctly to demonstrate the error.
$ sudo apt-get install qemu-user-static

$ wget http://cloud-images.ubuntu.com/quantal/20120917/quantal-server-cloudimg-armhf-root.tar.gz
$ mkdir armhf
$ sudo tar -C armhf -Sxpzf quantal-server-cloudimg-armhf-root.tar.gz

$ uname -m
x86_64

$ sudo chroot armhf /bin/sh -c 'cat /etc/cloud/build.info && dpkg --print-architecture'
build_name: server
serial: 20120917
armhf

$ sudo chroot armhf /usr/bin/dpkg -S /usr/bin/qemu-arm-static
dpkg-query: no path found matching pattern /usr/bin/qemu-arm-static

The above should not work.
It only works because of the presense of /usr/bin/qemu-arm-static.
Demonstrated here:

$ sudo mv armhf/usr/bin/qemu-arm-static armhf/usr/bin/qemu-arm-static.bad
$ sudo chroot armhf /bin/sh -c 'cat /etc/cloud/build.info && dpkg --print-architecture'
chroot: failed to run command `/bin/sh': No such file or directory

Please remove /usr/bin/qemu-arm-static from the images.

Scott Moser (smoser) on 2012-09-17
Changed in ubuntu:
assignee: nobody → Ben Howard (utlemming)
importance: Undecided → High
status: New → Triaged
tags: added: cloud-images cloud-images-build
summary: - arm cloud image contains /usr/bin/qemu-arm-static
+ arm cloud image contains unpackaged /usr/bin/qemu-arm-static
Changed in ubuntu:
status: Triaged → In Progress

Assigned to rcj4747 for completion.

Changed in ubuntu:
milestone: none → ubuntu-14.04-beta-1
assignee: Ben Howard (utlemming) → Robert Jennings (rcj4747)
Robert C Jennings (rcj) on 2014-02-11
Changed in ubuntu:
status: In Progress → Confirmed
Robert C Jennings (rcj) wrote :

Closing as invalid, after speaking with utlemming there appears to be no good way to solve this through packaging.

Changed in ubuntu:
status: Confirmed → Invalid
Scott Moser (smoser) wrote :

The bug is that the file exists!
It is copied into place by the biuld process, and is "foreign" to the installed OS.

It should be removed by the build process.

Robert C Jennings (rcj) on 2014-02-25
Changed in ubuntu:
status: Invalid → Confirmed
Robert C Jennings (rcj) on 2014-02-28
Changed in ubuntu:
milestone: ubuntu-14.04-beta-1 → ubuntu-14.04-beta-2
assignee: Robert C Jennings (rcj) → Ben Howard (utlemming)

The dailies should be fixed for armhf and arm64 images.

The fix happened in two places
1. live-build now removes the qemu-<ARCH>-static at the end of the builds
2. automated-ec2-builds now has "chroot_helper" which leverages proot to allow for chrooting with out adding qemu into the image.

Changed in ubuntu:
status: Confirmed → Fix Committed
Changed in ubuntu:
status: Fix Committed → Fix Released
affects: ubuntu → ubuntu-on-ec2
Changed in ubuntu-on-ec2:
milestone: ubuntu-14.04-beta-2 → none
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers