FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 10-28-2009, 11:21 AM
Michal Suchanek
 
Default Bug#523735: please consider supporting the experimental kernel-package out of the box

Package: initramfs-tools


As I understand it this hook script that is being pached was up to now
essentially equivalent to the command 'true'.

It would detect if the kernel installed is an official Debian kernel or
a kernel-package kernel and then do nothing in both cases because the
kernels would create an initramfs themselves.

With kernel-package version 12 the kernel-package kernels now want
initramfs-tools to take care of the initramfs so that kernel-package
does not have to change should the commandline options of
initramfs-tools change.

So the script should read:

------------
# Official Debian kernels make an initramfs themselves.
# kernel-package kernels pass an additional argument which specifies
# where the kernel should be created.
# kernel-package kernels for kernel-package << 12 make an initramfs
# themselves.
# kernel-package kernels >= 12.0.88 set KERNEL_PACKAGE_VERSION
# kernel-package between 12 and 12.0.88 is not supported.

if [ -n "$KERNEL_PACKAGE_VERSION" ] ; then
<create or update initramfs for kernel version $1 in directory $2 >
fi
--------------

Thanks

Michal



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 10-29-2009, 01:56 PM
maximilian attems
 
Default Bug#523735: please consider supporting the experimental kernel-package out of the box

On Wed, Oct 28, 2009 at 01:21:27PM +0100, Michal Suchanek wrote:
> Package: initramfs-tools
>
>
> As I understand it this hook script that is being pached was up to now
> essentially equivalent to the command 'true'.
>
> It would detect if the kernel installed is an official Debian kernel or
> a kernel-package kernel and then do nothing in both cases because the
> kernels would create an initramfs themselves.
>
> With kernel-package version 12 the kernel-package kernels now want
> initramfs-tools to take care of the initramfs so that kernel-package
> does not have to change should the commandline options of
> initramfs-tools change.
>

checkout latest initramfs-tools git, fixed there.



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 10-29-2009, 03:35 PM
maximilian attems
 
Default Bug#523735: please consider supporting the experimental kernel-package out of the box

On Thu, Oct 29, 2009 at 05:36:28PM +0100, Michal Suchanek wrote:
> 2009/10/29 maximilian attems <max@stro.at>:
> > On Wed, Oct 28, 2009 at 01:21:27PM +0100, Michal Suchanek wrote:
>
> Indeed, downloading a replacement script from gitweb seems to work.
>
> However, unlike the official kernel scripts this one does not say it
> is creating an initrd.

sorry didn't get the difference in behaviour, can you please be
more explicit, thanks




--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 10-29-2009, 03:36 PM
Michal Suchanek
 
Default Bug#523735: please consider supporting the experimental kernel-package out of the box

2009/10/29 maximilian attems <max@stro.at>:
> On Wed, Oct 28, 2009 at 01:21:27PM +0100, Michal Suchanek wrote:
>> Package: initramfs-tools
>>
>>
>> As I understand it this hook script that is being pached was up to now
>> essentially equivalent to the command 'true'.
>>
>> It would detect if the kernel installed is an official Debian kernel or
>> a kernel-package kernel and then do nothing in both cases because the
>> kernels would create an initramfs themselves.
>>
>> With kernel-package version 12 the kernel-package kernels now want
>> initramfs-tools to take care of the initramfs so that kernel-package
>> does not have to change should the commandline options of
>> initramfs-tools change.
>>
>
> checkout latest initramfs-tools git, fixed there.
>

Indeed, downloading a replacement script from gitweb seems to work.

However, unlike the official kernel scripts this one does not say it
is creating an initrd.

Thanks

Michal



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 10-29-2009, 04:07 PM
Michal Suchanek
 
Default Bug#523735: please consider supporting the experimental kernel-package out of the box

2009/10/29 maximilian attems <max@stro.at>:
> On Thu, Oct 29, 2009 at 05:36:28PM +0100, Michal Suchanek wrote:
>> 2009/10/29 maximilian attems <max@stro.at>:
>> > On Wed, Oct 28, 2009 at 01:21:27PM +0100, Michal Suchanek wrote:
>>
>> Indeed, downloading a replacement script from gitweb seems to work.
>>
>> However, unlike the official kernel scripts this one does not say it
>> is creating an initrd.
>
> sorry didn't get the difference in behaviour, can you please be
> more explicit, thanks
>
>

This is the output of upgrading an official kernel:

