[Lxc-users] [PATCH 4/2] lxc-ubuntu: fix thinko

Serge E. Hallyn serge at hallyn.com
Thu Jun 23 21:25:39 UTC 2011


install lxcguest when NOT trimming the container

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
---
 templates/lxc-ubuntu.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/templates/lxc-ubuntu.in b/templates/lxc-ubuntu.in
index 92fff86..60f5ae3 100644
--- a/templates/lxc-ubuntu.in
+++ b/templates/lxc-ubuntu.in
@@ -87,7 +87,7 @@ download_ubuntu()
         packages=dialog,apt,apt-utils,resolvconf,iproute,inetutils-ping,vim,isc-dhcp-client,isc-dhcp-common,ssh,lsb-release,gnupg,netbase
     fi
     # If this is natty or newer, and we weren't asked to trim the container, then add lxcguest
-    if [ $release != "lucid" -a $release != "maverick" -a $trim_container -eq 1 ]; then
+    if [ $release != "lucid" -a $release != "maverick" -a $trim_container -ne 1 ]; then
         packages=$packages,lxcguest
     fi
     echo "installing packages: $packages"
-- 
1.7.4.1





More information about the lxc-users mailing list