cryptsetup-generator: allow whitespace characters in keydev specification
authorMichal Sekletar <msekleta@redhat.com>
Tue, 4 Sep 2018 18:03:34 +0000 (20:03 +0200)
committerLukáš Nykrýn <lnykryn@redhat.com>
Tue, 11 Dec 2018 16:10:46 +0000 (17:10 +0100)
commit2a4d58bb2ab9ba5487785cc167932440a4f0c13d
treef8158e7f0f4ed2a7d752e53f14ba95c3b2e8e576
parent81df5f597257bd2579246de6182c4949b27396eb
cryptsetup-generator: allow whitespace characters in keydev specification

For example, <luks.uuid>=/keyfile:LABEL="KEYFILE FS" previously wouldn't
work, because we truncated label at the first whitespace character,
i.e. LABEL="KEYFILE".

(cherry-picked from commit 7949dfa73a44ae6524779689483d12243dfbcfdf)

Related: #1656869
src/cryptsetup/cryptsetup-generator.c