linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Frederick Gazerblezeebe <fgazerblezeebe@gmail.com>
To: linux-crypto@vger.kernel.org
Cc: Jari Ruusu <jariruusu@users.sourceforge.net>
Subject: Re: loop-aes encrypted root on Fedora 15 using systemd
Date: Tue, 7 Jun 2011 07:28:02 -0700	[thread overview]
Message-ID: <BANLkTingxPqTOcgvfu81dKn7ix1Rnauqgw@mail.gmail.com> (raw)
In-Reply-To: <4DE9DE4E.1343B64B@users.sourceforge.net>

On Sat, Jun 4, 2011 at 12:27 AM, Jari Ruusu
<jariruusu@users.sourceforge.net> wrote:
> Frederick Gazerblezeebe wrote:
>> Starting /home aborted because a dependency failed.
>> systemd: job dev-loop3.device/start failed with result 'timeout'
> [snip]
>> Changing the fstab entry per your suggestion fails to add any swap:
>>
>> XXX[101]% swapon -s
>> Filename                                Type            Size    Used    Priority
>> XXX[102]% swapoff -a
>> XXX[103]% swapon -a
>> swapon: /dev/loop5: read swap header failed: Invalid argument
>
> If you use non-changing encryption keys for swap, you have to "format" the
> device as swap (this needs to be done only once):
>
>    swapoff -a
>    mkswap /dev/loop5
>    swapon -a
>
> If /dev/loop5 encryption keys are ever changed, then mkswap has to be run
> again. (When swapon program sets up random swap encryption keys, it runs
> mkswap automatically)
>

Doh, I knew this; must have been tired when I tried it..  So,
initializing the swap correctly, the behavior remains the same: The
boot process stalls (but does not abort, resuming after a minute or so
delay) with the same error as before (Unit
systemd-tmpfiles-setup.service entered failed state; Job
dev-loop5.swap/start failed with result 'dependency';
 Job dev-loop5.device/start failed with result 'timeout'.)

>> Jun  3 13:17:49 mars systemd[1]: Unit systemd-tmpfiles-setup.service
>>  .
>> Jun  3 13:19:02 mars systemd[1]: Job dev-loop5.device/start timed out.
>> Jun  3 13:19:02 mars systemd[1]: Job dev-loop5.swap/start failed with
>> result 'dependency'.
>> Jun  3 13:19:02 mars systemd[1]: Job dev-loop5.device/start failed
>> with result 'timeout'.
>
> That sounds like systemd is waiting for devices to be created. Does it help
> if you configure udev to copy loop device nodes to /dev directory on boot?
>
>    mknod -m 660 /lib/udev/devices/loop0 b 7 0
>    mknod -m 660 /lib/udev/devices/loop1 b 7 1
>    mknod -m 660 /lib/udev/devices/loop2 b 7 2
>    mknod -m 660 /lib/udev/devices/loop3 b 7 3
>    mknod -m 660 /lib/udev/devices/loop4 b 7 4
>    mknod -m 660 /lib/udev/devices/loop5 b 7 5
>    mknod -m 660 /lib/udev/devices/loop6 b 7 6
>    mknod -m 660 /lib/udev/devices/loop7 b 7 7
>
The loop nodes are already present /lib/udev, so that is not the
source of the (mis)behavior. I had to create static links in /dev for
loop2 and sda2, loop3 and sda3, and loop5 and sda5 (root, home and
swap, respectively), in order to get them initialized and show up (via
losetup -a) after booting. At the present time, root is the only
partition whose loop device is successfully mounted during boot.  The
others (swap, home) have to be mounted to after booting has completed.

Next I will post a summary of what I have done and where I am,
including the behaviors we are discussing here, in reply to the
original topic.

...and again, thanks for all the help!

FG

  reply	other threads:[~2011-06-07 14:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-30 21:31 loop-aes encrypted root on Fedora 15 using systemd Frederick Gazerblezeebe
2011-05-31 12:59 ` Jari Ruusu
2011-06-02  3:10   ` Frederick Gazerblezeebe
2011-06-03 16:42   ` Frederick Gazerblezeebe
2011-06-03 17:38     ` Jari Ruusu
2011-06-03 21:34       ` Frederick Gazerblezeebe
2011-06-04  7:27         ` Jari Ruusu
2011-06-07 14:28           ` Frederick Gazerblezeebe [this message]
2011-06-29 16:42 ` Frederick Gazerblezeebe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BANLkTingxPqTOcgvfu81dKn7ix1Rnauqgw@mail.gmail.com \
    --to=fgazerblezeebe@gmail.com \
    --cc=jariruusu@users.sourceforge.net \
    --cc=linux-crypto@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).