Package: debianutils
Version: 4.4, 4.8.1.1, 4.8.6.1, 4.9.1

If there are any symlinks in /boot  such as:
# find /boot -type l
/boot/kernel
/boot/kernel.old
/boot/System.map
/boot/System.map.old
/boot/initramfs
/boot/initramfs.old

AND if they happen to point to non-existing files (ie. they are broken 
symlinks), then installkernel won't replace/update them! It just leaves them as 
they are. 

This used to be relevant on Gentoo when they used debianutils package's 
installkernel (they don't anymore).

Apparently, there are no symlinks in /boot for Debian, so you won't be seeing 
this bug.
Nonetheless, here's the fix, should you be interested to proactively protect 
against this.

See also: https://github.com/mgorny/installkernel-gentoo/issues/2
installkernel won't update broken symlinks
eg. vmlinuz -> hdlsakhdla
won't be updated because test -f will fail on it
but test -h won't

This applied to gentoo(didn't exist on manjaro)

installkernel isn't part of debianutils(on gentoo) anymore, as per: https://bugs.gentoo.org/702164
it's part of package: sys-kernel/installkernel-gentoo

here's the patch:

diff --git a/installkernel b/installkernel
index abfca8c..35c15d7 100644
--- a/installkernel
+++ b/installkernel
@@ -42,7 +42,7 @@ updatever () {
   cat "$2" > "$dir/$1-$ver"
 
   # This section is for backwards compatibility only
-  if test -f "$dir/$1" ; then
+  if test -f "$dir/$1" || test -h "$dir/$1" ; then
     # The presence of "$dir/$1" is unusual in modern intallations, and
     # the results are mostly unused.  So only recreate them if they
     # already existed.

Reply via email to