[Lxc-users] add ubuntu-keyring to the packagelist for oneiric containers.

Serge E. Hallyn serge.hallyn at canonical.com
Thu Jul 28 18:17:29 UTC 2011


Otherwise apt fails during and after debootstrap.

Signed-off-by: Serge Hallyn <serge.hallyn at canonical.com>

Index: lxc-0.7.4.2/templates/lxc-ubuntu.in
===================================================================
--- lxc-0.7.4.2.orig/templates/lxc-ubuntu.in	2011-07-27 16:32:44.297421437 -0500
+++ lxc-0.7.4.2/templates/lxc-ubuntu.in	2011-07-27 16:33:15.177420914 -0500
@@ -83,8 +83,10 @@
         packages=dialog,apt,apt-utils,resolvconf,iproute,inetutils-ping,vim,dhcp3-client,ssh,lsb-release,gnupg
     elif [ $release = "maverick" ]; then
         packages=dialog,apt,apt-utils,resolvconf,iproute,inetutils-ping,vim,dhcp3-client,ssh,lsb-release,gnupg,netbase
-    else
+    elif [ $release = "natty" ]; then
         packages=dialog,apt,apt-utils,resolvconf,iproute,inetutils-ping,vim,isc-dhcp-client,isc-dhcp-common,ssh,lsb-release,gnupg,netbase
+    else
+        packages=dialog,apt,apt-utils,resolvconf,iproute,inetutils-ping,vim,isc-dhcp-client,isc-dhcp-common,ssh,lsb-release,gnupg,netbase,ubuntu-keyring
     fi
     echo "installing packages: $packages"
 




More information about the lxc-users mailing list