Re: [DRAFT] Policy for Linux kernel, initramfs, boot loader update process

2010-07-01 Thread Stephen Powell
On Wed, 30 Jun 2010 09:29:42 -0400 (EDT), Stephen Powell wrote: Since symlinks are not associated with any package in particular, and since they seem to have been designed for the convenience of historic boot loaders such as lilo and zipl, perhaps the best way to handle this is for the boot

Re: [DRAFT] Policy for Linux kernel, initramfs, boot loader update process

2010-06-30 Thread Stephen Powell
On Tue, 29 Jun 2010 16:35:40 -0400 (EDT), maximilian attems wrote: On Tue, Jun 29, 2010 at 04:24:48PM -0400, Stephen Powell wrote: Sorry I didn't think of this the first time, but there are up to four steps to preparing a kernel for booting: (1) Installation of the kernel itself (2)

Re: [DRAFT] Policy for Linux kernel, initramfs, boot loader update process

2010-06-30 Thread Jonas Smedegaard
On Wed, Jun 30, 2010 at 09:29:42AM -0400, Stephen Powell wrote: Since symlinks are not associated with any package in particular, and since they seem to have been designed for the convenience of historic boot loaders such as lilo and zipl, perhaps the best way to handle this is for the boot

Re: [DRAFT] Policy for Linux kernel, initramfs, boot loader update process

2010-06-30 Thread Stephen Powell
On Wed, 30 Jun 2010 10:00:10 -0400 (EDT), Jonas Smedegaard wrote: On Wed, Jun 30, 2010 at 09:29:42AM -0400, Stephen Powell wrote: ... Since symlinks are not associated with any package in particular, and since they seem to have been designed for the convenience of historic boot loaders such

Re: [DRAFT] Policy for Linux kernel, initramfs, boot loader update process

2010-06-30 Thread Jonas Smedegaard
On Wed, Jun 30, 2010 at 10:31:32AM -0400, Stephen Powell wrote: On Wed, 30 Jun 2010 10:00:10 -0400 (EDT), Jonas Smedegaard wrote: On Wed, Jun 30, 2010 at 09:29:42AM -0400, Stephen Powell wrote: ... Since symlinks are not associated with any package in particular, and since they seem to have

Re: [DRAFT] Policy for Linux kernel, initramfs, boot loader update process

2010-06-30 Thread maximilian attems
On Wed, Jun 30, 2010 at 10:31:32AM -0400, Stephen Powell wrote: dpkg does not prevent multiple boot loaders from being installed concurrently; but this environment is not supported by the various system maintainer scripts of Debian, even today. For example, update-initramfs -u currently

Re: [DRAFT] Policy for Linux kernel, initramfs, boot loader update process

2010-06-30 Thread Stephen Powell
On Wed, 30 Jun 2010 10:54:53 -0400 (EDT), Jonas Smedegaard wrote: On Wed, Jun 30, 2010 at 10:31:32AM -0400, Stephen Powell wrote: dpkg does not prevent multiple boot loaders from being installed concurrently; but this environment is not supported by the various system maintainer scripts of

Re: [DRAFT] Policy for Linux kernel, initramfs, boot loader update process

2010-06-29 Thread Stephen Powell
On Mon, 28 Jun 2010 19:07:16 -0400 (EDT), Ben Hutchings wrote: Please reply to debian-kernel only. As you wish. I had reason to believe that some key players were probably not subscribed to debian-kernel. But they are now at least aware of the thread and can follow it further if they so

Re: [DRAFT] Policy for Linux kernel, initramfs, boot loader update process

2010-06-29 Thread Stephen Powell
On Mon, 28 Jun 2010 19:07:16 -0400 (EDT), Ben Hutchings wrote: ... I can put a one-time warning into linux-base. But the default for squeeze must be 'no'. It should not be necessary to create /etc/kernel-img.conf at all in squeeze. Sorry I didn't think of this the first time, but there are

Re: [DRAFT] Policy for Linux kernel, initramfs, boot loader update process

2010-06-29 Thread maximilian attems
On Tue, Jun 29, 2010 at 04:24:48PM -0400, Stephen Powell wrote: On Mon, 28 Jun 2010 19:07:16 -0400 (EDT), Ben Hutchings wrote: ... I can put a one-time warning into linux-base. But the default for squeeze must be 'no'. It should not be necessary to create /etc/kernel-img.conf at all in

Re: [DRAFT] Policy for Linux kernel, initramfs, boot loader update process

