On Mon, Aug 6, 2012 at 4:02 PM, Todd And Margo Chester
<toddandma...@gmail.com <mailto:toddandma...@gmail.com>> wrote:

    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>
        <mailto: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>

             <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>

             <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
    <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



On 08/07/2012 05:32 AM, Tam Nguyen wrote:> Hi Todd,
> Thank you for the update.  I am going to test that out.
>
> -Tam
>

Hi Tam,

If all else fails, I wrote a proposed update to the man page.

crypttab tab man page password section needs to be update
https://bugzilla.redhat.com/show_bug.cgi?id=846140

And, Red Hat accepted it!

-T

Reply via email to