<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Good morning,<br>
<br>
This just something I noticed recently: It doesn't seem to be
possble to use whitespace in /etc/cryptab, for example in partition
labels.<br>
<br>
Contrast with the similar /etc/fstab file which supports octal
escape (\040).<br>
<br>
I <a
href="http://cgit.freedesktop.org/systemd/systemd/commit/?id=84cc2abf3472b"
rel="nofollow">see</a>[1] that "PARTLABEL=" is supported in
/etc/cryptab although it isn't <a
href="http://www.freedesktop.org/software/systemd/man/crypttab.html"
rel="nofollow">documented[2]</a>.<br>
<br>
[1]
<a class="moz-txt-link-freetext" href="http://cgit.freedesktop.org/systemd/systemd/commit/?id=84cc2abf3472b">http://cgit.freedesktop.org/systemd/systemd/commit/?id=84cc2abf3472b</a><br>
[2] <a class="moz-txt-link-freetext" href="http://www.freedesktop.org/software/systemd/man/crypttab.html">http://www.freedesktop.org/software/systemd/man/crypttab.html</a><br>
<br>
Take a label "A B". This would have device symlink like<br>
<br>
/dev/disk/by-partlabel/A\x20B<br>
<br>
where "A\x20B" is the output of "systemd-escape A B"<br>
<br>
Placing an entry in /etc/crypttab like<br>
<br>
cryptvol PARTLABEL=A\040B none<br>
<br>
results in device units like <br>
<br>
dev-disk-by\x2dpartlabel-A\x5cx5c040B<br>
<br>
I also tried "A\x20B" I get "dev-disk-by\x2dpartlabel-A\x5cx5cx20B"<br>
<br>
GPT supports whitespace in partition labels. Is it possible to use
whitespace in PARTLABEL in /etc/crypttab?<br>
<br>
</body>
</html>