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 09-05-2011, 04:53 AM
Michael Ott
 
Default Bug#640220: closed by Ben Hutchings ( Bug#640220: linux-image-3.0.0-1-orion5x: Cannot update kernel image)

> > Package: linux-2.6
> > Version: 3.0.0-3
> > Severity: normal
> >
> > When I try to upgrade my system I got the following error:
> > Setting up linux-image-3.0.0-1-orion5x (3.0.0-3) ...
> > Running depmod.
> > vmlinuz(/boot/vmlinuz-3.0.0-1-orion5x
> > ) points to /boot/vmlinuz-3.0.0-1-orion5x
> > (/boot/vmlinuz-3.0.0-1-orion5x) -- doing nothing at /var/lib/dpkg/info/linux-image-3.0.0-1-orion5x.postinst line 346.
> > The link /boot/initrd.img is a dangling linkto /boot/initrd.img-3.0.0-1-orion5x
> > Running flash-kernel.
> > Can't find /boot/vmlinuz-3.0.0-1-orion5x and /boot/initrd.img-3.0.0-1-orion5x
> > User postinst hook script [flash-kernel] exited with value 1
> [...]
>
> You appear to have manually configured flash-kernel to run during a
> kernel upgrade by setting postinst_hook in /etc/kernel-img.conf. This
> is wrong because any command specified there is run before the initramfs
> is created or updated. The flash-kernel command should be run
> automatically at the correct time, so the upgrade should work if you
> just unset postinst_hook.
Maybe I done it but I do not know why. I believe that this is the
originell version which was installed or updated. The first installed
kernel was 2.6.26. I removed it a few days ago.

But after unset postinst_hook there is no error but also the kernel will
not update the flash

# apt-get unstable install linux-image-orion5x
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
linux-image-3.0.0-1-orion5x
Suggested packages:
linux-doc-3.0.0 fdutils
The following NEW packages will be installed:
linux-image-3.0.0-1-orion5x linux-image-orion5x
0 upgraded, 2 newly installed, 0 to remove and 66 not
upgraded.
Need to get 0 B/20.7 MB of archives.
After this operation, 61.3 MB of additional disk space will
be used.
Do you want to continue [Y/n]?
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
Preconfiguring packages ...
Selecting previously deselected package
linux-image-3.0.0-1-orion5x.
(Reading database ... 34282 files and directories currently
installed.)
Unpacking linux-image-3.0.0-1-orion5x (from .../linux-image-3.0.0-1-orion5x_3.0.0-3_armel.deb) ...
Selecting previously deselected package linux-image-orion5x.
Unpacking linux-image-orion5x (from .../linux-image-orion5x_3.0.0+39_armel.deb) ...
Setting up linux-image-3.0.0-1-orion5x (3.0.0-3) ...
Running depmod.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.0.0-1-orion5x /boot/vmlinuz-3.0.0-1-orion5x
update-initramfs: Generating
/boot/initrd.img-3.0.0-1-orion5x
Setting up linux-image-orion5x (3.0.0+39) ...

After restart the old kernel is running:

$ uname -a
Linux king-coder14.king-coder 2.6.32-5-orion5x #1 Wed Jun 15
03:39:17 UTC 2011 armv5tel GNU/Linux

CU

Michael

--
,'`.
: :' : Michael Ott
`. `' e-mail: michael at king-coder dot de
`-
 
Old 09-05-2011, 11:16 AM
Ben Hutchings
 
Default Bug#640220: closed by Ben Hutchings ( Bug#640220: linux-image-3.0.0-1-orion5x: Cannot update kernel image)

On Mon, 2011-09-05 at 06:53 +0200, Michael Ott wrote:
> > > Package: linux-2.6
> > > Version: 3.0.0-3
> > > Severity: normal
> > >
> > > When I try to upgrade my system I got the following error:
> > > Setting up linux-image-3.0.0-1-orion5x (3.0.0-3) ...
> > > Running depmod.
> > > vmlinuz(/boot/vmlinuz-3.0.0-1-orion5x
> > > ) points to /boot/vmlinuz-3.0.0-1-orion5x
> > > (/boot/vmlinuz-3.0.0-1-orion5x) -- doing nothing at /var/lib/dpkg/info/linux-image-3.0.0-1-orion5x.postinst line 346.
> > > The link /boot/initrd.img is a dangling linkto /boot/initrd.img-3.0.0-1-orion5x
> > > Running flash-kernel.
> > > Can't find /boot/vmlinuz-3.0.0-1-orion5x and /boot/initrd.img-3.0.0-1-orion5x
> > > User postinst hook script [flash-kernel] exited with value 1
> > [...]
> >
> > You appear to have manually configured flash-kernel to run during a
> > kernel upgrade by setting postinst_hook in /etc/kernel-img.conf. This
> > is wrong because any command specified there is run before the initramfs
> > is created or updated. The flash-kernel command should be run
> > automatically at the correct time, so the upgrade should work if you
> > just unset postinst_hook.
> Maybe I done it but I do not know why. I believe that this is the
> originell version which was installed or updated. The first installed
> kernel was 2.6.26. I removed it a few days ago.

It's possible that the installer used to set this (it certainly used to
do something similar for GRUB on x86).

> But after unset postinst_hook there is no error but also the kernel will
> not update the flash
[...]

OK, I'll reopen this and reassign to flash-kernel. It ought to have
fixed this configuration on upgrade.

Ben.




--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 1315221398.3092.279.camel@deadeye">http://lists.debian.org/1315221398.3092.279.camel@deadeye
 

Thread Tools




All times are GMT. The time now is 01:38 PM.

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