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

Bug#344639: document hook script file name limitations



Package: initramfs-tools
Version: 0.44
Severity: minor

Naming a hook script suspend2-2_6_14 or suspend2-2.6.14 causes

lapse:/tmp# mkinitramfs -k -o /tmp/initramfs.img                          [1,355]
/usr/share/initramfs-tools/scripts/functions: line 92: array_suspend2-2_6_14=: command not found
/usr/share/initramfs-tools/scripts/functions: line 84: array_suspend2-2_6_14=2_6_14: command not found
PANIC: Circular dependancy.  Exiting.

After s/-/_, I echoes

/usr/share/initramfs-tools/scripts/functions: line 92: array_suspend2_2.6.14=: command not found
/usr/share/initramfs-tools/scripts/functions: line 63: ${array_suspend2_2.6.14}: bad substitution
/usr/share/initramfs-tools/scripts/functions: line 84: array_suspend2_2.6.14=: command not found
/usr/share/initramfs-tools/scripts/functions: line 63: ${array_suspend2_2.6.14}: bad substitution

but seems to work okay.

Please either fix this or document the shortcoming and a possible
workaround.

Thanks,

-- System Information:
Debian Release: testing/unstable
  APT prefers stable
  APT policy: (700, 'stable'), (600, 'testing'), (98, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-2-686
Locale: LANG=en_GB, LC_CTYPE=en_GB.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-9      GNU cpio -- a program to manage ar
ii  klibc-utils                   1.1.1-6    small statically-linked utilities 
ii  udev                          0.076-6    /dev/ and hotplug management daemo

initramfs-tools recommends no packages.

-- debconf-show failed

-- 
 .''`.     martin f. krafft <madduck@debian.org>
: :'  :    proud Debian developer and author: http://debiansystem.info
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP (sub)keys? Use subkeys.pgp.net as keyserver!
 
a: no.
q: should i include quotations after my reply?

Attachment: signature.asc
Description: Digital signature (GPG/PGP)


Reply to: