--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: initramfs-tools: set -eu causes broken shell when not using bash?
- From: Martin Stolle <mstoll@sus.mcgill.ca>
- Date: Tue, 28 Mar 2006 11:40:02 -0500
- Message-id: <20060328164002.15624.10625.reportbug@gs3020>
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
--- End Message ---
--- Begin Message ---
- To: 359725-done@bugs.debian.org
- Subject: Re: Bug#359725: initramfs-tools: set -eu causes broken shell when not using bash?
- From: maximilian attems <maks@sternwelten.at>
- Date: Tue, 28 Mar 2006 18:56:13 +0200
- Message-id: <20060328165613.GF11258@baikonur.stro.at>
- In-reply-to: <20060328164002.15624.10625.reportbug@gs3020>
- References: <20060328164002.15624.10625.reportbug@gs3020>
Version: 0.59b
On Tue, Mar 28, 2006 at 11:40:02AM -0500, Martin Stolle wrote:
> when upgrading kernels, I get the following error:
fixed in latest from incoming.debian.org
>
> 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?
sorry for slipping that through.
anyway please check next time against duplicate reports.
--
maks
--- End Message ---