>>>>> On Wed, 17 Feb 2010 12:33:56 +0000, Darshaka Pathirana <[email protected]> 
>>>>> said:

    > Because:

    > # ls /etc/fai/nfsroot-hooks/*
    > /etc/fai/nfsroot-hooks/10-gen-initrd

    > But:

    > # ls /etc/fai/nfsroot-hooks/* 2>/dev/null | egrep '^[[:alnum:]_.-]+$'

    > is empty.

    > (Maybe you are trying to match the basename instead of the full path?)

Yep, this seems to be a bug. I think this will fix it.

-        for file in $(ls $NFSROOT_HOOKS/* 2>/dev/null | egrep 
'^[[:alnum:]_.-]+$'); do
-            . $file
+        for file in $(cd $NFSROOT_HOOKS; ls 2>/dev/null | egrep 
'^[[:alnum:]_.-]+$'); do
+            . $NFSROOT_HOOKS/$file


-- 
regards Thomas

Antwort per Email an