]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-functions: info which udev rules are skipped
authorAmadeusz Żołnowski <aidecoe@aidecoe.name>
Mon, 5 Jul 2010 07:08:47 +0000 (09:08 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 6 Jul 2010 08:19:01 +0000 (10:19 +0200)
I found it useful.  Maybe help others debugging.

dracut-functions

index 9c2999abefd4a687e7dae2e6053ad3f474a388c5..0caf0d621b8fd687b6e24172a78f1be1605a53c6 100755 (executable)
@@ -335,8 +335,9 @@ inst_rules() {
     inst_dir "/lib/udev/rules.d"
     inst_dir "$target"
     for rule in "$@"; do 
-       rule=$(find_rule "$rule") && \
-           inst_simple "$rule" "$target/${rule##*/}"
+       rule1=$(find_rule "$rule") && \
+           inst_simple "$rule1" "$target/${rule1##*/}" \
+           || dinfo "Skipping udev rule: $rule"
     done
 }