Bug#344639: document hook script file name limitations
On Sat, 24 Dec 2005, martin f krafft wrote:
> 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.
>
where can i find your hook files?
please attach them to this bug report, would be cool to clean that up.
couldn't reproduce with simple
sudo sh -c "> /usr/share/initramfs-tools/hooks/suspend2-2-6-14"
sudo mkinitramfs -o /tmp/foo
regards
--
maks
Reply to: