Your message dated Wed, 14 Oct 2009 09:59:21 -0500
with message-id <[email protected]>
and subject line Re: Bug#550949: kernel-package: built kernel package does not 
generate initrd
has caused the Debian Bug report #550949,
regarding kernel-package: built kernel package does not generate initrd
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.)


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


I have built linux-2.6.32-rc3 with kernel-package and it does not build
an initrd when the linux-image package is installed.

$ make-kpkg --rootcmd fakeroot --initrd kernel_image kernel_debug
kernel_headers --subarch pentiumm --arch-in-name

-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (900, 'stable'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-rc3 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages kernel-package depends on:
ii  binutils            2.18.1~cvs20080103-7 The GNU assembler, linker and bina
ii  build-essential     11.4                 Informational list of build-essent
ii  debianutils         2.30                 Miscellaneous utilities specific t
ii  file                4.26-1               Determines file type using "magic"
ii  gettext             0.17-4               GNU Internationalization utilities
ii  make                3.81-5               The GNU version of the "make" util
ii  module-init-tools   3.4-1                tools for managing Linux kernel mo
ii  po-debconf          1.0.15               manage translated Debconf template
ii  util-linux          2.13.1.1-1           Miscellaneous system utilities

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

Versions of packages kernel-package suggests:
ii  bzip2                     1.0.5-1        high-quality block-sorting file co
pn  docbook-utils             <none>         (no description available)
ii  e2fsprogs                 1.41.3-1       ext2/ext3/ext4 file system utiliti
ii  initramfs-tools [linux-in 0.92o          tools for generating an initramfs
pn  libdb3-dev                <none>         (no description available)
ii  libncurses5-dev [libncurs 5.7+20081213-1 developer's libraries and docs for
pn  linux-source | kernel-sou <none>         (no description available)
pn  xmlto                     <none>         (no description available)

-- no debconf information



--- End Message ---
--- Begin Message ---
Hi,

        This is expected and widely documented behaviour. Have you
 populated /etc/kernel/*.d directories on the  target machine? (the
 latest initramfs-tools has a script that it installs that does the job
 too, I think)

,----[ Manual page make-kpkg(1) ]
|  --initrd
|         If make-kpkg is generating a kernel-image package, arrange to
|         convey to the hook scripts run from the post installation
|         maintainer 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).
`----


,----[ /usr/share/doc/kernel-package/README.gz ]
|  gotchas. Note that you will have to arrange for the actual
|  initrd creation to take place by installing a script like
|  /usr/share/kernel-package/examples/etc/kernel/post{inst,rm}.d/yaird
|  or, alternately,
|  /usr/share/kernel-package/examples/etc/kernel/post{inst,rm}.d/initramfs 
|  into the corresponding directories /etc/kernel/post{inst,rm}.d,
|  since the kernel-postinst does not arrange for the initramfs
|  creator to be called. You can thus select your own;
|  initramfs-tools or yaird.
| 
|  Let me repeat: 
|  Since nothing is created automatically. you need to provide a hook
|  script for things to happen when you install the kernel image
|  package.  The user provides such scripts. For example, to invoke
|  mkinitramfs, I did:
| --8<---------------cut here---------------start------------->8---
|  cp /usr/share/kernel-package/examples/etc/kernel/postinst.d/yaird \
|     /etc/kernel/postinst.d/
|  cp /usr/share/kernel-package/examples/etc/kernel/postrm.d/yaird \
|     /etc/kernel/postrm.d/
| --8<---------------cut here---------------end--------------->8---
| 
|         Or, alternately, you could do:
| --8<---------------cut here---------------start------------->8---
|  cp /usr/share/kernel-package/examples/etc/kernel/postinst.d/initramfs \
|     /etc/kernel/postinst.d/
|  cp /usr/share/kernel-package/examples/etc/kernel/postrm.d/initramfs \
|     /etc/kernel/postrm.d/
| --8<---------------cut here---------------end--------------->8---
| 
|         These scripts above to nothing unless the corresponding
|  packages are installed (initramfs-tools or yaird), so you could
|  potentially cp both over -- as long as you never install both yaird
|  and initramfs-tools at the same time.
| 
|         To run grub, I have in /etc/kernel-img.conf:
| --8<---------------cut here---------------start------------->8---
| postinst_hook = update-grub
| postrm_hook   = update-grub
| --8<---------------cut here---------------end--------------->8---
| 
| You can look at other example in the examples directory:
| /usr/share/kernel-package/examples/ to see if there are other example
| script you want to cp into /etc/kernel -- and you can create your own
| scripts.
| 
| For example, if you use linux-headers-* packages to compile third
| party modules so that you do not have to keep the sources directory
| around, you might be interested in:
| --8<---------------cut here---------------start------------->8---
| /etc/kernel/header_postinst.d/link
| /etc/kernel/header_postrm.d/link
| /etc/kernel/header_prerm.d/link
| /etc/kernel/postinst.d/force-build-link
| /etc/kernel/postrm.d/force-build-link
| --8<---------------cut here---------------end--------------->8---
| 
|         These scripts will try to make sure that the symlink
|  /lib/modules/$VERSION/build 
|  is sane -- that is points to the header packages whether you install
|  the image packages first, or the header packages first -- and takes
|  care of cleanup when either of the packages are installed.
`----

        manoj
-- 
Al didn't smile for forty years.  You've got to admire a man like
that. from "Mary Hartman, Mary Hartman"
Manoj Srivastava <[email protected]> <http://www.golden-gryphon.com/>  
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C


--- End Message ---

Reply via email to