Hi Manoj, Le 13/04/2009 21:05:53, Manoj Srivastava a écrit : > >severity 523931 wishlist >thanks >On Mon, Apr 13 2009, Jean-Luc Coulon (f5ibh) wrote: >> ...
>> Is it possible to have the postinst_hook executed AFTER everything? > > Sure. But it has always been run before everything else, and > I > wonder if there might not be use cases where you want things to be >done > early. One can't have the defaults suit everyone ... > > Having said that, I might change all the hook scripts to run > afterwards, but that means changing al the maintainer scripts. > > >> 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, ...) > > And? I mean, this is run-parts, after all, and we know how to > sequence scripts for a run parts run. Ok, so it si fine: If I remove from /etc/kernel-img.conf the line with the hook: postinst_hook = update-grub and setup the /etc/kernel tree this way: . |-- postinst.d | |-- 010_initramfs | `-- 090_update-grub with 010_initramfs being a copy of the file found in the examples directory and 090_update-grub the simple following script: -------- #! /bin/sh update-grub #EOF --------- I get the behaviour I expected. Thanks and regards Jean-Luc
pgpqpg8Jm3N6S.pgp
Description: PGP signature