There are different things that could be required to do after initramfs
image was created or updated, depending on system setup.
That may include copying initramfs to xen dom0 (or external bootserver),
updating non-standard bootloader (think all sorts of embedded systems),
or whatever.
Currently run_bootloader() routine tries to guess what it should do.
But it does not (and it can not) cover all posible cases.
It would be better to just add a hooks, configured in /etc/kernel-img.conf
or whereever else, that will run before and after image create, update or
remove. Hooks should get information about action, kernel version, and
initramfs filename.
Hooks may coexist with current run_bootloader(), or eventually replace it.
Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages initramfs-tools depends on:
ii cpio 2.9-13 GNU cpio -- a program to manage ar
ii findutils 4.4.0-2 utilities for finding files--find,
ii klibc-utils 1.5.12-2 small utilities built with klibc f
ii module-init-tools 3.4-1 tools for managing Linux kernel mo
ii udev 0.125-7 /dev/ and hotplug management daemo
Versions of packages initramfs-tools recommends:
ii busybox 1:1.10.2-2 Tiny utilities for small and embed
initramfs-tools suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
01-27-2009, 08:32 AM
"Nikita V. Youshchenko"
Bug#513072: update-initramfs: please support running external hooks
> right those hooks should be set up by linux-2.6 not initramfs-tools.
> kernel-package uses /etc/kernel and linux-2.6 should use that
> structure too.
>
> closing as this has no relation with initramfs-tools
Sorry, but what linux-2.6 has to do with initramfs update trigged by e.g.
mdadm (or random kernel module) package upgrade?
Those do call update-initramfs, not whatever linux-2.6 hooks ...