Bug 746119

Summary: unwanted output from cryptsetup isLuks
Product: [Fedora] Fedora Reporter: Andrei Gaponenko <gandr>
Component: cryptsetup-luksAssignee: Ondrej Kozina <okozina>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 16CC: agk, dwysocha, lvm-team, mbroz, pjones, prockai, whulbert
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: cryptsetup-luks-1.3.1-3.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-17 20:28:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Andrei Gaponenko 2011-10-13 23:20:36 UTC
Hi,

The "cryptsetup isLuks /dev/sda" command started printing out "Device /dev/sda is not a valid LUKS device." in Fedora 16.  I see this with the

cryptsetup-luks-1.3.1-2.fc16.x86_64

version.  Without the --verbose option it should only return the status code, not print anything.

Andrei

Comment 1 Milan Broz 2011-10-14 06:38:43 UTC
right, yest another unwanted change since 1.2.0 api rewrite (I'll change that upstream).

Anyway if you have this in script just redirect stderr as workaround for now
cryptsetup isLuks /dev/sda 2>/dev/null

Comment 2 Milan Broz 2011-10-14 06:47:24 UTC
and btw I would suggest to use blkid anyway for signature check, e.g.

blkid -p -u crypto_LUKS /dev/sda

Comment 3 Milan Broz 2011-10-25 19:13:13 UTC
Fixed upstream, will appear in rawhide shortly. For F16 it needs backport later (cannot rebase because of api change).
http://code.google.com/p/cryptsetup/source/detail?r=653#

Comment 4 Fedora Update System 2011-12-23 11:41:04 UTC
cryptsetup-luks-1.3.1-3.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/cryptsetup-luks-1.3.1-3.fc16

Comment 5 Fedora Update System 2011-12-23 22:22:58 UTC
Package cryptsetup-luks-1.3.1-3.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing cryptsetup-luks-1.3.1-3.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-17419/cryptsetup-luks-1.3.1-3.fc16
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2012-01-17 20:28:12 UTC
cryptsetup-luks-1.3.1-3.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.