linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jari Ruusu <jariruusu@users.sourceforge.net>
To: Frederick Gazerblezeebe <fgazerblezeebe@gmail.com>
Cc: linux-crypto@vger.kernel.org
Subject: Re: loop-aes encrypted root on Fedora 15 using systemd
Date: Sat, 04 Jun 2011 10:27:10 +0300	[thread overview]
Message-ID: <4DE9DE4E.1343B64B@users.sourceforge.net> (raw)
In-Reply-To: BANLkTinkcphRNuRffwu4T1d+Kr1T2Vd=Lw@mail.gmail.com

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)

> Jun  3 13:17:49 mars systemd[1]: Unit systemd-tmpfiles-setup.service
> entered failed state.
> 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

-- 
Jari Ruusu  1024R/3A220F51 5B 4B F9 BB D3 3F 52 E9  DB 1D EB E3 24 0E A9 DD

  reply	other threads:[~2011-06-04  7:27 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 [this message]
2011-06-07 14:28           ` Frederick Gazerblezeebe
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=4DE9DE4E.1343B64B@users.sourceforge.net \
    --to=jariruusu@users.sourceforge.net \
    --cc=fgazerblezeebe@gmail.com \
    --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).