Re: [DRAFT] Policy for Linux kernel, initramfs, boot loader update process
- To: Stephen Powell <zlinuxman@wowway.com>
- Cc: debian-kernel@lists.debian.org, Jonas Smedegaard <dr@jones.dk>, William Pitcock <nenolod@dereferenced.org>, Manoj Srivastava <srivasta@debian.org>, debian-devel@lists.debian.org, debian-boot@lists.debian.org, debian-s390@lists.debian.org, Joachim Wiedorn <ad_debian@joonet.de>
- Subject: Re: [DRAFT] Policy for Linux kernel, initramfs, boot loader update process
- From: maximilian attems <max@stro.at>
- Date: Mon, 28 Jun 2010 18:45:10 +0200
- Message-id: <[🔎] 20100628164510.GB9869@baikonur.stro.at>
- In-reply-to: <[🔎] 1266213194.8135.1277738218774.JavaMail.root@md01.wow.synacor.com>
- References: <1277690555.26161.532.camel@localhost> <[🔎] 1266213194.8135.1277738218774.JavaMail.root@md01.wow.synacor.com>
On Mon, Jun 28, 2010 at 11:16:58AM -0400, Stephen Powell wrote:
> > ---
> > 1. Packages for boot loaders that need to be updated whenever the files
> > they load are modified (i.e. those that store a block list) must install
> > hook scripts in /etc/kernel/postinst.d and /etc/kernel/postrm.d, which
> > will be called on installation/upgrade and removal of kernel packages,
> > respectively.
> >
> > The arguments given to all kernel hook scripts are the kernel ABI
> > version (the string that uname -r reports) and the absolute path to the
> > kernel image.
>
> Currently, hook scripts invoked by a stock kernel maintainer script
> or a maintainer script from a kernel image package created by make-kpkg
> pass these exact same arguments.
no.
> But a maintainer script for a kernel
> image package created by "make deb-pkg" passes only the first argument.
no.
> Existing hook scripts rely on that difference to determine whether or
> not to take action. For example, the initramfs hook script provided by
> the initramfs-tools package tests the number of arguments and exits
> without doing anything if more than one argument is supplied. In other
> words, this hook script is designed to create the initial RAM file system
> for a kernel image created by "make deb-pkg", and only for a kernel
> image created by "make deb-pkg". It does nothing otherwise. Are you
> proposing to change this behavior?
please get your facts right before spamming the world.
kthxbye.
Reply to: