Bug 54522

Summary: Unable to mount by LABEL containing a '/'
Product: systemd Reporter: Dave Reisner <d>
Component: generalAssignee: systemd-bugs
Status: RESOLVED FIXED QA Contact: systemd-bugs
Severity: normal    
Priority: medium CC: jay
Version: unspecified   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Example failing unit

Description Dave Reisner 2012-09-05 00:10:06 UTC
Created attachment 66647 [details]
Example failing unit

Having a device in /etc/fstab specified by a tag containing a '/' character will cause systemd to fail to mount the device. The root of the issue seems to be inconsistent escaping in the unit. For example, a device identified by LABEL=foo/bar generates the following dependencies:

BindsTo=dev-disk-by\x2dlabel-foo-bar.device
WantedBy=dev-disk-by\x2dlabel-foo\x5cx2fbar.device

These need to be identical in order for mounting to succeed, since only one of these devices will ever show up.

Full output from 'systemctl show' on the faily mount unit is attached.
Comment 1 Lennart Poettering 2012-09-17 19:59:44 UTC
Fixed in git.
Comment 2 Lennart Poettering 2012-09-18 08:52:09 UTC
*** Bug 53689 has been marked as a duplicate of this bug. ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.