[pkg-cryptsetup-devel] Bug#574163: Bug#574163: "find: warning: Unix filenames usually don't conain slashes" in hook script

Jonas Meurer jonas at freesources.org
Tue Mar 16 23:39:55 UTC 2010


hey marc,

On 16/03/2010 Marc Haber wrote:
> update-initramfs -v includes the following complaints:
> 
> find: warning: Unix filenames usually don't contain slashes (though pathnames do).  That means that '-name `/etc/keyscript_swivel-*.ko'' will probably evaluate to false all the time on this system.  You might find the '-wholename' test more useful, or perhaps '-samefile'.  Alternatively, if you are using GNU grep, you could use 'find ... -print0 | grep -FzZ `/etc/keyscript_swivel-*.ko''.
> find: warning: Unix filenames usually don't contain slashes (though pathnames do).  That means that '-name `/etc/keyscript_swivel_generic.ko'' will probably evaluate to false all the time on this system.  You might find the '-wholename' test more useful, or perhaps '-samefile'.  Alternatively, if you are using GNU grep, you could use 'find ... -print0 | grep -FzZ `/etc/keyscript_swivel_generic.ko''.
> find: warning: Unix filenames usually don't contain slashes (though pathnames do).  That means that '-name `/etc/keyscript_swivel.ko'' will probably evaluate to false all the time on this system.  You might find the '-wholename' test more useful, or perhaps '-samefile'.  Alternatively, if you are using GNU grep, you could use 'find ... -print0 | grep -FzZ `/etc/keyscript_swivel.ko''.                                                 
> 
> This looks like the cryptsetup hook script code somehow confuses the
> keyscript name with a kernel module.

please set the shebang in /usr/share/initramfs-tools/hooks/cryptroot to
'#!/bin/sh -x' and send the initramfs-debug.log created with
'sh -x mkinitramfs -o /tmp/initramfs-debug 2>/tmp/initramfs-debug.log'
to this bugreport. don't forget to revert the change afterwards.

it seems like some bug in the initramfs cryptroot hook script adds the
keyscript path to $modules in add_device().

greetings,
 jonas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20100317/7cdf39f5/attachment.pgp>


More information about the pkg-cryptsetup-devel mailing list