Migrate to dpkg --add-architecture to track foreign architecture in template lxc-ubuntu
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
Undecided
|
Stéphane Graber | ||
Precise |
Fix Released
|
High
|
Stéphane Graber | ||
Quantal |
Fix Released
|
Undecided
|
Stéphane Graber |
Bug Description
The template lxc-ubuntu uses a dpkg configuration file to enable a foreign architecture when qemu-*-static is installed.
Starting from 1.16.2 dpkg added new dpkg --add-architecture and --remove-
The configauration file /etc/dpkg/
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: lxc 0.8.0~rc1-4ubuntu16
ProcVersionSign
Uname: Linux 3.5.0-1-generic x86_64
ApportVersion: 2.2.5-0ubuntu1
Architecture: amd64
Date: Tue Jun 26 10:41:27 2012
ProcEnviron:
TERM=xterm
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: lxc
UpgradeStatus: Upgraded to quantal on 2012-01-31 (146 days ago)
lxcsyslog:
[rational]
Starting with quantal, setting up multiarch needs to be done using dpkg --add-architecture instead of writing configuration files in /etc/dpkg/.
The current lxc ubuntu template in 12.04 supports quantal but won't be able to build an armhf container unless this change is applied.
[test case]
1) lxc-create -t ubuntu -n p1 -- -r quantal -a armhf
1) should succeed, prior to that fix, it'd fail with dpkg errors.
[regression potential]
The area of the code being touched is specific to building containers of a foreign architecture, so the worst that can happen is breakage for anyone building arm/powerpc containers on x86. The change checks the dpkg version of the container, so in theory, there's no risk of change for containers < quantal.
tags: | added: rls-q-incoming |
Changed in lxc (Ubuntu Quantal): | |
status: | Confirmed → Fix Committed |
Changed in lxc (Ubuntu Precise): | |
assignee: | nobody → Stéphane Graber (stgraber) |
status: | New → In Progress |
description: | updated |
Changed in lxc (Ubuntu Precise): | |
importance: | Undecided → High |
Confirmed, template should be upgraded