Dir cleanup.

This commit is contained in:
Andrew Schott 2024-07-02 04:10:36 -05:00
parent 281503ff2e
commit 37ae0c4645
4 changed files with 0 additions and 0 deletions

12
kexec/kexec-latest.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/bash
set -x
NEWEST_KERNEL_VERSION="$(
rpm --query --queryformat='%{VERSION}-%{RELEASE}.%{ARCH}\n' kernel \
| sort --version-sort --reverse \
| head --lines=1
)"
kexec --load --append="`cat /proc/cmdline`" \
--initrd="/boot/initramfs-$NEWEST_KERNEL_VERSION.img" \
"/boot/vmlinuz-$NEWEST_KERNEL_VERSION"