summaryrefslogtreecommitdiff
path: root/eclass/kernel-install.eclass
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-05-17 14:32:10 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-05-17 14:32:10 +0100
commit51c50bd4c895ebf56d81fecae8e45ec3b5fc3efa (patch)
tree753b6b08624c34d1ed8414bbe22c45409f7741b9 /eclass/kernel-install.eclass
parentbe9d77d3ac6af8f4ead98d89706f356b65578c93 (diff)
parentdeba8115d2c2af26df42966b91ef04ff4dd79cde (diff)
Merge branch 'edge' into next
Diffstat (limited to 'eclass/kernel-install.eclass')
-rw-r--r--eclass/kernel-install.eclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/eclass/kernel-install.eclass b/eclass/kernel-install.eclass
index 1fdeb1bf4dc7..c26af5c2e88b 100644
--- a/eclass/kernel-install.eclass
+++ b/eclass/kernel-install.eclass
@@ -139,6 +139,7 @@ kernel-install_update_symlink() {
else
local symlink_target=$(readlink "${target}")
local symlink_ver=${symlink_target#${target##*/}-}
+ local updated=
if [[ ${symlink_target} == ${target##*/}-* && \
-z ${symlink_ver//[0-9.]/} ]]
then
@@ -151,8 +152,14 @@ kernel-install_update_symlink() {
ebegin "Updating ${target} symlink"
ln -f -n -s "${target##*/}-${version}" "${target}"
eend ${?}
+ updated=1
fi
fi
+
+ if [[ ! ${updated} ]]; then
+ elog "${target} points at another kernel, leaving it as-is."
+ elog "Please use 'eselect kernel' to update it when desired."
+ fi
fi
}