Blame 0024-dracut.sh-fixed-PATH-shortener.patch
|
Harald Hoyer |
4734ec |
From cf3fd99e72745b894a5c787277f90305f2ea1215 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
4734ec |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
4734ec |
Date: Sat, 2 Nov 2013 13:14:40 +0100
|
|
Harald Hoyer |
4734ec |
Subject: [PATCH] dracut.sh: fixed PATH shortener
|
|
Harald Hoyer |
4734ec |
|
|
Harald Hoyer |
4734ec |
---
|
|
Harald Hoyer |
4734ec |
dracut.sh | 2 +-
|
|
Harald Hoyer |
4734ec |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Harald Hoyer |
4734ec |
|
|
Harald Hoyer |
4734ec |
diff --git a/dracut.sh b/dracut.sh
|
|
Harald Hoyer |
4734ec |
index ae792c4..03472ba 100755
|
|
Harald Hoyer |
4734ec |
--- a/dracut.sh
|
|
Harald Hoyer |
4734ec |
+++ b/dracut.sh
|
|
Harald Hoyer |
4734ec |
@@ -533,7 +533,7 @@ for i in /usr/sbin /sbin /usr/bin /bin; do
|
|
Harald Hoyer |
4734ec |
if [ -L "$i" ]; then
|
|
Harald Hoyer |
4734ec |
rl=$(readlink -f $i)
|
|
Harald Hoyer |
4734ec |
fi
|
|
Harald Hoyer |
4734ec |
- if [[ "$NPATH" != "*:$rl*" ]] ; then
|
|
Harald Hoyer |
4734ec |
+ if [[ "$NPATH" != *:$rl* ]] ; then
|
|
Harald Hoyer |
4734ec |
NPATH+=":$rl"
|
|
Harald Hoyer |
4734ec |
fi
|
|
Harald Hoyer |
4734ec |
done
|