Bug#954290: kexec doesn't do reboots on systemd install?

2021-03-22 Thread Jerome Charaoui

severity important
thanks

Hello,

After some time trying to figure this out, I came to the conclusion that 
/sbin/reboot via kexec, which is supposed to be the default behavior of 
this package, does not work with recent versions of systemd (eg. 
bullseye). Hence, upgrading the severity of this bug report.


The cause appears to be a change in systemd itself and has been 
discussed on the GitHub issue tracker [0] since it appears to affect 
other distributions as well. There also has been some discussion about 
this problem on Debian mailing lists [1].


Currently, the only way to use kexec I could find is to load a kernel 
manually using "kexec -l ..." followed by "systemctl kexec".


In the absence of a forthcoming fix, maybe the maintainer of this 
package should consider the inclusion of an appropriate errata in the 
bullseye release notes.


Thanks.

[0] https://github.com/systemd/systemd/issues/15029
[1] 
https://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/2020-February/040573.html




Bug#954290: kexec doesn't do reboots on systemd install?

2020-05-24 Thread Vasudev Kamath
Khalid Aziz  writes:

>
> kdump relies upon kexec but it is configured separately by kdump-tools.
> kexec works just fine with systemd. It is just the wording of configure
> message in kexec-tools package that is misleading and needs fixing.

Yes that was part of my confusion too. Was wondering it still does not
work well with systemd, which lead me to this bug report.

> If you are not seeing kernel crash dump on panic, take a look at
> /etc/default/kdump-tools file and make sure it is configured
> correctly.

Sure I will have a look at that too. We normally just install
kdump-tools and be done with it. Let me check if there is anything I
need to tweak there.

Cheers,
Vasudev



Bug#954290: kexec doesn't do reboots on systemd install?

2020-05-23 Thread Khalid Aziz
On 5/22/20 11:16 PM, Vasudev Kamath wrote:
> Vasudev Kamath  writes:
> 
>> In our setup of Debian 9 we noticed many kernel panic which never crash
>> dumped so was searching if there is something wrong in our setup and
>> came across this bug. While looking at systemd I noticed there is a
>> service called systemd-kexec.service which is disabled by default. Is
>> this needs to be enabled for kexec to work correctly with systemd?
>>
>> If this service is needed may be should be enabled on installing
>> kexec-tools?
> 
> May be I misunderstood relation between kdump-tools and kexec-tools. If
> so please ignore above message :-). Was actually looking at [1] which
> gave me a feeling that something is missing in my setup and wrote above
> mail
> 
> [1] https://wiki.archlinux.org/index.php/Kdump
> 
> Cheers,
> Vasudev
> 

kdump relies upon kexec but it is configured separately by kdump-tools.
kexec works just fine with systemd. It is just the wording of configure
message in kexec-tools package that is misleading and needs fixing. If
you are not seeing kernel crash dump on panic, take a look at
/etc/default/kdump-tools file and make sure it is configured correctly.

--
Khalid



Bug#954290: kexec doesn't do reboots on systemd install?

2020-05-22 Thread Vasudev Kamath
Vasudev Kamath  writes:

> In our setup of Debian 9 we noticed many kernel panic which never crash
> dumped so was searching if there is something wrong in our setup and
> came across this bug. While looking at systemd I noticed there is a
> service called systemd-kexec.service which is disabled by default. Is
> this needs to be enabled for kexec to work correctly with systemd?
>
> If this service is needed may be should be enabled on installing
> kexec-tools?

May be I misunderstood relation between kdump-tools and kexec-tools. If
so please ignore above message :-). Was actually looking at [1] which
gave me a feeling that something is missing in my setup and wrote above
mail

[1] https://wiki.archlinux.org/index.php/Kdump

Cheers,
Vasudev



Bug#954290: kexec doesn't do reboots on systemd install?

2020-05-22 Thread Vasudev Kamath


In our setup of Debian 9 we noticed many kernel panic which never crash
dumped so was searching if there is something wrong in our setup and
came across this bug. While looking at systemd I noticed there is a
service called systemd-kexec.service which is disabled by default. Is
this needs to be enabled for kexec to work correctly with systemd?

If this service is needed may be should be enabled on installing
kexec-tools? 

Cheers,
Vasudev



Bug#954290: kexec doesn't do reboots on systemd install?

2020-03-20 Thread Khalid Aziz
On 3/19/20 1:09 PM, Brian Sammon wrote:
> Package: kexec-tools
> Version: 1:2.0.20-2
> 
> When I do "dpkg-reconfigure kexec-tools" (on armhf), it asks me "Should 
> kexec-tools handle reboots (sysvinit only)?"
> 
> This suggests to me that kexec-tools will/can not be used to do reboots on a 
> systemd install.
> 
> Is that correct?
> 
> Can systemd support be added?
> 
> A note/explanation in README.Debian would be useful if there is a disparity 
> in systemd/sysvinit with kexec.
> 

Good catch. That message is not worded very well. kexec-tools does work
with systemd now. The interaction between systemd and kexec-tools is
different from sysvinit, but with the right files in place for systemd
and kexec-tools, it does work. I will update message and README.Debian
in the next release.

--
Khalid



Bug#954290: kexec doesn't do reboots on systemd install?

2020-03-19 Thread Brian Sammon
Package: kexec-tools
Version: 1:2.0.20-2

When I do "dpkg-reconfigure kexec-tools" (on armhf), it asks me "Should 
kexec-tools handle reboots (sysvinit only)?"

This suggests to me that kexec-tools will/can not be used to do reboots on a 
systemd install.

Is that correct?

Can systemd support be added?

A note/explanation in README.Debian would be useful if there is a disparity in 
systemd/sysvinit with kexec.