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

Bug#427656: linux-image-2.6.21-1-686: The sub run_hook is something strange



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:



Reply to: