Re: Does anyone use Kexec?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux