On 10/5/23 3:05 PM, Alban Browaeys wrote:
Package: kexec-tools
Version: 1:2.0.25-3+b1
Severity: normal
Dear Maintainer,
When I call "reboot" or "systemctl reboot" I ends up with a kexec
reboot.
I expect a cold reboot.
What is the value for LOAD_KEXEC in /etc/default/kexec?
--
Khalid
I have enabled kexec-tools as it is a dependency of kdump-tools.
I supposed enabling a kexec kernel was a requirement to get kdump tools
to dump to /var/crash. Maybe I misunderstood.
In the journal I get after systemd telling it is rebooting:
"
oct. 05 21:59:59 cyclope systemd-logind[1954]: The system will reboot now!
(...)
oct. 05 21:59:59 cyclope systemd-logind[1954]: System is rebooting.
(...)
oct. 05 22:00:00 cyclope systemd[1]: Stopping kexec-load.service - LSB: Load
kernel image with kexec...
(...)
oct. 05 22:00:02 cyclope kexec-load[6144]: Loading new kernel image into
memory...done.
oct. 05 22:00:02 cyclope systemd[1]: kexec-load.service: Deactivated
successfully.
oct. 05 22:00:02 cyclope systemd[1]: Stopped kexec-load.service - LSB: Load
kernel image with kexec.
oct. 05 22:00:02 cyclope systemd[1]: kexec-load.service: Consumed 1.208s CPU
time.
(...)
oct. 05 22:00:02 cyclope systemd[1]: Stopping kexec.service - LSB: Execute the
kexec -e command to reboot system...
(...)
oct. 05 22:00:02 cyclope kexec[6439]: Will now restart with kexec.
"
This even though the kexec-tools Debian REAME tells:
/usr/share/doc/kexec-tools/README.Debian
"reboot" command with ystemd will by default do a cold reboot. To kexec
a new kernel with systemd, use "systemctl kexec".
I believe this is a new issue maybe from my upgrade in June of kexec-tools
from 1:2.0.20-2.1, 1:2.0.25-3+b1.
That is I did not change my kexec-tools config and I believe monthes ago
systemctl reboot gave me a cold reboot, not a kexec one.
Note that it does not means the setup was fine beforehand as I do not
have a single kdump crash file in /var/crash.
I do not know if kexec reboot was even working with the previous
version. Now it kexec reboots fine ... but even when I ask systemctl for
a default coldreboot.
I don't believe this affects unstable as kexec-tools 1:2.0.27-1 removed the
initscripts that are called by systemd at reboot.
Maybe this is expected behavior with systemd-sysv installed?
Cheers,
Alban
-- System Information:
Debian Release: trixie/sid
APT prefers testing-debug
APT policy: (500, 'testing-debug'), (500, 'stable-updates'), (500,
'stable-security'), (500, 'stable-debug'), (500, 'oldstable-debug'), (500,
'oldoldstable'), (500, 'testing'), (500, 'stable'), (90, 'unstable-debug'),
(90, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.5.0-1-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages kexec-tools depends on:
ii debconf [debconf-2.0] 1.5.82
ii dpkg 1.22.0
ii libc6 2.37-12
ii libxenmisc4.17 4.17.2-1
ii lsb-base 11.6
ii sysvinit-utils [lsb-base] 3.08-1
kexec-tools recommends no packages.
kexec-tools suggests no packages.
-- debconf information:
* kexec-tools/load_kexec: true
kexec-tools/use_grub_config: false