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

Bug#359725: initramfs-tools: set -eu causes broken shell when not using bash?



Package: initramfs-tools
Version: 0.59
Severity: important


when upgrading kernels, I get the following error:

Setting up linux-image-2.6.16-1-686-smp (2.6.16-3) ...
Running depmod.
Finding valid ramdisk creators.
Using mkinitramfs-kpkg to build the ramdisk.
Other valid candidates: mkinitramfs-kpkg mkinitrd.yaird
/usr/sbin/mkinitramfs-kpkg: line 55: supported_host_version: unbound
variable
mkinitramfs-kpkg failed to create initrd image.


Looking at line 55, it checks if $supported_host_version is empty or
not.  However, it is in fact unset, which causes a fatal error due to
"set -eu" in the beginning fo the script.

This is possibly a bug due to non-posix'nes of sh-bash under which the script
was developed under?

Martin


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-686-smp
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages initramfs-tools depends on:
ii  busybox                       1:1.01-4   Tiny utilities for small and embed
ii  cpio                          2.6-11     GNU cpio -- a program to manage ar
ii  klibc-utils                   1.2.4-1    small statically-linked utilities 
ii  module-init-tools             3.2.2-2    tools for managing Linux kernel mo
ii  udev                          0.088-1    /dev/ and hotplug management daemo

initramfs-tools recommends no packages.

-- no debconf information



Reply to: