All of lore.kernel.org
 help / color / mirror / Atom feed
* Unable to boot with encrypted swap
@ 2013-05-14  2:43 Michael Chapman
       [not found] ` <alpine.LFD.2.03.1305141241010.30473-N07bVqg5a7VBDLzU/O5InQ@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Michael Chapman @ 2013-05-14  2:43 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-05-28 11:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
     [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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.