Commit aa198728 by andrea rota Committed by Daniel Lezcano

limit rm to rootfs, avoiding nuking of any bind mounts from

the host Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent d73ef6ec
......@@ -87,4 +87,4 @@ if [ -b $rootdev -o -h $rootdev ]; then
fi
fi
# recursively remove the container to remove old container configuration
rm -rf --preserve-root $lxc_path/$lxc_name
rm -rf --one-file-system --preserve-root $lxc_path/$lxc_name
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