Dir cleanup.
This commit is contained in:
parent
82390cfb5d
commit
281503ff2e
4 changed files with 0 additions and 0 deletions
12
kexec_related/kexec-latest.sh
Executable file
12
kexec_related/kexec-latest.sh
Executable 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"
|
Loading…
Add table
Add a link
Reference in a new issue