|
Harald Hoyer |
fe31f8 |
From 4f6e29330818f05742141a135e521be001f6e6b7 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
fe31f8 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
fe31f8 |
Date: Fri, 8 Feb 2013 14:15:11 +0100
|
|
Harald Hoyer |
fe31f8 |
Subject: [PATCH] udev-rules: modify udev rules on initramfs creation time
|
|
Harald Hoyer |
fe31f8 |
|
|
Harald Hoyer |
fe31f8 |
---
|
|
Harald Hoyer |
fe31f8 |
modules.d/95udev-rules/module-setup.sh | 2 +-
|
|
Harald Hoyer |
fe31f8 |
modules.d/95udev-rules/udev-rules-prepare.sh | 2 +-
|
|
Harald Hoyer |
fe31f8 |
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
Harald Hoyer |
fe31f8 |
|
|
Harald Hoyer |
fe31f8 |
diff --git a/modules.d/95udev-rules/module-setup.sh b/modules.d/95udev-rules/module-setup.sh
|
|
Harald Hoyer |
fe31f8 |
index 54a192e..f56f166 100755
|
|
Harald Hoyer |
fe31f8 |
--- a/modules.d/95udev-rules/module-setup.sh
|
|
Harald Hoyer |
fe31f8 |
+++ b/modules.d/95udev-rules/module-setup.sh
|
|
Harald Hoyer |
fe31f8 |
@@ -75,6 +75,6 @@ install() {
|
|
Harald Hoyer |
fe31f8 |
|
|
Harald Hoyer |
fe31f8 |
inst_libdir_file "libnss_files*"
|
|
Harald Hoyer |
fe31f8 |
|
|
Harald Hoyer |
fe31f8 |
- inst_hook pre-udev 10 "$moddir/udev-rules-prepare.sh"
|
|
Harald Hoyer |
fe31f8 |
+ . "$moddir/udev-rules-prepare.sh"
|
|
Harald Hoyer |
fe31f8 |
}
|
|
Harald Hoyer |
fe31f8 |
|
|
Harald Hoyer |
fe31f8 |
diff --git a/modules.d/95udev-rules/udev-rules-prepare.sh b/modules.d/95udev-rules/udev-rules-prepare.sh
|
|
Harald Hoyer |
fe31f8 |
index 4beefda..920485d 100644
|
|
Harald Hoyer |
fe31f8 |
--- a/modules.d/95udev-rules/udev-rules-prepare.sh
|
|
Harald Hoyer |
fe31f8 |
+++ b/modules.d/95udev-rules/udev-rules-prepare.sh
|
|
Harald Hoyer |
fe31f8 |
@@ -4,7 +4,7 @@
|
|
Harald Hoyer |
fe31f8 |
|
|
Harald Hoyer |
fe31f8 |
[ -z "$UDEVVERSION" ] && export UDEVVERSION=$(udevadm --version)
|
|
Harald Hoyer |
fe31f8 |
|
|
Harald Hoyer |
fe31f8 |
-for f in /etc/udev/rules.d/*-persistent-storage.rules; do
|
|
Harald Hoyer |
fe31f8 |
+for f in ${initdir}/etc/udev/rules.d/*-persistent-storage.rules; do
|
|
Harald Hoyer |
fe31f8 |
[ -e "$f" ] || continue
|
|
Harald Hoyer |
fe31f8 |
while read line; do
|
|
Harald Hoyer |
fe31f8 |
if [ "${line%%IMPORT PATH_ID}" != "$line" ]; then
|