Bug 696417 - systemd not unlocking encrypted swap partition
Summary: systemd not unlocking encrypted swap partition
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lennart Poettering
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-14 02:46 UTC by Paul W. Frields
Modified: 2011-04-20 16:14 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-20 16:14:47 UTC
Type: ---


Attachments (Terms of Use)
First few minutes of boot from /var/log/messages (174.22 KB, text/plain)
2011-04-14 02:46 UTC, Paul W. Frields
no flags Details

Description Paul W. Frields 2011-04-14 02:46:07 UTC
Created attachment 491937 [details]
First few minutes of boot from /var/log/messages

Description of problem:
Boot takes an extremely long time.  I rebooted with systemd.log_level=debug (messages log attached) and found that the timeout was happening while waiting for the swap device to become available.  (My encrypted partitions share a global passphrase, confirmed it works using a manual "cryptsetup luksOpen".)

Version-Release number of selected component (if applicable):
systemd-24-1.fc15.x86_64

/etc/fstab:
# Created by anaconda on Mon Apr 11 17:46:42 2011
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/luks-7ed2e726-4dfb-488d-9a1b-9b308d2b47a6 /                       ext4    defaults        1 1
UUID=aed9c498-d4d0-4e9d-acc9-040481e45a9a /boot                   ext4    defaults        1 2
/dev/mapper/luks-c893e477-4de3-4e65-a507-09ee6bbb046b /home                   ext4    defaults        1 2
/dev/mapper/vgTpad-var  /var                    ext4    defaults        1 2
/dev/mapper/vgTpad-virtimages /var/lib/libvirt/images ext4    defaults        1 2
/dev/mapper/vgTpad-mysql /var/lib/mysql          ext4    defaults        1 2
/dev/mapper/vgTpad-www  /var/www                ext4    defaults        1 2
/dev/mapper/vgTpad-fedora /var/www/fedora         ext4    defaults        1 2
/dev/mapper/luks-246447f8-ceb7-4740-970f-ed0d072d0aff swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0

Comment 1 Lennart Poettering 2011-04-19 19:27:51 UTC
ob dev-mapper-luks\x2d246447f8\x2dceb7\x2d4740\x2d970f\x2ded0d072d0aff.device/start timed out.

Seems your swap device never shows up. Can you try upgrading to the newest initscripts build from koji? It fixes a couple of things with LVM and LUKS stacked on each other.

Comment 2 Paul W. Frields 2011-04-20 16:14:47 UTC
I'm currently using initscripts-9.29-1.fc15, and the problem appears to be fixed.


Note You need to log in before you can comment on or make changes to this bug.