GRML-Kernel, make-nfs-root and initrd

Thomas Lange lange at informatik.uni-koeln.de
Wed Feb 17 13:29:14 CET 2010


>>>>> On Wed, 17 Feb 2010 12:33:56 +0000, Darshaka Pathirana <dpat at syn-net.org> 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


More information about the linux-fai mailing list