[Bug 1451594] [NEW] crypttab for swap points at /dev/sdXX

Michał Sawicz michal.sawicz at canonical.com
Mon May 4 21:45:10 UTC 2015


Public bug reported:

Installing Ubuntu 15.04 with the console installer (I used netboot)
allows you to set up full-disk encryption, and almost forces you to
encrypt swap, too. Unfortunately if your installation media is a USB
stick, for example, /dev/sda is applied to it, target hard drive ends up
being /dev/sdb or even, as in my case, /dev/sdc:

$ cat /etc/crypttab 
sdc3_crypt /dev/sdc3 /dev/urandom cipher=aes-xts-plain64,size=256,swap,discard
sdc4_crypt UUID=b76d7592-ae0d-4b04-93d3-f18f3acfd20e none luks,discard

Upon reboot, /dev/sdc3 does not exist any more, and the system waits
(fortunately there's a timeout) for it to appear. This results in at
least prolonged boot and no swap.

The line should point at /dev/disk/by-id/ or similar instead, since UUID
and labels are lost on reboot. Or maybe we can have the crypt process
apply a known UUID/label after opening the device?

Second thing is whether the map should even mention sdX? Could it
instead default to some user-friendlier string?

** Affects: debian-installer (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to debian-installer in Ubuntu.
https://bugs.launchpad.net/bugs/1451594

Title:
  crypttab for swap points at /dev/sdXX

Status in debian-installer package in Ubuntu:
  New

Bug description:
  Installing Ubuntu 15.04 with the console installer (I used netboot)
  allows you to set up full-disk encryption, and almost forces you to
  encrypt swap, too. Unfortunately if your installation media is a USB
  stick, for example, /dev/sda is applied to it, target hard drive ends
  up being /dev/sdb or even, as in my case, /dev/sdc:

  $ cat /etc/crypttab 
  sdc3_crypt /dev/sdc3 /dev/urandom cipher=aes-xts-plain64,size=256,swap,discard
  sdc4_crypt UUID=b76d7592-ae0d-4b04-93d3-f18f3acfd20e none luks,discard

  Upon reboot, /dev/sdc3 does not exist any more, and the system waits
  (fortunately there's a timeout) for it to appear. This results in at
  least prolonged boot and no swap.

  The line should point at /dev/disk/by-id/ or similar instead, since
  UUID and labels are lost on reboot. Or maybe we can have the crypt
  process apply a known UUID/label after opening the device?

  Second thing is whether the map should even mention sdX? Could it
  instead default to some user-friendlier string?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debian-installer/+bug/1451594/+subscriptions



More information about the foundations-bugs mailing list