Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.
/ auto-kexec Public archive

Automatically Kexec into latest Linux kernel version.

License

Notifications You must be signed in to change notification settings

DrMattChristian/auto-kexec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

auto-kexec

Automatically Kexec into latest Linux kernel version.

  • Requires that the user executing auto-kexec is able to run kexec commands without a password for automation.

Setup in sudo via NOPASSWD tag for the user.

Example sudoers file, change USER to the correct user running auto-kexec:

# Allow _USER_ to run systemctl kexec and kexec without a password
_USER_ ALL = NOPASSWD: /usr/bin/systemctl kexec
_USER_ ALL = NOPASSWD: /usr/sbin/kexec

  • Setup auto-kexec via crontab as appropriate for your situation and downtime windows.

Example cron job, requires that the auto-kexec command can be found in the user's $PATH var:

# Auto Kexec into latest kernel version at 2:02 AM every Sunday.
2 2 * * 0 auto-kexec

  • Only actively used and tested on OL and RHEL Linux RPM-based distributions so far.

Other Linux distributions will require changes. Pull requests are welcome and encouraged.

About

Automatically Kexec into latest Linux kernel version.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages