Kernel images installed the proper way from .deb packages are always
naming their kernel files vmlinuz-*. This way, we can avoid tampering
with completely customized kernels which handle initramfs on their own
(or completely different).
#!/bin/sh
-case "$(ls -l /boot/vmlinuz* | wc -l)" in
+case "$(ls -l /boot/vmlinuz-* | wc -l)" in
1)
# We only have one kernel installed, so we can use "-u"
# which will use dpkg-trigger inside update-initramfs
#!/bin/sh
-case "$(ls -l /boot/vmlinuz* | wc -l)" in
+case "$(ls -l /boot/vmlinuz-* | wc -l)" in
1)
# We only have one kernel installed, so we can use "-u"
# which will use dpkg-trigger inside update-initramfs