diff options
author | Trent Piepho <tpiepho@gmail.com> | 2021-07-01 21:19:57 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2021-07-02 15:26:18 +0200 |
commit | 21ac7884e9c1684d091d893254bcbe4b83740e9f (patch) | |
tree | 8a594c56430698b423dcd45d5976d269b631b91f /rules.d/60-persistent-storage.rules | |
parent | wait-online: improve timeout log message (diff) | |
download | systemd-21ac7884e9c1684d091d893254bcbe4b83740e9f.tar.xz systemd-21ac7884e9c1684d091d893254bcbe4b83740e9f.zip |
udev: Fix by-uuid symlink for ubifs volumes
ubifs volumes have a UUID and the built-in blkid is able to determine
it. The disk/by-uuid symlink isn't created because ubifs volumes are
not on block devices but on SUBSYSTEM="ubi" devices. See #20071.
Allow ubi subsystem devices to be processed by the persistent storage
rules too. The kernel device name matching already allows ubi* to pass.
The existing rules are sufficient to create the link.
The links look like other by-uuid symlinks, for example:
/dev/disk/by-uuid/9a136158-585b-4ba4-9b70-cbaf2cf78a1c -> ../../ubi0_1
Diffstat (limited to 'rules.d/60-persistent-storage.rules')
-rw-r--r-- | rules.d/60-persistent-storage.rules | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.d/60-persistent-storage.rules b/rules.d/60-persistent-storage.rules index d98905dc78..6ac17f2b64 100644 --- a/rules.d/60-persistent-storage.rules +++ b/rules.d/60-persistent-storage.rules @@ -6,7 +6,7 @@ ACTION=="remove", GOTO="persistent_storage_end" ENV{UDEV_DISABLE_PERSISTENT_STORAGE_RULES_FLAG}=="1", GOTO="persistent_storage_end" -SUBSYSTEM!="block", GOTO="persistent_storage_end" +SUBSYSTEM!="block|ubi", GOTO="persistent_storage_end" KERNEL!="loop*|mmcblk*[0-9]|msblk*[0-9]|mspblk*[0-9]|nvme*|sd*|sr*|vd*|xvd*|bcache*|cciss*|dasd*|ubd*|ubi*|scm*|pmem*|nbd*|zd*", GOTO="persistent_storage_end" # ignore partitions that span the entire disk |