Otherwise apt fails during and after debootstrap.

Signed-off-by: Serge Hallyn <serge.hal...@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"
 

------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to