Setting up linux-image-2.6.26-2-686 (2.6.26-19lenny1) ...
Running depmod.
Running mkinitramfs-kpkg.
Deprecation WARNING: use update-initramfs(8)
Not updating initrd symbolic links since we are being updated/reinstalled
(2.6.26-19 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled
(2.6.26-19 was configured last, according to dpkg)
Running postinst hook script update-grub.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-rc3
Found initrd image: /boot/initrd.img-2.6.32-rc3
Found linux image: /boot/vmlinuz-2.6.30-2-686
Found initrd image: /boot/initrd.img-2.6.30-2-686
Found linux image: /boot/vmlinuz-2.6.30-1-686
Found initrd image: /boot/initrd.img-2.6.30-1-686
Found linux image: /boot/vmlinuz-2.6.26-2-686
Found initrd image: /boot/initrd.img-2.6.26-2-686
done
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools


Obviously, the /etc/kernel/postinst.d/initramfs-tools hook is run for
every kernel (and it seems to run at the wrong time btw) so the fact
it is running does not say anything.

However, the official kernel also says "Running mkinitramfs-kpkg."

Thanks

Michal



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 10-29-2009, 04:21 PM
maximilian attems
 
Default Bug#523735: please consider supporting the experimental kernel-package out of the box

On Thu, Oct 29, 2009 at 06:07:06PM +0100, Michal Suchanek wrote:
> 2009/10/29 maximilian attems <max@stro.at>:
> > On Thu, Oct 29, 2009 at 05:36:28PM +0100, Michal Suchanek wrote:
> >> 2009/10/29 maximilian attems <max@stro.at>:
> >> > On Wed, Oct 28, 2009 at 01:21:27PM +0100, Michal Suchanek wrote:
> >>
> >> Indeed, downloading a replacement script from gitweb seems to work.
> >>
> >> However, unlike the official kernel scripts this one does not say it
> >> is creating an initrd.
> >
> > sorry didn't get the difference in behaviour, can you please be
> > more explicit, thanks
> >
> >
>
> This is the output of upgrading an official kernel:
>
> Setting up linux-image-2.6.26-2-686 (2.6.26-19lenny1) ...
> Running depmod.
> Running mkinitramfs-kpkg.
> Deprecation WARNING: use update-initramfs(8)
> Not updating initrd symbolic links since we are being updated/reinstalled
> (2.6.26-19 was configured last, according to dpkg)
> Not updating image symbolic links since we are being updated/reinstalled
> (2.6.26-19 was configured last, according to dpkg)
> Running postinst hook script update-grub.
> Generating grub.cfg ...
> Found linux image: /boot/vmlinuz-2.6.32-rc3
> Found initrd image: /boot/initrd.img-2.6.32-rc3
> Found linux image: /boot/vmlinuz-2.6.30-2-686
> Found initrd image: /boot/initrd.img-2.6.30-2-686
> Found linux image: /boot/vmlinuz-2.6.30-1-686
> Found initrd image: /boot/initrd.img-2.6.30-1-686
> Found linux image: /boot/vmlinuz-2.6.26-2-686
> Found initrd image: /boot/initrd.img-2.6.26-2-686
> done
> Examining /etc/kernel/postinst.d.
> run-parts: executing /etc/kernel/postinst.d/initramfs-tools
>
>
> Obviously, the /etc/kernel/postinst.d/initramfs-tools hook is run for
> every kernel (and it seems to run at the wrong time btw) so the fact
> it is running does not say anything.

wrong time?
for grub it shouldn't matter at all and for lilo update-initramfs
will take care.

> However, the official kernel also says "Running mkinitramfs-kpkg."

that changed to u-i in newer linux-2.6

ah so you want an output of the script, sorry misread, well why not..



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 10-29-2009, 09:50 PM
Michal Suchanek
 
Default Bug#523735: please consider supporting the experimental kernel-package out of the box

2009/10/29 maximilian attems <max@stro.at>:
> On Thu, Oct 29, 2009 at 06:07:06PM +0100, Michal Suchanek wrote:
>> 2009/10/29 maximilian attems <max@stro.at>:
>> > On Thu, Oct 29, 2009 at 05:36:28PM +0100, Michal Suchanek wrote:
>> >> 2009/10/29 maximilian attems <max@stro.at>:
>> >> > On Wed, Oct 28, 2009 at 01:21:27PM +0100, Michal Suchanek wrote:
>> >>
>> >> Indeed, downloading a replacement script from gitweb seems to work.
>> >>
>> >> However, unlike the official kernel scripts this one does not say it
>> >> is creating an initrd.
>> >
>> > sorry didn't get the difference in behaviour, can you please be
>> > more explicit, thanks
>> >
>> >
>>
>> This is the output of upgrading an official kernel:
>>
>> Setting up linux-image-2.6.26-2-686 (2.6.26-19lenny1) ...
>> Running depmod.
>> Running mkinitramfs-kpkg.
>> Deprecation WARNING: use update-initramfs(8)
>> Not updating initrd symbolic links since we are being updated/reinstalled
>> (2.6.26-19 was configured last, according to dpkg)
>> Not updating image symbolic links since we are being updated/reinstalled
>> (2.6.26-19 was configured last, according to dpkg)
>> Running postinst hook script update-grub.
>> Generating grub.cfg ...
>> Found linux image: /boot/vmlinuz-2.6.32-rc3
>> Found initrd image: /boot/initrd.img-2.6.32-rc3
>> Found linux image: /boot/vmlinuz-2.6.30-2-686
>> Found initrd image: /boot/initrd.img-2.6.30-2-686
>> Found linux image: /boot/vmlinuz-2.6.30-1-686
>> Found initrd image: /boot/initrd.img-2.6.30-1-686
>> Found linux image: /boot/vmlinuz-2.6.26-2-686
>> Found initrd image: /boot/initrd.img-2.6.26-2-686
>> done
>> Examining /etc/kernel/postinst.d.
>> run-parts: executing /etc/kernel/postinst.d/initramfs-tools
>>
>>
>> Obviously, the /etc/kernel/postinst.d/initramfs-tools hook is run for
>> every kernel (and it seems to run at the wrong time btw) so the fact
>> it is running does not say anything.
>
> wrong time?
> for grub it shouldn't matter at all and for lilo update-initramfs
> will take care.

It does matter for grub because if update-grub does not see the initrd
it is not included.

There is something that triggers update-grub once more later, though.

>
>> However, the official kernel also says "Running mkinitramfs-kpkg."
>
> that changed to u-i in newer linux-2.6
>
> ah so you want an output of the script, sorry misread, well why not..

Well, some indication that something is actually going on is quite
helpful at times.


Thanks

Michal



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 04:02 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org