Skip to content

Instantly share code, notes, and snippets.

@sebastiaanfranken
Last active September 12, 2016 16:41
Show Gist options
  • Save sebastiaanfranken/bd8c2f5fed07b454ee733303ff3a206b to your computer and use it in GitHub Desktop.
Save sebastiaanfranken/bd8c2f5fed07b454ee733303ff3a206b to your computer and use it in GitHub Desktop.
#!/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