summaryrefslogtreecommitdiffstats
path: root/kernel/udev
diff options
context:
space:
mode:
authorManuel Bentele2020-10-23 15:18:01 +0200
committerManuel Bentele2020-10-23 15:18:01 +0200
commitdbb41ce2b7f309d394054a6bd1e33afd578798a5 (patch)
tree6a31092063d9f2fb5ac5720ec6759040e793c3d5 /kernel/udev
parentSet Linux kernel version to unknown if it is not detectable (diff)
downloadxloop-dbb41ce2b7f309d394054a6bd1e33afd578798a5.tar.gz
xloop-dbb41ce2b7f309d394054a6bd1e33afd578798a5.tar.xz
xloop-dbb41ce2b7f309d394054a6bd1e33afd578798a5.zip
Move the source code of all xloop components to the common 'src' directory
Diffstat (limited to 'kernel/udev')
-rw-r--r--kernel/udev/50-xloop.rules56
1 files changed, 0 insertions, 56 deletions
diff --git a/kernel/udev/50-xloop.rules b/kernel/udev/50-xloop.rules
deleted file mode 100644
index fac04e0..0000000
--- a/kernel/udev/50-xloop.rules
+++ /dev/null
@@ -1,56 +0,0 @@
-# Adapted from /usr/lib/udev/rules.d/60-persistent-storage.rules
-# Only handle /dev/xloop* devices.
-#
-# persistent storage links: /dev/disk/{by-id,by-uuid,by-label,by-path}
-# scheme based on "Linux persistent device names", 2004, Hannes Reinecke <hare@suse.de>
-
-ACTION=="remove", GOTO="xloop_storage_end"
-ENV{UDEV_DISABLE_PERSISTENT_STORAGE_RULES_FLAG}=="1", GOTO="xloop_storage_end"
-
-SUBSYSTEM!="block", GOTO="xloop_storage_end"
-KERNEL!="xloop*", GOTO="xloop_storage_end"
-
-# ignore partitions that span the entire disk
-TEST=="whole_disk", GOTO="xloop_storage_end"
-
-# For partitions import parent disk ID_* information, except ID_FS_*.
-#
-# This is particularly important on media where a filesystem superblock and
-# partition table are found on the same level, e.g. common Linux distro ISO
-# installation media.
-#
-# In the case where a partition device points to the same filesystem that
-# was detected on the parent disk, the ID_FS_* information is already
-# present on the partition devices as well as the parent, so no need to
-# propagate it. In the case where the partition device points to a different
-# filesystem, merging the parent ID_FS_ properties would lead to
-# inconsistencies, so we avoid doing so.
-ENV{DEVTYPE}=="partition", \
- IMPORT{parent}="ID_[!F]*", IMPORT{parent}="ID_", \
- IMPORT{parent}="ID_F[!S]*", IMPORT{parent}="ID_F", \
- IMPORT{parent}="ID_FS[!_]*", IMPORT{parent}="ID_FS"
-
-# by-path
-ENV{DEVTYPE}=="disk", DEVPATH!="*/virtual/*", IMPORT{builtin}="path_id"
-KERNEL!="mmcblk[0-9]boot[0-9]", ENV{DEVTYPE}=="disk", ENV{ID_PATH}=="?*", SYMLINK+="disk/by-path/$env{ID_PATH}"
-ENV{DEVTYPE}=="partition", ENV{ID_PATH}=="?*", SYMLINK+="disk/by-path/$env{ID_PATH}-part%n"
-# compatible links for ATA devices
-KERNEL!="mmcblk[0-9]boot[0-9]", ENV{DEVTYPE}=="disk", ENV{ID_PATH_ATA_COMPAT}=="?*", SYMLINK+="disk/by-path/$env{ID_PATH_ATA_COMPAT}"
-ENV{DEVTYPE}=="partition", ENV{ID_PATH_ATA_COMPAT}=="?*", SYMLINK+="disk/by-path/$env{ID_PATH_ATA_COMPAT}-part%n"
-
-# probe filesystem metadata of disks
-KERNEL!="sr*", IMPORT{builtin}="blkid"
-
-# by-label/by-uuid links (filesystem metadata)
-ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"
-ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"
-
-# by-id (World Wide Name)
-ENV{DEVTYPE}=="disk", ENV{ID_WWN_WITH_EXTENSION}=="?*", SYMLINK+="disk/by-id/wwn-$env{ID_WWN_WITH_EXTENSION}"
-ENV{DEVTYPE}=="partition", ENV{ID_WWN_WITH_EXTENSION}=="?*", SYMLINK+="disk/by-id/wwn-$env{ID_WWN_WITH_EXTENSION}-part%n"
-
-# by-partlabel/by-partuuid links (partition metadata)
-ENV{ID_PART_ENTRY_UUID}=="?*", SYMLINK+="disk/by-partuuid/$env{ID_PART_ENTRY_UUID}"
-ENV{ID_PART_ENTRY_SCHEME}=="gpt", ENV{ID_PART_ENTRY_NAME}=="?*", SYMLINK+="disk/by-partlabel/$env{ID_PART_ENTRY_NAME}"
-
-LABEL="xloop_storage_end"