]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
ubuntu: Make vim part of base template
authorStéphane Graber <stgraber@ubuntu.com>
Tue, 10 Dec 2013 23:04:07 +0000 (18:04 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 10 Dec 2013 23:26:58 +0000 (18:26 -0500)
This moves vim back to the default list of packages, drops the duplicate
ssh entry which means that unless extra packages are passed through
--packages, container creation won't invoke apt-get anymore.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
templates/lxc-ubuntu.in

index d8ac22daeb8175b1125f24819f4cf61ae29b1155..b0d328f2aa4c73b91761d6fedd11ae690fac8e1d 100644 (file)
@@ -248,7 +248,7 @@ download_ubuntu()
     arch=$2
     release=$3
 
-    packages_template=${packages_template:-"ssh"}
+    packages_template=${packages_template:-"ssh vim"}
 
     # Try to guess a list of langpacks to install
     langpacks="language-pack-en"
@@ -507,7 +507,7 @@ EOF
     fi
 
     # Install Packages in container
-    if [ -n $packages ]
+    if [ -n "$packages" ]
     then
         local packages="`echo $packages | sed 's/,/ /g'`"
         echo "Installing packages: ${packages}"
@@ -631,7 +631,7 @@ fi
 debug=0
 hostarch=$arch
 flushcache=0
-packages="vim,ssh"
+packages=""
 user="ubuntu"
 password="ubuntu"
 while true