vzctl restore: don't run action scripts
I am positively unsure why this bug went unnoticed for so many years.
We should not run $VEID.start action script when we are doing restore
rather than start.
It's pretty harmless, aside from the fact that apparently
vps_exec_script() closes all fds so later kernel checkpointing
complains like this:
# vzctl restore 201
Restoring container ...
Starting container ...
Container is mounted
undump...
Setting CPU units: 1000
Container start failed (try to check kernel messages, e.g. "dmesg |
tail")
Stopping container ...
Error: undump failed: Operation canceled
Restoring failed:
Error: CPT: lock fd is closed incorrectly: -125
And from dmesg:
[457635.365384] CPT ERR: ffff88003e23d000,201 :CPT: lock fd is closed
incorrectly: -125
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed