luksformat gives cryptic error if you enter a lower case YES

Bug #401182 reported by komputes
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cryptsetup (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

$ sudo luksformat -t vfat /dev/sdd1
Creating encrypted device on /dev/sdd1...

WARNING!
========
This will overwrite data on /dev/sdd1 irrevocably.

Are you sure? (Type uppercase yes): yes
Command failed.
Could not create LUKS device /dev/sdd1 at /usr/sbin/luksformat line 58, <MOUNTS> line 19.

luksformat gives this cryptic error if you enter a lower case "YES". This should point to an error saying: Command failed. Could not create LUKS device /dev/sdd1 because you need to type YES in uppercase. If there is a way to change the error "Could not create LUKS device /dev/sdd1 at /usr/sbin/luksformat line 58, <MOUNTS> line 19." to something more useful, it would be appreciated.

Packages affected:
cryptsetup 2:1.0.6-7ubuntu7

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in cryptsetup (Ubuntu):
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.