[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Avoid running update-initramfs more than once during installation



hello Petter,

On Tue, Aug 08, 2006 at 11:37:02AM +0200, Petter Reinholdtsen wrote:
> 
> When installing debian-edu-artwork-usplash, the initrd is updated
> twice, once in the usplash postinst, and once in the
> debian-edu-artwork-usplash postinst.  This seem like a waste of time
> to me.  Could it be possible to rewrite initramfs-tools to make sure
> the initrd is only generated once, at the end of the install?

agreed,
but that is an dpkg bug not having a "do this last and once" hook.
 
> One idea is to make two commands, update-initramfs-intent and
> update-initramfs-delayed, where the former register the packages
> intent to run update-initramfs in their config script, and the last
> package to call the latter will do the updating in their postinst
> script.

NACK,
that seems to fragile, i would really prefer to get that bug fixed
in dpkg than having such a workaround in initramfs-tools.
there are other package, who would benefit from such a hook.

regards

-- 
maks



Reply to: