]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
templates: Make generated config consistent
authorStéphane Graber <stgraber@ubuntu.com>
Wed, 5 Dec 2012 21:47:18 +0000 (16:47 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 6 Dec 2012 05:02:40 +0000 (00:02 -0500)
This updates all the templates and the configuration files to consistently
use "key = value" everywhere.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
14 files changed:
config/lxc.conf.libvirt
config/lxc.conf.ubuntu
config/lxc.conf.unknown
templates/lxc-altlinux.in
templates/lxc-archlinux.in
templates/lxc-busybox.in
templates/lxc-debian.in
templates/lxc-fedora.in
templates/lxc-lenny.in
templates/lxc-opensuse.in
templates/lxc-oracle.in
templates/lxc-sshd.in
templates/lxc-ubuntu
templates/lxc-ubuntu-cloud.in

index 71286190eab6639a85452e7ea15dd5033f882b2d..6950dca9d5ff94c6f9fcff2456060d50b46f66fd 100644 (file)
@@ -1,3 +1,3 @@
-lxc.network.type=veth
-lxc.network.link=virbr0
-lxc.network.flags=up
+lxc.network.type = veth
+lxc.network.link = virbr0
+lxc.network.flags = up
index d2ac1678a505e40b3bbd2dd8edcbcc8453dc7d18..0a5ac711f1e290924c1b8a400f6af3a8e4159bf8 100644 (file)
@@ -1,3 +1,3 @@
-lxc.network.type=veth
-lxc.network.link=lxcbr0
-lxc.network.flags=up
+lxc.network.type = veth
+lxc.network.link = lxcbr0
+lxc.network.flags = up
index 16fa9d662200ce39e31a9fcabcb473a521380bf4..6c880103ff9fabe92c8a293b4339081ba0b3effa 100644 (file)
@@ -1 +1 @@
-lxc.network.type=empty
+lxc.network.type = empty
index 0f5c9010b4fb63bf2dc5d283a1f2827501697089..174af6abea405d987ba2bc0e4be3b9904c701530 100644 (file)
@@ -244,7 +244,7 @@ copy_configuration()
 lxc.utsname = $name
 lxc.tty = 4
 lxc.pts = 1024
-lxc.mount  = $config_path/fstab
+lxc.mount = $config_path/fstab
 
 # When using LXC with apparmor, uncomment the next line to run unconfined:
 #lxc.aa_profile = unconfined
@@ -461,4 +461,4 @@ if [ ! -z $clean ]; then
     exit 0
 fi
 echo "container rootfs and config created"
-echo "container is configured for lxc.network.type=veth and lxc.network.link=virbr0 (which is default if you have libvirt runnig)"
+echo "network configured as $lxc_network_type in the $lxc_network_link"
index 0c529ecbaf6846f0539ab001db1a7bc15059e4ca..5db5b85263cfa7584cffcc19a7e2d743f919aa48 100644 (file)
@@ -220,20 +220,20 @@ function copy_configuration {
     mkdir -p "${config_path}"
     grep -q "^lxc.rootfs" "${config_path}/config" 2>/dev/null || echo "lxc.rootfs=${rootfs_path}" >> "${config_path}/config"
     cat > "${config_path}/config" << EOF
-lxc.utsname=${name}
-lxc.tty=4
-lxc.pts=1024
-lxc.mount=${config_path}/fstab
+lxc.utsname = ${name}
+lxc.tty = 4
+lxc.pts = 1024
+lxc.mount = ${config_path}/fstab
 
 # When using LXC with apparmor, uncomment the next line to run unconfined:
 #lxc.aa_profile = unconfined
 
 #networking
-lxc.network.type=${lxc_network_type}
-lxc.network.flags=up
-lxc.network.link=${lxc_network_link}
-lxc.network.name=eth0
-lxc.network.mtu=1500
+lxc.network.type = ${lxc_network_type}
+lxc.network.flags = up
+lxc.network.link = ${lxc_network_link}
+lxc.network.name = eth0
+lxc.network.mtu = 1500
 #cgroups
 lxc.cgroup.devices.deny = a
 # /dev/null and zero
index 91095a391b536d12cbe089a44cc1da20f0f3f6c0..a8af4b23e0b58634fd2dbc82906a35fd342e2560 100644 (file)
@@ -211,8 +211,8 @@ EOF
 
 if [ -d "$rootfs/lib" ]; then
 cat <<EOF >> $path/config
-lxc.mount.entry=/lib $rootfs/lib none ro,bind 0 0
-lxc.mount.entry=/usr/lib $rootfs/usr/lib none ro,bind 0 0
+lxc.mount.entry = /lib $rootfs/lib none ro,bind 0 0
+lxc.mount.entry = /usr/lib $rootfs/usr/lib none ro,bind 0 0
 EOF
 fi
 
@@ -224,7 +224,7 @@ fi
 
     for dir in $libdirs; do
         if [ -d "/$dir" ] && [ -d "$rootfs/$dir" ]; then
-            echo "lxc.mount.entry=/$dir $dir none ro,bind 0 0" >> $path/config
+            echo "lxc.mount.entry = /$dir $dir none ro,bind 0 0" >> $path/config
         fi
     done
 }
index 889852f984abbe66d0e4e39242f5e98d4adcab93..56279a8b9c29667282ea318b289e31797390a94b 100644 (file)
@@ -229,8 +229,8 @@ lxc.cgroup.devices.allow = c 5:2 rwm
 lxc.cgroup.devices.allow = c 254:0 rwm
 
 # mounts point
-lxc.mount.entry=proc proc proc nodev,noexec,nosuid 0 0
-lxc.mount.entry=sysfs sys sysfs defaults  0 0
+lxc.mount.entry = proc proc proc nodev,noexec,nosuid 0 0
+lxc.mount.entry = sysfs sys sysfs defaults  0 0
 EOF
 
     if [ $? -ne 0 ]; then
index 47c703e555695a33181e34d5eb3038b5df9dae80..f93edc9b07fc8b5ffe81957b85ca079facb9d996 100644 (file)
@@ -248,7 +248,7 @@ copy_configuration()
 lxc.utsname = $name
 lxc.tty = 4
 lxc.pts = 1024
-lxc.mount  = $config_path/fstab
+lxc.mount = $config_path/fstab
 
 # When using LXC with apparmor, uncomment the next line to run unconfined:
 #lxc.aa_profile = unconfined
index 46de1eaeb0c50ca69383a619a39f63e535ced0f5..17927260117b4a012aee7fbbcec07aa768ab8fc8 100644 (file)
@@ -204,8 +204,8 @@ lxc.cgroup.devices.allow = c 5:2 rwm
 lxc.cgroup.devices.allow = c 254:0 rwm
 
 # mounts point
-lxc.mount.entry=proc proc proc nodev,noexec,nosuid 0 0
-lxc.mount.entry=sysfs sys sysfs defaults  0 0
+lxc.mount.entry = proc proc proc nodev,noexec,nosuid 0 0
+lxc.mount.entry = sysfs sys sysfs defaults  0 0
 EOF
 
     if [ $? -ne 0 ]; then
index 4f18526fd189885dc340b5a68b558f3be3578ce0..f6bc31c3c3505c656b3fc81ae5e920d20149132f 100644 (file)
@@ -260,7 +260,7 @@ lxc.utsname = $name
 
 lxc.tty = 4
 lxc.pts = 1024
-lxc.mount  = $path/fstab
+lxc.mount = $path/fstab
 
 # When using LXC with apparmor, uncomment the next line to run unconfined:
 #lxc.aa_profile = unconfined
index 94961389abac0c28758de3576e328756b5522461..914a80ea3dac27323d361d0f6de7c42e00144fe0 100644 (file)
@@ -263,7 +263,7 @@ lxc.devttydir = lxc
 lxc.tty = 4
 lxc.pts = 1024
 lxc.rootfs = $container_rootfs
-lxc.mount  = $cfg_dir/fstab
+lxc.mount = $cfg_dir/fstab
 # Networking
 EOF
 
index 7ba642d664df65ae2e24a166ea240ccf18428cbb..ba64cbf2916d43eaf340be03e25cfd777a73a061 100644 (file)
@@ -116,14 +116,14 @@ lxc.pts = 1024
 # When using LXC with apparmor, uncomment the next line to run unconfined:
 #lxc.aa_profile = unconfined
 
-lxc.mount.entry=/dev dev none ro,bind 0 0
-lxc.mount.entry=/lib lib none ro,bind 0 0
-lxc.mount.entry=/bin bin none ro,bind 0 0
-lxc.mount.entry=/usr usr none ro,bind 0 0
-lxc.mount.entry=/sbin sbin none ro,bind 0 0
-lxc.mount.entry=tmpfs var/run/sshd tmpfs mode=0644 0 0
-lxc.mount.entry=@LXCTEMPLATEDIR@/lxc-sshd sbin/init none bind 0 0
-lxc.mount.entry=proc $rootfs/proc proc nodev,noexec,nosuid 0 0
+lxc.mount.entry = /dev dev none ro,bind 0 0
+lxc.mount.entry = /lib lib none ro,bind 0 0
+lxc.mount.entry = /bin bin none ro,bind 0 0
+lxc.mount.entry = /usr usr none ro,bind 0 0
+lxc.mount.entry = /sbin sbin none ro,bind 0 0
+lxc.mount.entry = tmpfs var/run/sshd tmpfs mode=0644 0 0
+lxc.mount.entry = @LXCTEMPLATEDIR@/lxc-sshd sbin/init none bind 0 0
+lxc.mount.entry = proc $rootfs/proc proc nodev,noexec,nosuid 0 0
 EOF
 
     # if no .ipv4 section in config, then have the container run dhcp
@@ -131,7 +131,7 @@ EOF
 
     if [ "$(uname -m)" = "x86_64" ]; then
         cat <<EOF >> $path/config
-lxc.mount.entry=/lib64 lib64 none ro,bind 0 0
+lxc.mount.entry = /lib64 lib64 none ro,bind 0 0
 EOF
     fi
 }
index 0b55c03562a3bcb3a9899986c70c1a2c21ce9fc7..4ccb01512d8b0449ce9a9cf6cba58f676e07b526 100644 (file)
@@ -331,7 +331,7 @@ lxc.utsname = $name
 lxc.devttydir =$ttydir
 lxc.tty = 4
 lxc.pts = 1024
-lxc.mount  = $path/fstab
+lxc.mount = $path/fstab
 lxc.arch = $arch
 lxc.cap.drop = sys_module mac_admin mac_override
 lxc.pivotdir = lxc_putold
index e1e74315c7698d3200dee0f9d0e1369314042993..4ef5f8de501cf2bf0b96fa930c116e3c9173cac1 100644 (file)
@@ -52,7 +52,7 @@ lxc.utsname = $name
 
 lxc.tty = 4
 lxc.pts = 1024
-lxc.mount  = $path/fstab
+lxc.mount = $path/fstab
 lxc.arch = $arch
 lxc.cap.drop = sys_module mac_admin
 lxc.pivotdir = lxc_putold