Bug#513072: update-initramfs: please support running external hooks

2009-01-27 Thread Nikita V. Youshchenko
 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 ...


signature.asc
Description: This is a digitally signed message part.


Bug#513072: update-initramfs: please support running external hooks

2009-01-25 Thread Nikita V. Youshchenko
Package: initramfs-tools
Version: 0.92o
Severity: wishlist

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.

-- Package-specific info:
-- /proc/cmdline
root=/dev/mapper/vg-root ro 

-- /proc/filesystems
reiserfs
iso9660
ext3

-- lsmod
Module  Size  Used by
nls_utf86272  1 
ext3  125072  0 
jbd51240  1 ext3
mbcache12804  1 ext3
isofs  35880  1 
nls_base   12932  2 nls_utf8,isofs
tun14084  1 
kvm_amd29580  1 
kvm   127464  1 kvm_amd
ppdev  11656  0 
lp 14724  0 
autofs424200  1 
ppp_deflate 9216  0 
zlib_deflate   23960  1 ppp_deflate
zlib_inflate   18944  2 isofs,ppp_deflate
bsd_comp9600  0 
nfsd  248360  17 
auth_rpcgss47520  1 nfsd
exportfs8704  1 nfsd
nfs   251696  1 
lockd  68560  2 nfsd,nfs
nfs_acl 7552  2 nfsd,nfs
sunrpc197480  17 nfsd,auth_rpcgss,nfs,lockd,nfs_acl
ipt_ULOG   13736  2 
xt_state6656  1 
ipt_MASQUERADE  7296  1 
xt_TCPMSS   8448  1 
xt_tcpmss   6656  1 
ipt_REJECT  7552  3 
xt_tcpudp   7680  144 
iptable_nat 9872  1 
nf_nat 23192  2 ipt_MASQUERADE,iptable_nat
nf_conntrack_ipv4  19352  4 iptable_nat,nf_nat
nf_conntrack   71440  5 
xt_state,ipt_MASQUERADE,iptable_nat,nf_nat,nf_conntrack_ipv4
iptable_filter  7424  1 
ip_tables  21520  2 iptable_nat,iptable_filter
x_tables   25224  9 
ipt_ULOG,xt_state,ipt_MASQUERADE,xt_TCPMSS,xt_tcpmss,ipt_REJECT,xt_tcpudp,iptable_nat,ip_tables
bridge 53544  0 
ppp_async  13056  1 
crc_ccitt   6528  1 ppp_async
ppp_generic27816  7 ppp_deflate,bsd_comp,ppp_async
slhc   10112  1 ppp_generic
ipv6  288328  70 
loop   19468  2 
psmouse42268  0 
parport_pc 31016  1 
parport41776  3 ppdev,lp,parport_pc
pcspkr  7040  0 
k8temp  9216  0 
button 11680  0 
i2c_nforce210752  0 
i2c_core   27936  1 i2c_nforce2
evdev  14208  3 
reiserfs  211072  5 
dm_mirror  20608  0 
dm_log 13956  1 dm_mirror
dm_snapshot19400  2 
dm_mod 58864  31 dm_mirror,dm_log,dm_snapshot
raid456   125984  1 
async_xor   8448  1 raid456
async_memcpy6912  1 raid456
async_tx   11764  3 raid456,async_xor,async_memcpy
xor 9744  2 raid456,async_xor
raid1  24192  1 
md_mod 80164  4 raid456,raid1
ide_cd_mod 36360  0 
cdrom  37928  1 ide_cd_mod
sd_mod 29376  12 
amd74xx13448  0 [permanent]
ide_pci_generic 9220  0 [permanent]
ide_core  128284  3 ide_cd_mod,amd74xx,ide_pci_generic
sata_nv27528  8 
8139cp 23808  0 
ata_generic10116  0 
libata165472  2 sata_nv,ata_generic
scsi_mod  160760  2 sd_mod,libata
forcedeth  54032  0 
ohci1394   32564  0 
dock   14112  1 libata
8139too28288  0 
ieee1394   93816  1 ohci1394
ehci_hcd   36108  0 
mii 9856  2 8139cp,8139too
ohci_hcd   25092  0 
thermal22688  0 
processor  42304  1 thermal
fan 9352  0 
thermal_sys17728  3 thermal,processor,fan

-- /etc/kernel-img.conf
Do_Symlinks = no

do_initrd = Yes

postinst_hook = update-grub
postrm_hook = update-grub
do_bootloader = no


-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=y
KEYMAP=n
BOOT=local
DEVICE=eth0
NFSROOT=auto


-- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (620, 'testing'), (600, 'unstable'), (550, 'experimental')
Architecture: i386 (x86_64)

Kernel: