Bug 54522 - Unable to mount by LABEL containing a '/'
Summary: Unable to mount by LABEL containing a '/'
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
: 53689 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-09-05 00:10 UTC by Dave Reisner
Modified: 2012-09-18 08:52 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Example failing unit (2.22 KB, application/octet-stream)
2012-09-05 00:10 UTC, Dave Reisner
Details

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.