Skip to content

Instantly share code, notes, and snippets.

@alaricljs
Last active February 5, 2023 19:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alaricljs/757d4b452335b187d7dff1b7e2c5808e to your computer and use it in GitHub Desktop.
Save alaricljs/757d4b452335b187d7dff1b7e2c5808e to your computer and use it in GitHub Desktop.
# 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