Bug#560263: postinst crashes if current kernel has no /proc/modules
Package: linux-2.6
Version: 2.6.31-2
Severity: normal
Setting up linux-image-2.6.31-1-amd64 (2.6.31-2) ...
Running depmod.
Label not found for "last FIRMWARE_CHECK" at /var/lib/dpkg/info/linux-image-2.6.31-1-amd64.postinst line 792.
dpkg: error processing linux-image-2.6.31-1-amd64 (--configure):
subprocess installed post-installation script returned error exit status 2
The postinst tries in two places to use the last operator to break out
of an if statement. In perl, last can only be used to break out of
loops. (Functions and return are probably the right approach here,
though you could use a foreach (1) loop if you really must keep the lasts.)
This code path only triggers if the package is installed on
a system that has no /proc/modules. In my case because it
is currently running a custom, monolithic kernel.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.31-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
--
see shy jo
Reply to: