Package: kernel-package
Version: 12.005
Severity: normal

Hi,

In postinst.d/initramfs found in the examples scripts, the following:
if [ -n "$DEB_MAINT_PARAMS" ]; then
    eval set -- "$DEB_MAINT_PARAMS"
    if [ -z "$1" ] || [ "$1" != "configure" ]; then
        exit 0;
    fi
fi

gives the value "configure" to $1 for 
update-initramfs -c -t -k "$version" $bootarg

It is needed to save the kernel version before

Patch attached

Regards

Jean-Luc



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.29-k8-2 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages kernel-package depends on:
ii  binutils              2.19.51.20090315-1 The GNU assembler, linker and bina
ii  build-essential       11.4               Informational list of build-essent
ii  debianutils           3.0.1              Miscellaneous utilities specific t
ii  file                  5.00-1             Determines file type using "magic"
ii  gettext               0.17-6             GNU Internationalization utilities
ii  make                  3.81-5             The GNU version of the "make" util
ii  module-init-tools     3.7-pre9-1         tools for managing Linux kernel mo
ii  po-debconf            1.0.16             tool for managing templates file t
ii  util-linux            2.13.1.1-1         Miscellaneous system utilities

kernel-package recommends no packages.

Versions of packages kernel-package suggests:
ii  bzip2                     1.0.5-1        high-quality block-sorting file co
ii  docbook-utils             0.6.14-1.1     Convert Docbook files to other for
ii  e2fsprogs                 1.41.3-1       ext2/ext3/ext4 file system utiliti
ii  initramfs-tools [linux-in 0.93.2         tools for generating an initramfs
pn  libdb3-dev                <none>         (no description available)
ii  libncurses5-dev [libncurs 5.7+20090404-1 developer's libraries and docs for
ii  linux-source-2.6.29 [linu 2.6.29-2       Linux kernel source for version 2.
ii  xmlto                     0.0.22-1       XML-to-any converter

-- no debconf information
--- /usr/share/kernel-package/examples/etc/kernel/postinst.d/initramfs  
2009-04-13 00:15:57.000000000 +0200
+++ /etc/kernel/postinst.d/initramfs    2009-04-13 08:44:28.921252123 +0200
@@ -17,6 +17,9 @@
     bootarg="-b $boot"
 fi
 
+# Save kernel version
+version=$1
+
 if [ -n "$DEB_MAINT_PARAMS" ]; then
     eval set -- "$DEB_MAINT_PARAMS"
     if [ -z "$1" ] || [ "$1" != "configure" ]; then
@@ -27,5 +30,5 @@
 
 
 # 
-update-initramfs -c -t -k "$1" $bootarg
+update-initramfs -c -t -k "$version" $bootarg
 

Reply via email to