From: "Joseph D. Wagner" <joe-d25e1lPyJDacX41WfeyM6aHonnlKzd3f@public.gmane.org>
To: Michael Chapman <mike-t5o/rqeHJupYO+ANumB+pti2O/JbrIOy@public.gmane.org>
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: Unable to boot with encrypted swap
Date: Mon, 13 May 2013 20:06:17 -0700 [thread overview]
Message-ID: <5191AA29.3010107@josephdwagner.info> (raw)
In-Reply-To: <alpine.LFD.2.03.1305141241010.30473-N07bVqg5a7VBDLzU/O5InQ@public.gmane.org>
On 05/13/2013 07:43 PM, Michael Chapman wrote:
> Hello,
>
> I am using Fedora 19's dracut-027-45.git20130430.
>
> I have what is possibly an unusual configuration: my swap and /home
> are encrypted, however my root filesystem is not. In /etc/crypttab I
> have configured LUKS to take the swap volume's password from
> /dev/urandom; it also has the "swap" flag so that it is mkswap'ed
> during boot.
>
> The problem I am experiencing is that my initramfs hangs waiting for
> the swap device to appear.
>
> As of commit dd5875499ece9dbc90e10eafd0073ee15d0c86a4, it looks like
> Dracut adds discovered swap partitions to the list of devices to wait
> for. However since my root filesystem itself is not encrypted, no
> crypto components are actually installed into the initramfs. The end
> result is that this volume never appears, and so the initramfs never
> continues on.
>
> I am not sure of the background behind this commit. Is there a real
> need to wait for swap during initramfs? Won't this just be picked up
> later by systemd?
>
> Should Dracut just skip swap partitions that are encrypted? Or should
> it detect the existence of an encrypted swap partition and treat it as
> it would an encrypted root?
>
> For now, I've had to revert that commit on my system for it to be able
> to boot.
>
> Regards,
> Michael
>
I'm pretty sure this is needed for resume-from-suspend. My money is on
a configuration problem. I'd be happy to take a look.
Please post:
/etc/crypttab
/etc/fstab
/proc/partitions
/proc/cmdline
output from `blkid'
next prev parent reply other threads:[~2013-05-14 3:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-14 2:43 Unable to boot with encrypted swap Michael Chapman
[not found] ` <alpine.LFD.2.03.1305141241010.30473-N07bVqg5a7VBDLzU/O5InQ@public.gmane.org>
2013-05-14 3:06 ` Joseph D. Wagner [this message]
[not found] ` <5191AA29.3010107-d25e1lPyJDacX41WfeyM6aHonnlKzd3f@public.gmane.org>
2013-05-14 3:22 ` Michael Chapman
[not found] ` <alpine.LFD.2.03.1305141317480.30473-N07bVqg5a7VBDLzU/O5InQ@public.gmane.org>
2013-05-14 3:53 ` Joseph D. Wagner
[not found] ` <5191B539.9000705-d25e1lPyJDacX41WfeyM6aHonnlKzd3f@public.gmane.org>
2013-05-14 7:28 ` Michael Chapman
[not found] ` <alpine.LFD.2.03.1305141717040.30473-N07bVqg5a7VBDLzU/O5InQ@public.gmane.org>
2013-05-14 7:47 ` Michael Chapman
2013-05-14 3:27 ` Michael Chapman
2013-05-16 8:17 ` Colin Guthrie
2013-05-17 1:38 ` Michael Chapman
[not found] ` <alpine.LFD.2.03.1305171058310.30473-N07bVqg5a7VBDLzU/O5InQ@public.gmane.org>
2013-05-28 11:43 ` Harald Hoyer
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=5191AA29.3010107@josephdwagner.info \
--to=joe-d25e1lpyjdacx41wfeym6ahonnlkzd3f@public.gmane.org \
--cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mike-t5o/rqeHJupYO+ANumB+pti2O/JbrIOy@public.gmane.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