Package: kernel-package
Version: 12.007
Severity: normal

Hi,

I use grub-pc (AKA grub2), the config file (grub.cfg) is created from template
when update-grub is ran.
Thos is done by the postinst_hook defined in /etc/kernel-img.conf

postinst_hook = update-grub
postrm_hook   = update-grub

But at this time, initramfs (ran from /etc/kernel/postinst.d/initramfs) doesnt
have created the initrd yet.

So my grug.cfg doesnt contains the reference to the initrd and the system is not
bootable.

Here is the sequence:

-------------------------
Dépaquetage de linux-image-2.6.30-rc1-git5-k8-2 (à partir de
linux-image-2.6.30-rc1-git5-k8-2_20090413_amd64.deb) ...
Examining /etc/kernel/preinst.d/
Done.
dpkg-deb: --fsys-tarfile linux-image-2.6.30-rc1-git5-k8-2_20090413_amd64.deb
Paramétrage de linux-image-2.6.30-rc1-git5-k8-2 (20090413) ...
Running depmod.
Running postinst hook script update-grub.
Generating grub.cfg ...
Found Debian background: moreblue-orbit-grub.png
Found linux image: /boot/vmlinuz-2.6.30-rc1-git5-k8-2
Found linux image: /boot/vmlinuz-2.6.30-rc1-git5-k8-1
Found initrd image: /boot/initrd.img-2.6.30-rc1-git5-k8-1
Found linux image: /boot/vmlinuz-2.6.29-k8-2
Found initrd image: /boot/initrd.img-2.6.29-k8-2
Found linux image: /boot/vmlinuz-2.6.29-git12-k8-1
Found initrd image: /boot/initrd.img-2.6.29-git12-k8-1
Warning: update-grub_lib is deprecated, use grub-mkconfig_lib instead
Found memtest86+ image: /memtest86+.bin
done
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs
cryptsetup: WARNING: found more than one resume device candidate:
                     /dev/mapper/vg0-swap_lv
                     swap:/dev/mapper/vg0-swap_lv
---------------------------

Is it possible to have the postinst_hook executed AFTER everything?
It can be moved it in the /etc/kernel/postinst.d directory/ but then we need a
mean to sequence the scripts in the directory (i.e. 10_initramfs, 
20_update-grub, ...)

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.30-rc1-git5-k8-1 (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




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to