dentproject / dentOS

dentOS SwitchDev based NOS
Other
200 stars 58 forks source link

Install `kexec-tools` by default #229

Open paulmenzel opened 1 year ago

paulmenzel commented 1 year ago

The Linux kernel is built with kexec support:

root@ec-as5114-48x-03:~# more /etc/issue
DENT OS DENTOS-dentos, 2021-04-08.17:00-da2abb3

root@ec-as5114-48x-03:~# zgrep -i kexec /proc/config.gz
CONFIG_KEXEC=y
# CONFIG_KEXEC_FILE is not set
CONFIG_KEXEC_CORE=y

root@ec-as5114-48x-03:~# dpkg -l kexec-tools
dpkg-query: no packages found matching kexec-tools
root@ec-as5114-48x-03:~# dpkg -S kexec
systemd: /usr/share/man/man8/systemd-kexec.service.8.gz
systemd: /lib/systemd/system/kexec.target
systemd: /lib/systemd/system/systemd-kexec.service

root@ec-as5114-48x-03:~# more /lib/systemd/system/systemd-kexec.service
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

[Unit]
Description=Reboot via kexec
Documentation=man:systemd-halt.service(8)
DefaultDependencies=no
Requires=shutdown.target umount.target final.target
After=shutdown.target umount.target final.target

[Service]
Type=oneshot
ExecStart=/bin/systemctl --force kexec
root@ec-as5114-48x-03:~# systemctl --force kexec
root@ec-as5114-48x-03:~# Connection to ec-as5114-48x-03 closed by remote host.
Connection to ec-as5114-48x-03 closed.

I believe, it did a normal reboot though. Unfortunately the needed logs are not there to verify.

Jun 23 12:15:01 ec-as5114-48x-03 CRON[7246]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Jun 23 12:16:33 ec-as5114-48x-03 systemd[1]: Shutting down.
Jun 23 12:16:33 ec-as5114-48x-03 kernel: [3290079.869562] printk: systemd-shutdow: 45 output lines suppressed due to ratelimiting
Jun 23 12:17:35 ec-as5114-48x-03 systemd-modules-load[560]: Module 'cls_basic' is builtin

So, it’d be great to have kexec-tools installed.

taraschornyiplv commented 1 year ago

can you please try to install it manually

apt-get update
apt-get install kexec-tools