]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
chore(base): remove support for <udev-176
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Sat, 3 Dec 2022 23:06:54 +0000 (23:06 +0000)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Mon, 13 Feb 2023 11:58:52 +0000 (11:58 +0000)
This reverts 579238a3acd0317d7124a76dc489f19d9471fb63.

Keep the support for prepare_udev_rules for out-of-tree
dracut modules and issue a deprecation warning.

dracut-init.sh
modules.d/90dm/59-persistent-storage-dm.rules
modules.d/90dm/module-setup.sh
modules.d/90mdraid/59-persistent-storage-md.rules
modules.d/90mdraid/module-setup.sh
modules.d/95udev-rules/59-persistent-storage.rules
modules.d/95udev-rules/61-persistent-storage.rules
modules.d/95udev-rules/module-setup.sh

index 41535523c50412a47601a1ab5ab8d4613b5a31ce..aef2f07a4c5dfbd2bb7d4a5203fc4d456c4a9a0d 100755 (executable)
@@ -585,6 +585,8 @@ build_ld_cache() {
 }
 
 prepare_udev_rules() {
+    dwarn "prepare_udev_rules: deprecated and will be removed"
+
     if [ -z "$UDEVVERSION" ]; then
         UDEVVERSION=$(udevadm --version)
         export UDEVVERSION
index 2be1122720d0a8ad3ccf7298275148824d60500c..3e0b8f6ed15cb1e46bd0baa9de791adea13565ac 100644 (file)
@@ -10,6 +10,6 @@ ENV{DM_NAME}!="?*", GOTO="dm_end"
 ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}=="1", GOTO="dm_end"
 ENV{DM_UUID}=="CRYPT-TEMP-?*", GOTO="dm_end"
 ENV{DM_UUID}!="?*", ENV{DM_NAME}=="temporary-cryptsetup-?*", GOTO="dm_end"
-IMPORT BLKID
+IMPORT{builtin}="blkid"
 
 LABEL="dm_end"
index c7bf762d5cee1be91b96fe07126cf2786f25f295..0c4cba3419abef000bb636b0779d1d4b82103d3e 100755 (executable)
@@ -33,7 +33,6 @@ install() {
     inst_rules "$moddir/11-dm.rules"
 
     inst_rules "$moddir/59-persistent-storage-dm.rules"
-    prepare_udev_rules 59-persistent-storage-dm.rules
 
     inst_hook shutdown 25 "$moddir/dm-shutdown.sh"
 }
index 96b101081b81a7b633fa6dbe662668ddfd114145..0d745cc01b49ec5ec31ec36ca24d383811f22646 100644 (file)
@@ -17,7 +17,7 @@ ATTR{md/array_state}=="|clear|inactive", GOTO="md_end"
 LABEL="md_ignore_state"
 
 IMPORT{program}="/sbin/mdadm --detail --export $tempnode"
-IMPORT BLKID
+IMPORT{builtin}="blkid"
 OPTIONS+="link_priority=100"
 OPTIONS+="watch"
 OPTIONS+="db_persist"
index c0780209694fc59abc29488201904c548802860a..6179a989b93642ee47ca77726fb078803c9cbe8e 100755 (executable)
@@ -96,7 +96,6 @@ install() {
     inst_rules "$moddir/65-md-incremental-imsm.rules"
 
     inst_rules "$moddir/59-persistent-storage-md.rules"
-    prepare_udev_rules 59-persistent-storage-md.rules
 
     if [[ $hostonly ]] || [[ $mdadmconf == "yes" ]]; then
         if [[ -f $dracutsysrootdir/etc/mdadm.conf ]]; then
index 8d8650f735dcc428aa9a64ee05a6e5ce07f4a4fa..b0769378d8587d4e21cfbd7ad5682694ad75e1f0 100644 (file)
@@ -3,7 +3,7 @@ ACTION!="add|change", GOTO="ps_end"
 # Also don't process disks that are slated to be a multipath device
 ENV{DM_MULTIPATH_DEVICE_PATH}=="1", GOTO="ps_end"
 
-KERNEL=="cciss[0-9]*", IMPORT BLKID
-KERNEL=="nbd[0-9]*", IMPORT BLKID
+KERNEL=="cciss[0-9]*", IMPORT{builtin}="blkid"
+KERNEL=="nbd[0-9]*", IMPORT{builtin}="blkid"
 
 LABEL="ps_end"
index 895ecebdee8a6981e4b60a901b54829c56292e83..053b65c035d1bab3ba2cbe873640384bac15d854 100644 (file)
@@ -12,7 +12,7 @@ GOTO="pss_end"
 
 LABEL="do_pss"
 # by-path (parent device path)
-ENV{DEVTYPE}=="disk", ENV{ID_PATH}=="", DEVPATH!="*/virtual/*", IMPORT PATH_ID
+ENV{DEVTYPE}=="disk", ENV{ID_PATH}=="", DEVPATH!="*/virtual/*", IMPORT{builtin}="path_id"
 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"
 
index 4bbfd593b8f77a26cc846e806cd2ef141a9068a6..272f4d0abfa290a8e6f8eb71d2385e000bfcbed5 100755 (executable)
@@ -50,7 +50,6 @@ install() {
         "$moddir/59-persistent-storage.rules" \
         "$moddir/61-persistent-storage.rules"
 
-    prepare_udev_rules 59-persistent-storage.rules 61-persistent-storage.rules
     # debian udev rules
     inst_rules 91-permissions.rules
     # eudev rules