bootwait option does not work for swap partitions (needed for encrypted swap)

Bug #1028668 reported by Martijn Lievaart
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mountall (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

I set up a fresh ubuntu with the alternate installer. I have a separate /boot, an encrypted partition for LVM and an encrypted partition for swap.

At boot, I'm asked my passphrase for the encrypted LVM partition. I briefly see a prompt for a passphrase for my swap, but then lightdm takes over and gives me a logon prompt.

If I manually setup the correct mapping for the swap partition, I can (obviously) manually issue a swapon -a.

Phillip Susi (psusi)
affects: grub2 (Ubuntu) → cryptsetup (Ubuntu)
Revision history for this message
Steve Langasek (vorlon) wrote :

You don't say what the mountpoint is for the filesystems on your encrypted LVM partition; but evidently they aren't any of the standard mountpoints that are considered blockers for starting lightdm.

The behavior in this case is expected - this is not a bug but a misconfiguration. If you want launching lightdm to wait until these filesystems are decrypted, you will need to mark those filesystems 'bootwait' in /etc/fstab.

Changed in cryptsetup (Ubuntu):
status: New → Invalid
Revision history for this message
Martijn Lievaart (j-launchpad-net-rtij-nl) wrote :

I suggest this *IS* a bug, even multiple bugs, for the following reasons
* The bootwait option does not seem to work in this case
* It may make sense not to wait for fsck, but not for asking passwords, it'll never complete.

Changed in cryptsetup (Ubuntu):
status: Invalid → New
Revision history for this message
Steve Langasek (vorlon) wrote :

Ok, then if bootwait isn't working, this appears to be a mountall bug rather than a bug in cryptsetup.

affects: cryptsetup (Ubuntu) → mountall (Ubuntu)
Steve Langasek (vorlon)
summary: - Encrypted swap does not work
+ bootwait option does not work for swap partitions (needed for encrypted
+ swap)
Changed in mountall (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
rivode (bugs-launchpad-net-rivode) wrote :

My partitions look like this:

 LUKS -> LVM -> ( ROOT, SWAP )

I'm asked for the passphrase for LUKS, but swap isn't activated at boot.

I edit /etc/init/mountall.conf from this:

    exec mountall --daemon $force_fsck $fsck_fix

to this:

    mountall -v $force_fsck $fsck_fix
    swapon -a -v
    exit

Swap is now active at boot, and the "Hibernate" option now appears in the system menu (after enabling hibernate in polkit).

I'm running Raring, but I had to mess around during installation to get encrypted root since the live cd installer doesn't seem to handle this setup.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.