diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-01-13 13:24:10 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-01-16 10:53:03 +0100 |
commit | 0f4b66e007a4701839486a3c7f2c32ae86829360 (patch) | |
tree | c1349cfca9294173b123d7b666ca25939eb4d508 | |
parent | kernel-install.eclass: Move common to kernel-install_install_all (diff) | |
download | gentoo-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>
-rw-r--r-- | eclass/kernel-install.eclass | 3 |
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 |