summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-01-13 13:24:10 +0100
committerMichał Górny <mgorny@gentoo.org>2021-01-16 10:53:03 +0100
commit0f4b66e007a4701839486a3c7f2c32ae86829360 (patch)
treec1349cfca9294173b123d7b666ca25939eb4d508 /eclass/kernel-install.eclass
parentkernel-install.eclass: Move common to kernel-install_install_all (diff)
downloadgentoo-0f4b66e007a4701839486a3c7f2c32ae86829360.tar.gz
gentoo-0f4b66e007a4701839486a3c7f2c32ae86829360.tar.bz2
gentoo-0f4b66e007a4701839486a3c7f2c32ae86829360.zip
kernel-install.eclass: Update symlink before installing
Update symlink before actually installing the kernel. This primarily ensures that module rebuilds triggered by the upgrade will work correctly even if postinst fails. Besides, pkg_config() retries installing the kernel but does not update the symlink. Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/kernel-install.eclass')
-rw-r--r--eclass/kernel-install.eclass3
1 files changed, 1 insertions, 2 deletions
diff --git a/eclass/kernel-install.eclass b/eclass/kernel-install.eclass
index b1d48b6b3b5a..33ff69fc2528 100644
--- a/eclass/kernel-install.eclass
+++ b/eclass/kernel-install.eclass
@@ -367,12 +367,11 @@ kernel-install_pkg_postinst() {
debug-print-function ${FUNCNAME} "${@}"
local ver="${PV}${KV_LOCALVERSION}"
+ kernel-install_update_symlink "${EROOT}/usr/src/linux" "${ver}"
if [[ -z ${ROOT} ]]; then
kernel-install_install_all "${ver}"
fi
-
- kernel-install_update_symlink "${EROOT}/usr/src/linux" "${ver}"
}
# @FUNCTION: kernel-install_pkg_prerm