vzctl start: remove dumpfile on successful start

It has been pointed out that a successful CT start makes its dump file
obsoleted, because filesystem state has changed. Therefore, it does not
make sense to keep this dump file around, so let's remove it.

Note that this only applies to default dump file; one can still keep
dumps at alternative locations specified by --dumpfile option.

This patch also solves the problem of repeated tries to restore from
the old dump file during vzctl start (commit 2efbc36). Now the dump
file will be removed after one unsuccessful restore on vzctl start.

Reported-by: Roman Haefeli <reduzent@gmail.com>
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed