On Thu, 12.02.15 13:12, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote:
> 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 ;) Actually I'd prefer if we could rework code like this to use unquote_many_words(), which is much nicer anyway, and should give us this for free... Lennart -- Lennart Poettering, Red Hat _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel