[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#794849: linux: custom linux-image packages fail to install



Source: linux
Severity: serious
Justification: fails to build from source (but built successfully in the past)

Dear Maintainer,

   * What led up to the situation?

I was trying to create a custom kernel package by following the steps at https://kernel-handbook.alioth.debian.org/ch-common-tasks.html.

I changed the ABI version from "4" to "4-s2e". I customized the kernel configuration using "make localmodconfig".  Then, I built the dpkg packages for the 586 subarchitecture (both linux-image and linux-headers).


   * What exactly did you do (or not do) that was effective (or
     ineffective)?

Subsequently, I also tried using make-kpkg, but the result was the same. The resulting dpkg package behaved the same (see below).


   * What was the outcome of this action?

Building the dpkg packages went OK. However, when I ran "sudo dpkg -i linux-image-3.16.0-4-s2e-586_3.16.7-ckt11-1+deb8u3_i386.deb", I got a warning "WARNING: missing /lib/modules/3.16.0-4-s2e-586", followed by another set of errors, including some error messages originating from the kernel. At the end, the package was left in an inconsistent state:

$ sudo dpkg -i linux-image-3.16.0-4-s2e-586_3.16.7-ckt11-1+deb8u3_i386.deb 
(Reading database ... 31856 files and directories currently installed.)
Preparing to unpack linux-image-3.16.0-4-s2e-586_3.16.7-ckt11-1+deb8u3_i386.deb ...
Unpacking linux-image-3.16.0-4-s2e-586 (3.16.7-ckt11-1+deb8u3) over (3.16.7-ckt11-1+deb8u3) ...
Setting up linux-image-3.16.0-4-s2e-586 (3.16.7-ckt11-1+deb8u3) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-3.16.0-4-s2e-586
WARNING: missing /lib/modules/3.16.0-4-s2e-586
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/3.16.0-4-s2e-586: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_cvTqVt/lib/modules/3.16.0-4-s2e-586/modules.order: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_cvTqVt/lib/modules/3.16.0-4-s2e-586/modules.builtin: No such file or directory
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.16.0-4-s2e-586
Found initrd image: /boot/initrd.img-3.16.0-4-s2e-586
Found linux image: /boot/vmlinuz-3.16.0-4-686-pae
Found initrd image: /boot/initrd.img-3.16.0-4-686-pae
done

I checked the contents of /lib/modules, and found that there is a 3.16.0-4-586 directory, but not an "-s2e" one, in addition to the one corresponding to the current kernel:

$ ls -l /lib/modules
total 8
drwxr-xr-x 3 root root 4096 Aug  7 12:19 3.16.0-4-586
drwxr-xr-x 3 root root 4096 Aug  7 11:17 3.16.0-4-686-pae

   * What outcome did you expect instead?

I would have expected the dpkg package to install successfully on the machine.


-- System Information:
Debian Release: 8.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.16.0-4-686-pae (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)


Reply to: