[systemd-devel] [bug] Unable to mount by LABEL containing a '/'

Lennart Poettering lennart at poettering.net
Tue Aug 21 15:09:25 PDT 2012


On Mon, 20.08.12 11:36, Dave Reisner (d at falconindy.com) wrote:

> Hey all,
> 
> Had a bug reported by a user who has an /etc/fstab setup by LABEL, with
> the only quirk being that all his FS labels contain slashes. This all
> fails at bootup because systemd seems to vary in how it escapes the
> slash. I can reproduce this on a VM with a device labelled 'foo/bar'. A
> full dump is available [1], but the relevant bits seem to be:
> 
>   BindsTo=dev-disk-by\x2dlabel-foo-bar.device
>   WantedBy=dev-disk-by\x2dlabel-foo\x5cx2fbar.device
> 
> Shouldn't these be the same device file? The WantedBy appears to be the
> correct escaping, but the BindsTo looks to be escaping the path with
> unit-name escaping rather than hex escapes to match the udev node.

Yupp, definitely a bug. In order not to forget about this I have added
this to the TODO list now, will try to look into this later.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list