[systemd-devel] Whitespace in /etc/crypttab

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Thu Feb 12 04:12:45 PST 2015


On Thu, Feb 12, 2015 at 09:49:34AM +0000, John Lane wrote:
> I see
> <http://cgit.freedesktop.org/systemd/systemd/commit/?id=84cc2abf3472b>[1] that
> "PARTLABEL=" is supported in /etc/cryptab although it isn't
> documented[2]
> <http://www.freedesktop.org/software/systemd/man/crypttab.html>.
> 
> [1] http://cgit.freedesktop.org/systemd/systemd/commit/?id=84cc2abf3472b
> [2] http://www.freedesktop.org/software/systemd/man/crypttab.html
It would be great to have it documented.

> Placing an entry in /etc/crypttab like
> 
> cryptvol PARTLABEL=A\040B none
> 
> results in device units like
> 
> dev-disk-by\x2dpartlabel-A\x5cx5c040B
> 
> I also tried "A\x20B" I get "dev-disk-by\x2dpartlabel-A\x5cx5cx20B"
> 
> GPT supports whitespace in partition labels. Is it possible to use
> whitespace in PARTLABEL in /etc/crypttab?
Seems like a call to cunescape() is missing somewhere. Patch welcome ;)

Zbyszek


More information about the systemd-devel mailing list