Blame 0046-base-dracut-lib.sh-export-UDEVVERSION.patch
|
Harald Hoyer |
802052 |
From fe98cfee37224420ee133c1b10e7befab24dce05 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
802052 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
802052 |
Date: Wed, 9 May 2012 11:44:23 +0200
|
|
Harald Hoyer |
802052 |
Subject: [PATCH] base/dracut-lib.sh: export UDEVVERSION
|
|
Harald Hoyer |
802052 |
|
|
Harald Hoyer |
802052 |
---
|
|
Harald Hoyer |
802052 |
modules.d/99base/dracut-lib.sh | 4 ++--
|
|
Harald Hoyer |
35271e |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
Harald Hoyer |
802052 |
|
|
Harald Hoyer |
802052 |
diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh
|
|
Harald Hoyer |
802052 |
index e46e456..2fe8a5e 100755
|
|
Harald Hoyer |
802052 |
--- a/modules.d/99base/dracut-lib.sh
|
|
Harald Hoyer |
802052 |
+++ b/modules.d/99base/dracut-lib.sh
|
|
Harald Hoyer |
802052 |
@@ -383,7 +383,7 @@ incol2() {
|
|
Harald Hoyer |
802052 |
}
|
|
Harald Hoyer |
802052 |
|
|
Harald Hoyer |
802052 |
udevsettle() {
|
|
Harald Hoyer |
802052 |
- [ -z "$UDEVVERSION" ] && UDEVVERSION=$(udevadm --version)
|
|
Harald Hoyer |
802052 |
+ [ -z "$UDEVVERSION" ] && export UDEVVERSION=$(udevadm --version)
|
|
Harald Hoyer |
802052 |
|
|
Harald Hoyer |
802052 |
if [ $UDEVVERSION -ge 143 ]; then
|
|
Harald Hoyer |
802052 |
udevadm settle --exit-if-exists=$hookdir/initqueue/work $settle_exit_if_exists
|
|
Harald Hoyer |
802052 |
@@ -393,7 +393,7 @@ udevsettle() {
|
|
Harald Hoyer |
802052 |
}
|
|
Harald Hoyer |
802052 |
|
|
Harald Hoyer |
802052 |
udevproperty() {
|
|
Harald Hoyer |
802052 |
- [ -z "$UDEVVERSION" ] && UDEVVERSION=$(udevadm --version)
|
|
Harald Hoyer |
802052 |
+ [ -z "$UDEVVERSION" ] && export UDEVVERSION=$(udevadm --version)
|
|
Harald Hoyer |
802052 |
|
|
Harald Hoyer |
802052 |
if [ $UDEVVERSION -ge 143 ]; then
|
|
Harald Hoyer |
802052 |
for i in "$@"; do udevadm control --property=$i; done
|