[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#640220: closed by Ben Hutchings <ben@decadent.org.uk> (Re: 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
     `-

Attachment: signature.asc
Description: Digital signature


Reply to: