Bug#851164: udev: NVMe symlinks broken by devices with spaces in model or serial strings

Dan Streetman dan.streetman at canonical.com
Thu Jan 12 15:43:07 GMT 2017


Package: systemd
Version: 232-8
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu zesty ubuntu-patch

Dear Maintainer,

udev creates symlinks for all NVMe drives at /dev/disk/by-id/nvme-MODEL_SERIAL.
The MODEL and SERIAL strings come directly from the NVMe device, and may
contain whitespace; if they do, this breaks the creation of the symlink
because udev treats it as multiple symlinks, separated by the whitespace.

These patches, which are merged upstream, change udev default behavior to
replace all whitespace, when added to a SYMLINK value as a result of variable
substitution, with underscores.  This results in a single symlink for each
NVMe drive, which is the correct behavior.  Note that this also fixes any
broken symlinks for other devices/buses that are a result of unexpected
whitespace included in variables.

This is tracked upstream in github bug 4833:
https://github.com/systemd/systemd/issues/4833

and in Ubuntu in launchpad bug 1647485:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1647485
-------------- next part --------------
A non-text attachment was scrubbed...
Name: systemd_232-9.debdiff
Type: text/x-diff
Size: 23044 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20170112/605a8fca/attachment-0001.diff>


More information about the Pkg-systemd-maintainers mailing list