On Sun, 2022-04-10 at 18:33 +0800, Qiyu Yan wrote: > 在 2022-04-01星期五的 11:01 +0100,Patrick O'Callaghan写道: > > I came across kexec(8) and wondered if anyone has used it in Fedora > > to > > enable rapid rebooting after a kernel update. Just curious. > Yes, I kexec every time after a kernel update, since POST will take > forever on a epyc system. > > And there is a script to load the latest kernel, you can put it > somewhere, after a kernel update, just run the script and systemctl > kexec, to direct load the newest kernel. > #!/bin/bash > > set -x > > NEWEST_KERNEL_VERSION="$( > rpm --query --queryformat='%{VERSION}-%{RELEASE}.%{ARCH}\n' kernel > \ > | sort --version-sort --reverse \ > | head --lines=1 > )" > kexec --load --reuse-cmdline \ > --initrd="/boot/initramfs-$NEWEST_KERNEL_VERSION.img" \ > "/boot/vmlinuz-$NEWEST_KERNEL_VERSION" > > Thanks for that. I'll take a look. poc _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure