Bug#561287: kernel-package: postinst script looks for incorrect kernel image filename

2010-05-22 Thread CrazyOrc
Package: kernel-package
Version: 12.033
Severity: normal

The same error goes here.

Setting up linux-image-2.6.34-crorx (2.6.34-crorx-10.00.Custom) ...
Internal Error: Could not find image (/boot/bzImage-2.6.34-crorx)
dpkg: error processing linux-image-2.6.34-crorx (--configure):
 subprocess installed post-installation script returned error exit
status 2

Source of this error is in following lines in postinst script

# Paranoid check to make sure that the correct value is put in there
if(! $kimage){ $kimage = vmlinuz; } # Hmm. empty

...while in config and postrm scripts these lines look like

# Paranoid check to make sure that the correct value is put in there
if (! $kimage)  {$kimage = vmlinuz} # Hmm. empty
elsif ($kimage =~ m/^b?zImage$/o)   {$kimage = vmlinuz} # these
produce vmlinuz
elsif ($kimage =~ m/^[iI]mage$/o)   { my $nop = $kimage;}
elsif ($kimage =~ m/^vmlinux$/o){ my $nop = $kimage;}
elsif ($kimage =~ m/^xen[0u]-linux$/o){
$package_name   = ${kimage}-$version;}
else{$kimage = vmlinuz} # default

I suggest just to use the same lines in postinst script. For me this
solved the problem.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#561287: kernel-package: postinst script looks for incorrect kernel image filename

2010-03-23 Thread maximilian attems
tags 561287 moreinfo
stop

can you still reproduce that eror?

if yes please follow up with reportbug to add relevant info:
reportbug -N 561287


thanks




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#561287: kernel-package: postinst script looks for incorrect kernel image filename

2009-12-15 Thread Edouard Gomez
Package: kernel-package
Version: 12.031
Severity: grave
Justification: renders package unusable


Since a few builds using kernel-package, I get a nasty
error during install.

The message (for a second try) is:
LC_ALL=C sudo dpkg -i linux-image-2.6.32_2_amd64.deb 
(Reading database ... 121446 files and directories currently installed.)
Preparing to replace linux-image-2.6.32 2 (using 
linux-image-2.6.32_2_amd64.deb) ...
The directory /lib/modules/2.6.32 still exists. Continuing as directed.
Examining /etc/kernel/preinst.d/
Done.
Unpacking replacement linux-image-2.6.32 ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 2.6.32 
/boot/vmlinuz-2.6.32
Setting up linux-image-2.6.32 (2) ...
Internal Error: Could not find image (/boot/bzImage-2.6.32)
dpkg: error processing linux-image-2.6.32 (--install):

A first try does give the same error, it's just not saying it replaces the 
2.6.32
kernel with itself.

The error comes frfom the fact the .deb still ships a vmlinuz-2.6.32 file, but 
no
bzImage-2.6.32 file. I find myself editing the postinst script in the
/var/lib/dpkg/infos/linux-image${kernel version}.postinst

to replace the line
my $kimage = bzImage;   # Should be empty, mostly
with
my $kimage = vmlinuz;   # Should be empty, mostly

then i must issue this command:
$ sudo apt-get -f install

So that postinst is executed and gets the name correctly guessed.

The kernel has been built as follows:
$ hg clone http://kernel.org/hg/linux-2.6
$ cd linux-2.6
$ hg up -C v2.6.32
$ cp $data/linux-2.6.32.config .config
$ CONCURRENCY_LEVEL=2 make-kpkg \
   --bzimage --initrd --rootcmd fakeroot --revision 2

My kernel-img.conf is as follows:
# Kernel image management overrides
# See kernel-img.conf(5) for details
silent_modules = yes

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages kernel-package depends on:
ii  binutils  2.20-4 The GNU assembler, linker and bina
ii  build-essential   11.4   Informational list of build-essent
ii  debianutils   3.2.2  Miscellaneous utilities specific t
ii  file  5.03-4 Determines file type using magic
ii  gettext   0.17-8 GNU Internationalization utilities
ii  make  3.81-7 An utility for Directing compilati
ii  module-init-tools 3.11-1 tools for managing Linux kernel mo
ii  po-debconf1.0.16 tool for managing templates file t
ii  util-linux2.16.2-0   Miscellaneous system utilities

Versions of packages kernel-package recommends:
ii  cpio  2.10-1 GNU cpio -- a program to manage ar

Versions of packages kernel-package suggests:
ii  bzip2 1.0.5-3high-quality block-sorting file co
pn  docbook-utils none (no description available)
ii  e2fsprogs 1.41.9-1   ext2/ext3/ext4 file system utiliti
ii  initramfs-tools [linux-in 0.93.4 tools for generating an initramfs
pn  libdb3-devnone (no description available)
ii  libncurses5-dev [libncurs 5.7+20090803-2 developer's libraries and docs for
pn  linux-source | kernel-sou none (no description available)
pn  xmlto none (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#561287: kernel-package: postinst script looks for incorrect kernel image filename

2009-12-15 Thread Manoj Srivastava
reassign 561287 initramfs-tools
severity  561287  important
thanks

Hi,

This error is coming from /etc/kernel/postrm.d/initramfs-tools,
 which seems to be looking for a /boot/bzImage-2.6.32 for some
 reason. The fix probably lies in the initramfs-tools script, so
 reassigning.

manoj
-- 
It's amazing how many people you could be friends with if only they'd
make the first approach.
Manoj Srivastava sriva...@acm.org http://www.golden-gryphon.com/  
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org