Bug 1787089

Summary: udevadm info pre-pending an extra forward slash to path names
Product: [Fedora] Fedora Reporter: mulhern <amulhern>
Component: systemdAssignee: systemd-maint
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: lnykryn, msekleta, ssahani, s, systemd-maint, watanabe.yu, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: systemd-245~rc1-1.fc32 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-06 12:15:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description mulhern 2019-12-30 23:26:44 UTC
Description of problem:

In some cases, an extra slash is prepended to a path name in the output of udevadm info.

Version-Release number of selected component (if applicable):

In Rawhide, 244. Also, on Fedora 30, 241. Also on Fedora 31, presumably on some version in between. Could not check Fedora 29. Not on RHEL8, 239.

How reproducible:

100%

Steps to Reproduce:
1. udevadm info --export-db. Pick an arbitrary device from the output.
2. udevadm info --path <pathname>.
3. Note that the paths have an extra '/' at the front (although this was not the case for the output of (1). The DEVPATH property is a good example.

Actual results:

Paths look like: E: DEVPATH=//devices/virtual/workqueue/writeback

Expected results:

Paths look like: E: DEVPATH=/devices/virtual/workqueue/writeback

Additional info:

None.

Comment 1 Yu Watanabe 2020-01-28 15:27:05 UTC
Fix is waiting in https://github.com/systemd/systemd/pull/14684

Comment 2 Zbigniew Jędrzejewski-Szmek 2020-02-02 18:50:32 UTC
This was finally fixed in https://github.com/systemd/systemd/pull/14689.