On 08/04/2012 06:25 AM, Tam Nguyen wrote:
Thanks Todd.

-Tam

On Fri, Aug 3, 2012 at 6:48 PM, Todd And Margo Chester
<toddandma...@gmail.com <mailto:toddandma...@gmail.com>> wrote:

    On 07/31/2012 05:29 AM, Tam Nguyen wrote:

        You are very welcome, Todd.
        Please share with us your finding.  I would love to learn the
        mystery
        behind your issue.

        -Tam


    Hi Tam,

    So far:
         crypttab coughs on passwords with space:
    https://bugzilla.redhat.com/__show_bug.cgi?id=845698
    <https://bugzilla.redhat.com/show_bug.cgi?id=845698>

         Crypttab does not mount volume at boot:
    https://bugzilla.redhat.com/__show_bug.cgi?id=845701
    <https://bugzilla.redhat.com/show_bug.cgi?id=845701>

    Red Hat is pretty good about looking into these things,
    so now we wait.

    -T

Hi Tam,

Figured it out.  Or, rather the Red Hat guys figured it out for me.

As it transpires, crypttab thinks everything in the key file
is part of the pass phrase AND THAT INCLUDES THE *stinkin'*
LINE FEED!

You can see what I mean with the following:
     $ echo "abc" | hexdump -c
     0000000   a   b   c  \n

The \n at the end is the line feed and crypttab thinks
it is part of the pass phrase!

To create a \n free key file, you have to use "-n" option
in "echo".  For instance:
     $ echo -n "abc" | hexdump -c
     0000000   a   b   c

As you can see, no \n at the end.

I asked Red Hat if they would document this is the man page.
I have not heard back from them yet.
https://bugzilla.redhat.com/show_bug.cgi?id=845701

[editorial comment]AAAAAAAAAAAAHHHHHHHHHHHHHHHH!!!!![/editorial comment]

Thank you for all the help in fixing this.  I commented out my rc.local
work around and fstab now mounts /lin-bak correct at boot.

-T

Reply via email to