Last active
September 12, 2016 16:41
-
-
Save sebastiaanfranken/bd8c2f5fed07b454ee733303ff3a206b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
LAST=$(dnf list installed kernel.x86_64 | column | tail -n1 | tr -s " " | cut -d " " -f2) | |
INITRAMFS=/boot/initramfs-$(LAST).x86_64 | |
VMLINUZ=/boot/vmlinuz-$(LAST).x86_64 | |
cp $INITRAMFS /boot/efi/initramfs.img | |
cp $VMLINUZ /boot/efi/vmlinuz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment