systemd/rules.d
Ubuntu Developers fe12b0154a skip disk/by-uuid for bcache devices
blkid reports bcache superblock dev.uuid as a filesystem UUID but it actually
is not a filesystem, it's the UUID of the backing device, which is maintained
at /dev/bcache/by-uuid instead of /dev/disk/by-uuid.

  [Forwarding Note]

  There is an on-going discussion upstream whether this patch should exist.
  This patch is not a FIX to LP: #1861941, but can work as a mitigation. The
  FIX for LP: #1861941 is the bcache-tools (0003-Add-bcache-export-cached-
  helper.patch).

  Ryan Harper arguments are that blkid - and/or udev default rules - should skip
  devices with "ID_FS_TYPE = bcache" by default from creating symlinks at
  /dev/disk/{by-uuid,by-label}/{ID_FS_UUID_ENC,ID_FS_LABEL_ENC} just because
  those devices aren't meant to be used directly (as they are backing devices
  to bcache). Actually this is what was causing the issue fixed by bcache-tools
  udev rules: symlink management for bcache backing devices were removing
  /dev/bcache/xxx symlinks.

  Considering that this is a minor delta, and I agree to Ryan's arguments, of
  not having /dev/disk/by-uuid/xxx symlinks to devices that should not be
  accessed directly, thus giving a better experience to end user, I'm keeping
  this until either upstream provides it by default OR the patch
  0003-Add-bcache-export-cached-helper.patch can be removed from bcache-tools
  because udev and/or libblkid started differentiating UUID_CACHED and FS_UUID
  when doing /dev/disk/ symlinks.

  -
  rafaeldtinoco

Author: Ryan Harper <ryan.harper@canonical.com>
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1861941
Forwarded: https://github.com/systemd/systemd/pull/16317
Reviewed-by: Rafael David Tinoco <rafaeldtinoco@ubuntu.com>
Last-Update: 2020-07-23

Gbp-Pq: Name lp1861941-dont-generate-disk-byuuid-for-bcache-uuid.patch
2023-04-12 17:15:01 +08:00
..
50-udev-default.rules.in Import Upstream version 251.4 2023-04-12 17:00:04 +08:00
60-autosuspend.rules Import Upstream version 251.4 2023-04-12 17:00:04 +08:00
60-block.rules Import Upstream version 245.4 2022-05-14 02:56:24 +08:00
60-cdrom_id.rules Import Upstream version 245.4 2022-05-14 02:56:24 +08:00
60-drm.rules Import Upstream version 245.4 2022-05-14 02:56:24 +08:00
60-evdev.rules Import Upstream version 245.4 2022-05-14 02:56:24 +08:00
60-fido-id.rules Import Upstream version 251.4 2023-04-12 17:00:04 +08:00
60-input-id.rules Import Upstream version 245.4 2022-05-14 02:56:24 +08:00
60-persistent-alsa.rules Import Upstream version 245.4 2022-05-14 02:56:24 +08:00
60-persistent-input.rules Import Upstream version 251.4 2023-04-12 17:00:04 +08:00
60-persistent-storage-tape.rules Import Upstream version 251.4 2023-04-12 17:00:04 +08:00
60-persistent-storage.rules skip disk/by-uuid for bcache devices 2023-04-12 17:15:01 +08:00
60-persistent-v4l.rules Import Upstream version 245.4 2022-05-14 02:56:24 +08:00
60-sensor.rules Import Upstream version 245.4 2022-05-14 02:56:24 +08:00
60-serial.rules Import Upstream version 245.4 2022-05-14 02:56:24 +08:00
64-btrfs.rules.in Import Upstream version 251.4 2023-04-12 17:00:04 +08:00
70-camera.rules Import Upstream version 251.4 2023-04-12 17:00:04 +08:00
70-joystick.rules Import Upstream version 245.4 2022-05-14 02:56:24 +08:00
70-memory.rules Import Upstream version 251.4 2023-04-12 17:00:04 +08:00
70-mouse.rules Import Upstream version 245.4 2022-05-14 02:56:24 +08:00
70-power-switch.rules Import Upstream version 251.4 2023-04-12 17:00:04 +08:00
70-touchpad.rules Import Upstream version 245.4 2022-05-14 02:56:24 +08:00
70-uaccess.rules.in Import Upstream version 251.4 2023-04-12 17:00:04 +08:00
71-seat.rules.in Import Upstream version 251.4 2023-04-12 17:00:04 +08:00
73-seat-late.rules.in Import Upstream version 251.4 2023-04-12 17:00:04 +08:00
75-net-description.rules Import Upstream version 245.4 2022-05-14 02:56:24 +08:00
75-probe_mtd.rules Import Upstream version 245.4 2022-05-14 02:56:24 +08:00
78-sound-card.rules Import Upstream version 245.4 2022-05-14 02:56:24 +08:00
80-drivers.rules Import Upstream version 251.4 2023-04-12 17:00:04 +08:00
80-net-setup-link.rules Import Upstream version 251.4 2023-04-12 17:00:04 +08:00
81-net-dhcp.rules Import Upstream version 251.4 2023-04-12 17:00:04 +08:00
90-vconsole.rules.in Import Upstream version 251.4 2023-04-12 17:00:04 +08:00
99-systemd.rules.in Import Upstream version 251.4 2023-04-12 17:00:04 +08:00
README Import Upstream version 251.4 2023-04-12 17:00:04 +08:00
meson.build Import Upstream version 251.4 2023-04-12 17:00:04 +08:00

README

Files in this directory contain configuration for systemd-udevd.service, a
daemon that manages symlinks to device nodes, permissions of devices nodes,
emits device events for userspace, and renames network interfaces.

See man:udev(7) for an overview of the configuration file format, and
man:systemd-udevd.service(8) for a description of service itself.

Use 'systemd-analyze cat-config udev/rules.d' to display the effective config.