-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a1db22
commit 9ad33df
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -240,6 +240,12 @@ then | |
print_warning "Unable to copy the kernel configuration file." | ||
# Just a warning because ordinary users are not allowed to write in /etc | ||
fi | ||
|
||
# Run post kernel build hooks | ||
if [ -e '/etc/kernels/postbuild.d'] | ||
then | ||
run-parts /etc/kernels/postbuild.d | ||
fi | ||
fi | ||
|
||
if isTrue "${CMD_INSTALL}" | ||
|
@@ -248,6 +254,12 @@ then | |
then | ||
gen_kerncache_extract_kernel | ||
fi | ||
|
||
# Run post kernel install hooks | ||
if [ -e '/etc/kernels/postinstall.d'] | ||
then | ||
run-parts /etc/kernels/postinstall.d | ||
fi | ||
fi | ||
|
||
if [ "${KERNCACHE}" != "" -a "${KERNCACHE_IS_VALID}" != "0" ] | ||
|
@@ -370,10 +382,22 @@ then | |
fi | ||
|
||
unset CONFGREP | ||
|
||
# Run post initramfs hooks | ||
if [ -e '/etc/kernels/postinitramfs.d'] | ||
then | ||
run-parts /etc/kernels/postinitramfs.d | ||
fi | ||
fi | ||
|
||
[ "${BOOTRW}" != '' ] && mount -o remount,ro ${BOOTDIR} | ||
|
||
# Run post genkernel hooks | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Dissonant-Tech
Author
Contributor
|
||
if [ -e '/etc/kernels/postgen.d'] | ||
then | ||
run-parts /etc/kernels/postgen.d | ||
fi | ||
|
||
echo | ||
print_info 1 'Do NOT report kernel bugs as genkernel bugs unless your bug' | ||
print_info 1 'is about the default genkernel configuration...' | ||
|
Why should there be a
post genkernel
hook? It should be easily done bygenkernel all && do something
or by using a wrapper to call genkernel.