Skip to content

Instantly share code, notes, and snippets.

@alaricljs
Last active Nov 9, 2020
Embed
What would you like to do?
# place in /etc/pacman.d/hooks
# strips the installed/upgraded kernel and places it in /boot
[Trigger]
Operation = Install
Operation = Upgrade
Type = Package
Target = linux
[Action]
Description = Pull ELF kernel to /boot
Depends = linux-headers
When = PostTransaction
Exec = /usr/bin/strip /usr/src/linux/vmlinux -o /boot/vmlinux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment