cryptsetup documentation on where /dev/mapper/ is needed/not needed not ideal

Bug #291136 reported by Nick Burch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cryptsetup (Ubuntu)
Confirmed
Wishlist
Unassigned

Bug Description

Binary package hint: cryptsetup

I've just been setting up encrypted /home/ and /var/ on my laptop, and was caught out by an extra /dev/mapper/ entry in /etc/crypttab, which led to very odd errors

If you setup your /etc/crypttab along the lines of:
   /dev/mapper/enc_home /dev/sda7 none luks
(instead of just "enc_home /dev/sda7 none luks")

Then when "/etc/rcS.d/S28cryptdisks start" runs, after unlocking your key, you'll get an error something like:
   dm_task_set_name /dev/mapper/enc_home: device not found

There's nothing in the header of /etc/crypttab to make it clear that you shouldn't prefix the target with /dev/mapper/ (which is required for /etc/fstab, so it's not too silly a mistake). The error message you get is really odd and cryptic, and ideally should be made clearer (eg it should issue a warning if you try to create an entry starting with "/dev/mapper" under /dev/mapper)

This is running 8.10 (rc), and cryptsetup is 2:1.0.6-6ubuntu2

Changed in cryptsetup (Ubuntu):
importance: Undecided → Wishlist
status: New → Confirmed
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.