Blame 0001-Fix-default-udev-systemd-dir-detection-in-usr-merge-.patch
|
Harald Hoyer |
0840a3 |
From 80dab03a7dc080b8d35fdd4c23e30e79e044c2a2 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
0840a3 |
From: Dimitri John Ledkov <dimitri.j.ledkov@intel.com>
|
|
Harald Hoyer |
0840a3 |
Date: Tue, 17 Feb 2015 13:03:01 +0000
|
|
Harald Hoyer |
0840a3 |
Subject: [PATCH] Fix default udev & systemd dir detection, in usr-merge
|
|
Harald Hoyer |
0840a3 |
configurations.
|
|
Harald Hoyer |
0840a3 |
|
|
Harald Hoyer |
0840a3 |
Test that /lib is not a symlink, before using split-usr paths.
|
|
Harald Hoyer |
0840a3 |
---
|
|
Harald Hoyer |
0840a3 |
dracut.sh | 4 ++--
|
|
Harald Hoyer |
0840a3 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
Harald Hoyer |
0840a3 |
|
|
Harald Hoyer |
0840a3 |
diff --git a/dracut.sh b/dracut.sh
|
|
Harald Hoyer |
0840a3 |
index d06d7d4..4f72b54 100755
|
|
Harald Hoyer |
0840a3 |
--- a/dracut.sh
|
|
Harald Hoyer |
0840a3 |
+++ b/dracut.sh
|
|
Harald Hoyer |
0840a3 |
@@ -1300,7 +1300,7 @@ done
|
|
Harald Hoyer |
0840a3 |
[[ -d $udevdir ]] \
|
|
Harald Hoyer |
0840a3 |
|| udevdir="$(pkg-config udev --variable=udevdir 2>/dev/null)"
|
|
Harald Hoyer |
0840a3 |
if ! [[ -d "$udevdir" ]]; then
|
|
Harald Hoyer |
0840a3 |
- [[ -d /lib/udev ]] && udevdir=/lib/udev
|
|
Harald Hoyer |
0840a3 |
+ [[ ! -h /lib ]] && [[ -d /lib/udev ]] && udevdir=/lib/udev
|
|
Harald Hoyer |
0840a3 |
[[ -d /usr/lib/udev ]] && udevdir=/usr/lib/udev
|
|
Harald Hoyer |
0840a3 |
fi
|
|
Harald Hoyer |
0840a3 |
|
|
Harald Hoyer |
0840a3 |
@@ -1308,7 +1308,7 @@ fi
|
|
Harald Hoyer |
0840a3 |
|| systemdutildir=$(pkg-config systemd --variable=systemdutildir 2>/dev/null)
|
|
Harald Hoyer |
0840a3 |
|
|
Harald Hoyer |
0840a3 |
if ! [[ -d "$systemdutildir" ]]; then
|
|
Harald Hoyer |
0840a3 |
- [[ -d /lib/systemd ]] && systemdutildir=/lib/systemd
|
|
Harald Hoyer |
0840a3 |
+ [[ ! -h /lib ]] && [[ -d /lib/systemd ]] && systemdutildir=/lib/systemd
|
|
Harald Hoyer |
0840a3 |
[[ -d /usr/lib/systemd ]] && systemdutildir=/usr/lib/systemd
|
|
Harald Hoyer |
0840a3 |
fi
|
|
Harald Hoyer |
0840a3 |
|