From c215bff6dfc298bdd6150e11b8c0f76c9d013a0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= Date: Wed, 24 Oct 2012 13:05:03 +0200 Subject: [PATCH] lxc-ubuntu{-cloud}: Fix missing "fi" in new devtmpfs code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The "if" statement to add devtmpfs was missing a matching "fi" causing parsing error when using the template. Signed-off-by: Stéphane Graber --- templates/lxc-ubuntu-cloud.in | 1 + templates/lxc-ubuntu.in | 1 + 2 files changed, 2 insertions(+) diff --git a/templates/lxc-ubuntu-cloud.in b/templates/lxc-ubuntu-cloud.in index 26bc53a88..25d30817f 100644 --- a/templates/lxc-ubuntu-cloud.in +++ b/templates/lxc-ubuntu-cloud.in @@ -99,6 +99,7 @@ EOF cat <> $path/fstab devtmpfs dev devtmpfs defaults 0 0 EOF + fi # rmdir /dev/shm for containers that have /run/shm # I'm afraid of doing rm -rf $rootfs/dev/shm, in case it did diff --git a/templates/lxc-ubuntu.in b/templates/lxc-ubuntu.in index af36ffaf1..04813792a 100644 --- a/templates/lxc-ubuntu.in +++ b/templates/lxc-ubuntu.in @@ -357,6 +357,7 @@ EOF cat <> $path/fstab devtmpfs dev devtmpfs defaults 0 0 EOF + fi if [ $? -ne 0 ]; then echo "Failed to add configuration"