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

the host

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
This commit is contained in:
andrea rota 2011-12-21 12:10:47 +00:00 committed by Daniel Lezcano
parent d73ef6ec75
commit aa198728a8

View File

@ -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