Mailinglist Archive: opensuse-bugs (4202 mails)

< Previous Next >
[Bug 738546] cryptsetup cannot handle empty key-files

https://bugzilla.novell.com/show_bug.cgi?id=738546

https://bugzilla.novell.com/show_bug.cgi?id=738546#c3


Yarny Yarny <Yarny@xxxxxxxxxxxxxxx> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
InfoProvider|Yarny@xxxxxxxxxxxxxxx |

--- Comment #3 from Yarny Yarny <Yarny@xxxxxxxxxxxxxxx> 2012-01-12 17:27:16 UTC
---
Hi Ludwig,

this is a pretty old bug.
Really? Empty keyfiles work well with openSUSE 11.4 (cryptsetup 1.2.0-6.9.1),
so I considered this a regression.

Do you have a use case for it
Yes, this bug broke my openSUSE setup script when I tried to move to 12.1.
That script creates some luks partitions and initializes them with an empty
password. To this end creates an empty keyfile.
Of course the workaround is simple: I now use a single space (" ") as initial
password, but just hitting enter while booting was quite comfortable with 11.4.
Also I have other scripts that call cryptsetup with on-the-fly-created
keyfiles, and I also will have to modify these to catch empty passwords.

Yarny

P.S.: There's a typo in my patch: Missing brackets. The line should read
+ else if ((size_t)st.size)

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >