Bug#375579: /scripts/local-top/lvm:28: sh: Syntax error: Bad substitution
Package: initramfs-tools
Version: 0.64
Severity: critical
Justification: breaks the whole system
Hello,
the changelog of version 0.65 of initramfs-tools says:
* scripts/local-top/lvm: Be careful to activate volume group on lilo boot
too. Although in that case we don't know the precise volume group, we
activate them all. Matches behaviour of previous hook.
This change seems to have introduced a bug in scripts/local-top/lvm on line 28
as it produces the following error message on boot:
/scripts/local-top/lvm:28: sh: Syntax error: Bad substitution
which causes the boot process to fail on my box as the root filesystem will
never show up as it is on LVM, making the system unusable.
The erroneous line looks is:
vg_lilo=${vg:0:2}
I'm not a good shell programmer, so I don't know whether this is a general
syntax error, a bashism that won't run on busybox or something else..
I downgraded initramfs-tools to 0.64 and regenerated the initrd files to work
this problem around for the moment.
TIA,
Flo
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16
Locale: LANG=C, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)
Versions of packages initramfs-tools depends on:
ii busybox 1:1.1.3-1 Tiny utilities for small and embed
ii cpio 2.6-13 GNU cpio -- a program to manage ar
ii klibc-utils 1.3.35-1 small statically-linked utilities
ii module-init-tools 3.2.2-3 tools for managing Linux kernel mo
ii udev 0.093-1 /dev/ and hotplug management daemo
initramfs-tools recommends no packages.
-- no debconf information
Reply to: