Bug#790823: /dev/disk/by-uuid/* and /dev/disk/by-label/* symbolic links missing after udev upgrade

Stephen Powell zlinuxman at wowway.com
Thu Jul 2 02:47:31 BST 2015


Package: udev
Version: 220-7
Severity: normal

After upgrading udev from version 215-18 to version 220-7, I found that the
symbolic links in the /dev/disk/by-uuid and /dev/disk/by-label directories
are no longer being created on my system.  I traced the problem to
/lib/udev/rules.d/60-persistent-storage.rules.  Under 215-18, there was a
line in this file which read like this:

KERNEL=="fd*|mtd*|nbd*|gnbd*|btibm*|dm-*|md*|zram*|mmcblk[0-9]*rpmb", GOTO="persistent_storage_end"

under 220-7, this had been changed to

KERNEL!="loop*|mmcblk*[0-9]|msblk*[0-9]|mspblk*[0-9]|nvme*|sd*|sr*|vd*|bcache*", GOTO="persistent_storage_end"

In other words, the old rule gave a list of device categories that will be skipped.
All other device categories are included by default.  The new rule gives a list
of device categories that will *not* be skipped.  All other device categories are
skipped by default.  But you've left some out.  I see that already in 221-1 you've
added xvd* to the list.  My hardware needs i2o* to be in the list.  (i2o hardware
RAID device).  And I see that dasd* isn't there either (mainframe disk devices for
the s390x architecture).  I'll bet there's more that need to be added.  For now,
I've reverted to the old rule and everything works fine again.  Of course, I'll
have to remember to change it again every time the package is upgraded.  :-(

It's up to you whether it's easier to list the device categories that you want,
or the device categories that you don't want.  But creating unnecessary symbolic
links really doesn't do any harm.  Not creating ones that are depended on will
result in an unbootable system.  Think about it.

-- 
  .''`.     Stephen Powell    <zlinuxman at wowway.com>
 : :'  :
 `. `'`
   `-




More information about the Pkg-systemd-maintainers mailing list