Skip to content
This repository has been archived by the owner on Feb 14, 2020. It is now read-only.

Commit

Permalink
doc: add a hook examples doc (currently just a post install one)
Browse files Browse the repository at this point in the history
  • Loading branch information
somasis committed Jul 2, 2015
1 parent c07062f commit 5ed2d22
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions doc/hook_examples.md
@@ -0,0 +1,13 @@
# Examples of kernel_* functions

## Post install
On my machine, I use gummiboot for managing the boot process.
So, my kernel_post_install() is...

kernel_post_install() {
default_kernel_post_install "$@"
sed -e "s#^linux /vmlinuz-.*#linux /vmlinuz-${target_version//v}#" -i /boot/loader/entries/exherbo.conf
}

Which changes the kernel line in the gummiboot configuration to use the
new kernel version, so I don't have to do it by hand.

0 comments on commit 5ed2d22

Please sign in to comment.