Your message dated Sat, 17 Jul 2010 11:11:28 -0700
with message-id <[email protected]>
and subject line Re: Bug#586298: kernel-package: Builds and installs initrd for 
non-initrd kernel
has caused the Debian Bug report #586298,
regarding kernel-package: Builds and installs initrd for non-initrd kernel
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
586298: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=586298
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: kernel-package
Version: 12.033
Severity: normal

When I build a kernel without initrd-support kernel-package with this
command:
# make-kpkg kernel_image modules_image

make-kpkg still build and installs an initrd:

sid:/usr/src# dpkg -i linux-image-2.6.32.15_2.6.32.15-10.00.Custom_amd64.deb 
Selecting previously deselected package linux-image-2.6.32.15.
(Reading database ... 213039 files and directories currently installed.)
Unpacking linux-image-2.6.32.15 (from 
linux-image-2.6.32.15_2.6.32.15-10.00.Custom_amd64.deb) ...
Examining /etc/kernel/preinst.d/
Done.
Setting up linux-image-2.6.32.15 (2.6.32.15-10.00.Custom) ...
Running depmod.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.32.15 
/boot/vmlinuz-2.6.32.15
run-parts: executing /etc/kernel/postinst.d/pm-utils 2.6.32.15 
/boot/vmlinuz-2.6.32.15
Running postinst hook script update-grub.
Generating grub.cfg ...
Found background image: moreblue-orbit-grub.png
Found linux image: /boot/vmlinuz-2.6.32.15
Found initrd image: /boot/initrd.img-2.6.32.15
Found linux image: /boot/vmlinuz-2.6.32.11
Found linux image: /boot/vmlinuz-2.6.32-5-amd64
Found initrd image: /boot/initrd.img-2.6.32-5-amd64
Found memtest86 image: /boot/memtest86.bin
Found memtest86+ image: /boot/memtest86+_multiboot.bin
Found Debian GNU/Linux (5.0.4) on /dev/sda4
done
sid:/usr/src# 

>From 'man make-kpkg':

       --initrd
              If  make-kpkg  is  generating a kernel-image package, arrange to
              convey to the hook scripts run from the post installation  main-
              tainer  scripts that this image requires an initrd, and that the
              initrd generation hook scripts should not short  circuit  early.
              Without  this option, the example initramfs hook scripts bundled
              in with kernel-package will take no action on installation.  The
              same  effect can be achieved by setting the environment variable
              INITRD to any non empty value.  Please note  that  unless  there
              are  hook  scripts  in /etc/kernel or added into the hook script
              parameter of /etc/kernel-img.conf.  no initrd  will  be  created
              (the bundled in example scripts are just examples -- user action
              is required before anything happens).

So unless I set the INITRD variable or pass --initrd to make-kpkg,
the initrd-generating script should not run. And I've not set the
INITRD variable.

This has been working fine before, so the bug is new.

/ Anders

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (51, 'testing-proposed-updates'), (50, 
'unstable'), (40, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32.11 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to sv_SE.UTF8)
Shell: /bin/sh linked to /bin/dash

Versions of packages kernel-package depends on:
ii  binutils                     2.20.1-10   The GNU assembler, linker and bina
ii  build-essential              11.5        Informational list of build-essent
ii  debianutils                  3.2.3       Miscellaneous utilities specific t
ii  file                         5.04-2      Determines file type using "magic"
ii  gettext                      0.17-11     GNU Internationalization utilities
ii  make                         3.81-8      An utility for Directing compilati
ii  module-init-tools            3.12~pre2-3 tools for managing Linux kernel mo
ii  po-debconf                   1.0.16      tool for managing templates file t
ii  util-linux                   2.16.2-0    Miscellaneous system utilities

Versions of packages kernel-package recommends:
ii  cpio                          2.11-4     GNU cpio -- a program to manage ar

Versions of packages kernel-package suggests:
pn  btrfs-tools               <none>         (no description available)
ii  bzip2                     1.0.5-4        high-quality block-sorting file co
ii  docbook-utils             0.6.14-1.1     Convert Docbook files to other for
ii  e2fsprogs                 1.41.12-1      ext2/ext3/ext4 file system utiliti
pn  grub | grub2              <none>         (no description available)
ii  initramfs-tools [linux-in 0.94.4         tools for generating an initramfs
pn  jfsutils                  <none>         (no description available)
ii  libncurses5-dev [libncurs 5.7+20100313-2 developer's libraries and docs for
pn  linux-source | kernel-sou <none>         (no description available)
ii  mcelog                    1.0~pre3-1     x86-64 Machine Check Exceptions co
pn  oprofile                  <none>         (no description available)
pn  pcmciautils               <none>         (no description available)
pn  ppp                       <none>         (no description available)
ii  procps                    1:3.2.8-9      /proc file system utilities
pn  quota                     <none>         (no description available)
pn  reiserfsprogs             <none>         (no description available)
pn  squashfs-tools            <none>         (no description available)
ii  udev                      157-1          /dev/ and hotplug management daemo
pn  xfsprogs                  <none>         (no description available)
ii  xmlto                     0.0.23-2       XML-to-any converter

-- Configuration Files:
/etc/kernel-pkg.conf changed:
maintainer := Unknown Kernel Package Maintainer
email := [email protected]
priority := Low
CONCURRENCY_LEVEL := 3


-- no debconf information



--- End Message ---
--- Begin Message ---
On Fri, Jun 18 2010, Anders Boström wrote:


> Examining /etc/kernel/postinst.d.
> run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.32.15 
> /boot/vmlinuz-2.6.32.15
> run-parts: executing /etc/kernel/postinst.d/pm-utils 2.6.32.15 
> /boot/vmlinuz-2.6.32.15
> Running postinst hook script update-grub.

        That script apparently does not honor the no initrd tag that
 kernel-package images pass to it. I suggest using the initramfs scripts
 shipped with kernel-package, and not the ones shipped with initramfs,
 since the initramfs maintainer does not support kernl-package kernels
 (or non-initrd kernels for that matter).

        manoj
-- 
The only real advantage to punk music is that nobody can whistle it.
Manoj Srivastava <[email protected]> <http://www.golden-gryphon.com/>  
4096R/C5779A1C E37E 5EC5 2A01 DA25 AD20  05B6 CF48 9438 C577 9A1C


--- End Message ---

Reply via email to