[systemd-devel] [PATCH] shutdown: do reboot() for openvz container

Kir Kolyshkin kir at openvz.org
Wed Sep 12 03:47:48 PDT 2012


On 09/11/2012 05:24 AM, Lennart Poettering wrote:
> On Fri, 24.08.12 16:22, Kir Kolyshkin (kir at openvz.org) wrote:
>
>> Proper handling of reboot() syscall issued from the inside of a container
>> was always supported by OpenVZ kernels. More to say, OpenVZ relies on the fact
>> that container calls reboot in order to distinguish between shutdown and
>> reboot-- in the latter case container is being restarted.
>>
>> This patch brings the reboot() back for OpenVZ container.
> Turns out the normal Linux containers understand reboot() just fine
> too.

Please note though that the problem with reboot() wrt upstream containers
was really nasty -- calling reboot inside container resulted in 
rebooting the
whole system, not just the container.

>   I have now reworked the code to handle this properly, without any
> special casing of any implementation. This should fix your issue.

Thanks!

Can I hope that this will be backported to Fedora 17, in this way or 
another?

>
> Thanks for pointing this out!
>
> Lennart
>




More information about the systemd-devel mailing list