2010-06-28 Thread maximilian attems
On Mon, 28 Jun 2010, Ben Hutchings wrote: 2. Packages for boot loaders that need to be updated whenever the files they load are modified must also install hook scripts in /etc/mkinitramfs/post-update.d. Initramfs builders must call these scripts using run-parts after they create, update or

Re: [DRAFT] Policy for Linux kernel, initramfs, boot loader update process

2010-06-28 Thread Ben Hutchings
On Mon, 2010-06-28 at 10:45 +0200, maximilian attems wrote: On Mon, 28 Jun 2010, Ben Hutchings wrote: [...] 4. During a kernel package installation, upgrade or removal, various boot loader hooks may be invoked (in this order): a. A postinst_hook or postrm_hook command set by the user or

Re: [DRAFT] Policy for Linux kernel, initramfs, boot loader update process

2010-06-28 Thread Stephen Powell
I took the liberty of adding debian-boot and debian-s390 to the CC list on this e-mail, since it affects the Debian installer and the s390-tools package, which contains the zipl boot loader, which has a design very similar to that of lilo. If this results in some people getting more than one copy

Re: [DRAFT] Policy for Linux kernel, initramfs, boot loader update process

2010-06-28 Thread Joachim Wiedorn
Hello William, perhaps you have read the recent email from Ben (see below). It would be important to update the lilo package to support these recent requirements to prepare LILO for Squeeze before it will get stable. Do you have the intention to update the lilo package to integrate some scripts

Re: [DRAFT] Policy for Linux kernel, initramfs, boot loader update process

2010-06-28 Thread maximilian attems
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

Re: [DRAFT] Policy for Linux kernel, initramfs, boot loader update process

2010-06-28 Thread maximilian attems
On Mon, Jun 28, 2010 at 01:35:20PM +0100, Ben Hutchings wrote: On Mon, 2010-06-28 at 10:45 +0200, maximilian attems wrote: On Mon, 28 Jun 2010, Ben Hutchings wrote: [...] 4. During a kernel package installation, upgrade or removal, various boot loader hooks may be invoked (in this

Re: [DRAFT] Policy for Linux kernel, initramfs, boot loader update process

2010-06-28 Thread Stephen Powell
On Mon, 28 Jun 2010 12:45:10 -0400 (EDT), maximilian attems wrote: On Mon, 28 Jun 2010 03:02:35 +0100 Ben Hutchings wrote: 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. On Mon, Jun 28,

Re: [DRAFT] Policy for Linux kernel, initramfs, boot loader update process

2010-06-28 Thread Colin Watson
On Mon, Jun 28, 2010 at 03:02:35AM +0100, Ben Hutchings 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

Re: [DRAFT] Policy for Linux kernel, initramfs, boot loader update process

2010-06-28 Thread Ben Hutchings
On Mon, 2010-06-28 at 18:57 +0200, maximilian attems wrote: On Mon, Jun 28, 2010 at 01:35:20PM +0100, Ben Hutchings wrote: On Mon, 2010-06-28 at 10:45 +0200, maximilian attems wrote: On Mon, 28 Jun 2010, Ben Hutchings wrote: [...] 4. During a kernel package installation, upgrade or

Re: [DRAFT] Policy for Linux kernel, initramfs, boot loader update process

2010-06-28 Thread Ben Hutchings
On Mon, 2010-06-28 at 22:19 +, Colin Watson wrote: On Mon, Jun 28, 2010 at 03:02:35AM +0100, Ben Hutchings 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

Re: [DRAFT] Policy for Linux kernel, initramfs, boot loader update process

2010-06-28 Thread Ben Hutchings
Please reply to debian-kernel only. On Mon, 2010-06-28 at 11:16 -0400, Stephen Powell wrote: On Sun, 27 Jun 2010 22:02:35 -0400 (EDT), Ben Hutchings wrote: [...] The environment variable DEB_MAINT_PARAMS will contain the arguments given to the kernel maintainer script, single-quoted. Is

Re: [DRAFT] Policy for Linux kernel, initramfs, boot loader update process

2010-06-28 Thread Ben Hutchings
On Mon, 2010-06-28 at 18:45 +0200, maximilian attems wrote: [...] please get your facts right before spamming the world. Max, this is rude and unjustified. Ben. -- Ben Hutchings Once a job is fouled up, anything done to improve it makes it worse. signature.asc Description: This is a

[DRAFT] Policy for Linux kernel, initramfs, boot loader update process

2010-06-27 Thread Ben Hutchings
I propose the following policy for squeeze and later releases. This affects all Linux kernel, initramfs builder and boot loader packages, and the installer. I regret that this is happening so late in the release cycle, but currently a kernel update can easily leave the system unbootable and this