[Bug 1017862] Re: Migrate to dpkg --add-architecture to track foreign architecture in template lxc-ubuntu

Stéphane Graber stgraber at stgraber.org
Thu Jul 5 17:46:13 UTC 2012


** Changed in: lxc (Ubuntu Precise)
     Assignee: (unassigned) => Stéphane Graber (stgraber)

** Changed in: lxc (Ubuntu Precise)
       Status: New => In Progress

** Description changed:

  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-architecture commands to  track supported architectures.
  
  The configauration file /etc/dpkg/dpkg.cfg.d/lxc-multiarch shouldn't be
  use anymore and replaced by dpkg --add-architecture $hostarch
  
  ProblemType: Bug
  DistroRelease: Ubuntu 12.10
  Package: lxc 0.8.0~rc1-4ubuntu16
  ProcVersionSignature: Ubuntu 3.5.0-1.1-generic 3.5.0-rc3
  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
+  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.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1017862

Title:
  Migrate to dpkg --add-architecture to track foreign architecture in
  template lxc-ubuntu

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1017862/+subscriptions



More information about the Ubuntu-server-bugs mailing list