Re: [DRAFT] Policy for Linux kernel, initramfs, boot loader update process
- To: Stephen Powell <email@example.com>
- Cc: firstname.lastname@example.org, Jonas Smedegaard <email@example.com>, William Pitcock <firstname.lastname@example.org>, Manoj Srivastava <email@example.com>, firstname.lastname@example.org, email@example.com, firstname.lastname@example.org, Joachim Wiedorn <email@example.com>
- Subject: Re: [DRAFT] Policy for Linux kernel, initramfs, boot loader update process
- From: maximilian attems <firstname.lastname@example.org>
- Date: Mon, 28 Jun 2010 18:45:10 +0200
- Message-id: <[🔎] 20100628164510.GB9869@baikonur.stro.at>
- In-reply-to: <[🔎] 1266213194.8135.1277738218774.JavaMail.email@example.com>
- References: <[🔎] 1277690555.26161.532.camel@localhost> <[🔎] 1266213194.8135.1277738218774.JavaMail.firstname.lastname@example.org>
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.
> But a maintainer script for a kernel
> image package created by "make deb-pkg" passes only the first argument.
> 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.