]> git.proxmox.com Git - mirror_lxc.git/commitdiff
lxc-create: Improve the layout of the config
authorStéphane Graber <stgraber@ubuntu.com>
Sat, 9 Feb 2013 19:52:12 +0000 (14:52 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 11 Feb 2013 04:17:11 +0000 (23:17 -0500)
This simply adds an extra blank line between the original lxc config
and the template generated options.

In typical use cases, this means that we'll now get the header, then
a blank line, then default.conf content, then a blank line and finally
the template generated config.

The wording of the header is also changed slightly so that it fits in
the usual 80 columns.

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

index 18f3d11bdcd36e6aef1c17bb328b5afef4d70e64..26ca5800d2f2d653ecd47ade8ed9df6361b7016f 100644 (file)
@@ -300,11 +300,12 @@ if [ ! -z "$lxc_template" ]; then
     if [ -n "$*" ]; then
         echo "# Parameters passed to the template: $*" >> $lxc_path/$lxc_name/config
     fi
-    echo "# Checksum of the template script (SHA-1): $sum" >> $lxc_path/$lxc_name/config
+    echo "# Template script checksum (SHA-1): $sum" >> $lxc_path/$lxc_name/config
     echo "" >> $lxc_path/$lxc_name/config
 fi
 
 cat $lxc_config >> $lxc_path/$lxc_name/config
+echo "" >> $lxc_path/$lxc_name/config
 
 if [ -n "$custom_rootfs" ]; then
     if grep -q "lxc.rootfs" $lxc_path/$lxc_name/config ; then