Skip to content

Commit

Permalink
roles/portage: add a kernel-cleaning env hook for x86_64
Browse files Browse the repository at this point in the history
Signed-off-by: John Helmert III <[email protected]>
  • Loading branch information
ajakk committed Aug 13, 2023
1 parent f68c49c commit 2b8a361
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roles/portage/files/x86_64/env/sys-kernel/gentoo-kernel
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

function post_pkg_postinst() {
einfo "Cleaning old kernels..."
eclean-kernel -n 2
}

0 comments on commit 2b8a361

Please sign in to comment.