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

Bug#427656: marked as done (linux-image-2.6.21-1-686: The sub run_hook is something strange)



Your message dated Wed, 6 Jun 2007 01:14:46 +0200
with message-id <20070605231446.GA17170@baikonur.stro.at>
and subject line Bug#427656: cat /etc/kernel-img.conf
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: linux-image-2.6.21-1-686
Version: 2.6.21-4
Severity: important


I'm using debian unstable. Since some time ago, when I try to upgrade my kernel (like: aptitude install 
linux-image-2.6.21) i get the message:

Could not find postinst hook script [usr/sbin/update-grub].
Looked in: '/bin', '/sbin', '/usr/bin', '/usr/sbin'
dpkg: error processing linux-image-2.6.21-1-686 (--configure):
 subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
 linux-image-2.6.21-1-686


The problem lies on the sub run_hook on the postinstall script.

The trouble part is that:

    # Look for it in a safe path
    for my $path ('/bin', '/sbin', '/usr/bin', '/usr/sbin') {
      if (-x "$path/$script") {
        &exec_script($type, "$path/$script");
        return 0;
      }
    }

If I strip the path thing from the script like that:

        &exec_script($type, "$script");

it works ok.

-- Package-specific info:

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.20-1-686 (SMP w/2 CPU cores)
Locale: LANG=pt_BR, LC_CTYPE=pt_BR (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages linux-image-2.6.21-1-686 depends on:
ii  module-init-tools            3.3-pre11-1 tools for managing Linux kernel mo
ii  yaird [linux-initramfs-tool] 0.0.12-20   Yet Another mkInitRD

Versions of packages linux-image-2.6.21-1-686 recommends:
ii  libc6-i686                    2.5-10     GNU C Library: Shared libraries [i

-- debconf information:
  linux-image-2.6.21-1-686/postinst/kimage-is-a-directory:
  linux-image-2.6.21-1-686/preinst/lilo-initrd-2.6.21-1-686: true
  linux-image-2.6.21-1-686/preinst/elilo-initrd-2.6.21-1-686: true
  linux-image-2.6.21-1-686/preinst/abort-overwrite-2.6.21-1-686:
  linux-image-2.6.21-1-686/postinst/old-dir-initrd-link-2.6.21-1-686: true
  linux-image-2.6.21-1-686/postinst/bootloader-test-error-2.6.21-1-686:
  linux-image-2.6.21-1-686/preinst/already-running-this-2.6.21-1-686:
  linux-image-2.6.21-1-686/preinst/initrd-2.6.21-1-686:
  linux-image-2.6.21-1-686/postinst/create-kimage-link-2.6.21-1-686: true
  linux-image-2.6.21-1-686/preinst/overwriting-modules-2.6.21-1-686: true
  shared/kernel-image/really-run-bootloader: true
  linux-image-2.6.21-1-686/prerm/removing-running-kernel-2.6.21-1-686: true
  linux-image-2.6.21-1-686/postinst/depmod-error-2.6.21-1-686: false
  linux-image-2.6.21-1-686/postinst/old-initrd-link-2.6.21-1-686: true
  linux-image-2.6.21-1-686/preinst/lilo-has-ramdisk:
  linux-image-2.6.21-1-686/postinst/bootloader-error-2.6.21-1-686:
  linux-image-2.6.21-1-686/preinst/bootloader-initrd-2.6.21-1-686: true
  linux-image-2.6.21-1-686/prerm/would-invalidate-boot-loader-2.6.21-1-686: true
  linux-image-2.6.21-1-686/preinst/abort-install-2.6.21-1-686:
  linux-image-2.6.21-1-686/postinst/depmod-error-initrd-2.6.21-1-686: false
  linux-image-2.6.21-1-686/postinst/old-system-map-link-2.6.21-1-686: true
  linux-image-2.6.21-1-686/preinst/failed-to-move-modules-2.6.21-1-686:


--- End Message ---
--- Begin Message ---
On Tue, Jun 05, 2007 at 02:43:31PM -0300, Walter Cruz wrote:
> The results of cat /etc/kernel-img.conf
> (never edited that file)
> 
> do_symlinks = yes
> relative_links = yes
> do_bootloader = no
> do_bootfloppy = no
> do_initrd = yes
> link_in_boot = no
> postinst_hook = usr/sbin/update-grub
> postrm_hook   = usr/sbin/update-grub

as expected passing faulty values here.
aboves is not a correct path, you'd need to have on both lines
/usr/sbin/update-grub

closing

--
maks

--- End Message ---

Reply to: