summaryrefslogtreecommitdiffstats
path: root/rules.d
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2023-07-20 23:28:13 +0200
committerLuca Boccassi <bluca@debian.org>2023-07-20 23:28:23 +0200
commit9915cc60868c77e7e8cecb669ddb90516dffc7df (patch)
treefe548979b7cf9364bad4415e59c082d7fd7ffa47 /rules.d
parentRevert "test: test new systemd-dissect --attach/--detach/--loop-ref= and /dev... (diff)
downloadsystemd-9915cc60868c77e7e8cecb669ddb90516dffc7df.tar.xz
systemd-9915cc60868c77e7e8cecb669ddb90516dffc7df.zip
Revert "udev: add /dev/loop/ symlinks"
Turns out this causes a regression and breaks losetup. It will need to be reworked in conjunction with util-linux changes. Fixes https://github.com/systemd/systemd/issues/28475 This reverts commit 5ac52d1f7b7cd11cad8b5c2e9812d7ee7560a517.
Diffstat (limited to 'rules.d')
-rw-r--r--rules.d/60-persistent-storage.rules.in9
1 files changed, 0 insertions, 9 deletions
diff --git a/rules.d/60-persistent-storage.rules.in b/rules.d/60-persistent-storage.rules.in
index 337f421120..b3c222a268 100644
--- a/rules.d/60-persistent-storage.rules.in
+++ b/rules.d/60-persistent-storage.rules.in
@@ -148,13 +148,4 @@ ENV{ID_PART_ENTRY_SCHEME}=="gpt", ENV{ID_PART_ENTRY_NAME}=="?*", SYMLINK+="disk/
# the right device, to access specific disks in a race-free fashion)
ENV{DISKSEQ}=="?*", ENV{ID_IGNORE_DISKSEQ}!="1", SYMLINK+="disk/by-diskseq/$env{DISKSEQ}$env{.PART_SUFFIX}"
-# Create symlinks that allow referencing loopback devices by their backing file's inode number
-ENV{ID_LOOP_BACKING_DEVICE}!="", ENV{ID_LOOP_BACKING_INODE}!="", SYMLINK+="loop/by-inode/$env{ID_LOOP_BACKING_DEVICE}-$env{ID_LOOP_BACKING_INODE}$env{.PART_SUFFIX}"
-
-# Similar, but uses the .lo_file_name field of the loopback device (note that
-# this is basically just a free-form string passed from userspace to the kernel
-# when the device is created, it is not necessarily a file system path like the
-# "loop/backing_file" sysfs attribute, which is always an absolute path)
-ENV{ID_LOOP_BACKING_FILENAME_ENC}!="", SYMLINK+="loop/by-ref/$env{ID_LOOP_BACKING_FILENAME_ENC}$env{.PART_SUFFIX}"
-
LABEL="persistent_storage_end"