Commit c215bff6 by Stéphane Graber

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: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 0b531758
...@@ -99,6 +99,7 @@ EOF ...@@ -99,6 +99,7 @@ EOF
cat <<EOF >> $path/fstab cat <<EOF >> $path/fstab
devtmpfs dev devtmpfs defaults 0 0 devtmpfs dev devtmpfs defaults 0 0
EOF EOF
fi
# rmdir /dev/shm for containers that have /run/shm # rmdir /dev/shm for containers that have /run/shm
# I'm afraid of doing rm -rf $rootfs/dev/shm, in case it did # I'm afraid of doing rm -rf $rootfs/dev/shm, in case it did
......
...@@ -357,6 +357,7 @@ EOF ...@@ -357,6 +357,7 @@ EOF
cat <<EOF >> $path/fstab cat <<EOF >> $path/fstab
devtmpfs dev devtmpfs defaults 0 0 devtmpfs dev devtmpfs defaults 0 0
EOF EOF
fi
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Failed to add configuration" echo "Failed to add configuration"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment