lxc-ubuntu{-cloud}: Fix missing "fi" in new devtmpfs code

The "if" statement to add devtmpfs was missing a matching "fi" causing parsing
error when using the template.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
Stéphane Graber 2012-10-24 13:05:03 +02:00
parent 0b53175846
commit c215bff6df
2 changed files with 2 additions and 0 deletions

View File

@ -99,6 +99,7 @@ EOF
cat <<EOF >> $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

View File

@ -357,6 +357,7 @@ EOF
cat <<EOF >> $path/fstab
devtmpfs dev devtmpfs defaults 0 0
EOF
fi
if [ $? -ne 0 ]; then
echo "Failed to add configuration"