Package: src:linux Version: 4.9.30-2+deb9u1 Severity: normal Dear Maintainer,
After building and installing a new kernel following the Debian way, the symlinks /vmlinuz and /initrd.img are not updated to point to the last kernel files. >From a base Debian 9 netinstall installation: apt-get install libncurses5-dev build-essential fakeroot ncurses-dev linux-headers-amd64 linux-source apt-get build-dep linux cd /usr/src && tar -xaf linux-source-4.9.tar.xz cd linux-source-4.9/ make menuconfig (General setup > Local version "id") scripts/config --disable DEBUG_INFO make clean make -j 2 deb-pkg cd .. && dpkg -i *.deb (...) Selecting previously unselected package linux-image-4.9.30id. (Reading database ... 72448 files and directories currently installed.) Preparing to unpack linux-image-4.9.30id_4.9.30id-1_amd64.deb ... Unpacking linux-image-4.9.30id (4.9.30id-1) ... Setting up linux-image-4.9.30id (4.9.30id-1) ... update-initramfs: Generating /boot/initrd.img-4.9.30id Generating grub configuration file ... Found linux image: /boot/vmlinuz-4.9.30id Found initrd image: /boot/initrd.img-4.9.30id Found linux image: /boot/vmlinuz-4.9.0-3-amd64 Found initrd image: /boot/initrd.img-4.9.0-3-amd64 Adding boot menu entry for EFI firmware configuration done # ls -lhart /boot/ total 47M drwx------ 3 root root 4.0K Jan 1 1970 efi -rw-r--r-- 1 root root 4.1M Jun 18 10:14 vmlinuz-4.9.0-3-amd64 -rw-r--r-- 1 root root 3.1M Jun 18 10:14 System.map-4.9.0-3-amd64 -rw-r--r-- 1 root root 183K Jun 18 10:14 config-4.9.0-3-amd64 drwxr-xr-x 22 root root 4.0K Jun 19 11:07 .. -rw-r--r-- 1 root root 18M Jun 20 10:35 initrd.img-4.9.0-3-amd64 -rw-r--r-- 1 root root 3.9M Jun 20 13:35 vmlinuz-4.9.30id -rw-r--r-- 1 root root 3.0M Jun 20 13:35 System.map-4.9.30id -rw-r--r-- 1 root root 127K Jun 20 13:35 config-4.9.30id -rw-r--r-- 1 root root 16M Jun 20 13:37 initrd.img-4.9.30id drwxr-xr-x 4 root root 4.0K Jun 20 13:37 . drwxr-xr-x 5 root root 4.0K Jun 20 13:37 grub # ls -al /vmlinuz lrwxrwxrwx 1 root root 26 Jun 19 11:07 /vmlinuz -> boot/vmlinuz-4.9.0-3-amd64 # ls -al /vmlinuz.old lrwxrwxrwx 1 root root 26 Jun 19 11:07 /vmlinuz.old -> boot/vmlinuz-4.9.0-3-amd64 # ls -al /initrd.img lrwxrwxrwx 1 root root 29 Jun 19 11:07 /initrd.img -> boot/initrd.img-4.9.0-3-amd64 # ls -al /initrd.img.old lrwxrwxrwx 1 root root 29 Jun 19 11:07 /initrd.img.old -> boot/initrd.img-4.9.0-3-amd64 After the installation, the right symlinks must be: /vmlinuz --> /boot/vmlinuz-4.9.30id /initrd.img --> /boot/initrd.img-4.9.30id Thanks, -- Package-specific info: ** Version: Linux version 4.9.0-3-amd64 (debian-ker...@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #1 SMP Debian 4.9.30-2+deb9u1 (2017-06-18) ** Command line: root=UUID=e0cba79d-ca0a-499a-9345-a73ac53ab355 ro quiet rootfstype=ext4 add_efi_memmap initrd=\EFI\debian\initrd.img ** Not tainted -- System Information: Debian Release: 9.0 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.9.0-3-amd64 (SMP w/24 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages linux-image-4.9.0-3-amd64 depends on: ii initramfs-tools [linux-initramfs-tool] 0.130 ii kmod 23-2 ii linux-base 4.5 Versions of packages linux-image-4.9.0-3-amd64 recommends: pn firmware-linux-free <none> pn irqbalance <none> Versions of packages linux-image-4.9.0-3-amd64 suggests: pn debian-kernel-handbook <none> ii grub-efi-amd64 2.02~beta3-5 pn linux-doc-4.9 <none> Versions of packages linux-image-4.9.0-3-amd64 is related to: pn firmware-amd-graphics <none> pn firmware-atheros <none> pn firmware-bnx2 <none> pn firmware-bnx2x <none> pn firmware-brcm80211 <none> pn firmware-cavium <none> pn firmware-intel-sound <none> pn firmware-intelwimax <none> pn firmware-ipw2x00 <none> pn firmware-ivtv <none> pn firmware-iwlwifi <none> pn firmware-libertas <none> pn firmware-linux-nonfree <none> pn firmware-misc-nonfree <none> pn firmware-myricom <none> pn firmware-netxen <none> pn firmware-qlogic <none> pn firmware-realtek <none> pn firmware-samsung <none> pn firmware-siano <none> pn firmware-ti-connectivity <none> pn xen-hypervisor <none> -- no debconf information