mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-06-08 17:52:06 +00:00
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:
parent
0b53175846
commit
c215bff6df
@ -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
|
|||||||
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"
|
||||||
|
Loading…
Reference in New Issue
Block a user