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

Latest commit

 

History

History
13 lines (10 loc) · 462 Bytes

hook_examples.md

File metadata and controls

13 lines (10 loc) · 462 Bytes

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.