|
Harald Hoyer |
18c19d |
From 2cf4f4fb747803ff31d53507bc047232c4ef99ea Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
18c19d |
From: Juan RP <xtraeme@gmail.com>
|
|
Harald Hoyer |
18c19d |
Date: Wed, 6 Jun 2012 14:19:59 +0200
|
|
Harald Hoyer |
18c19d |
Subject: [PATCH] Avoid annonying warnings when pkg-config is not installed.
|
|
Harald Hoyer |
18c19d |
|
|
Harald Hoyer |
18c19d |
---
|
|
Harald Hoyer |
18c19d |
dracut-functions.sh | 2 +-
|
|
Harald Hoyer |
18c19d |
modules.d/95udev-rules/module-setup.sh | 4 ++--
|
|
Harald Hoyer |
18c19d |
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
Harald Hoyer |
18c19d |
|
|
Harald Hoyer |
18c19d |
diff --git a/dracut-functions.sh b/dracut-functions.sh
|
|
Harald Hoyer |
18c19d |
index f788878..4180f03 100755
|
|
Harald Hoyer |
18c19d |
--- a/dracut-functions.sh
|
|
Harald Hoyer |
18c19d |
+++ b/dracut-functions.sh
|
|
Harald Hoyer |
18c19d |
@@ -531,7 +531,7 @@ inst_symlink() {
|
|
Harald Hoyer |
18c19d |
ln -sfn $(convert_abs_rel "${_target}" "${_realsrc}") "$initdir/$_target"
|
|
Harald Hoyer |
18c19d |
}
|
|
Harald Hoyer |
18c19d |
|
|
Harald Hoyer |
18c19d |
-udevdir=$(pkg-config udev --variable=udevdir)
|
|
Harald Hoyer |
18c19d |
+udevdir=$(pkg-config udev --variable=udevdir 2>/dev/null)
|
|
Harald Hoyer |
18c19d |
if ! [[ -d "$udevdir" ]]; then
|
|
Harald Hoyer |
18c19d |
[[ -d /lib/udev ]] && udevdir=/lib/udev
|
|
Harald Hoyer |
18c19d |
[[ -d /usr/lib/udev ]] && udevdir=/usr/lib/udev
|
|
Harald Hoyer |
18c19d |
diff --git a/modules.d/95udev-rules/module-setup.sh b/modules.d/95udev-rules/module-setup.sh
|
|
Harald Hoyer |
18c19d |
index e8c1c04..ff47021 100755
|
|
Harald Hoyer |
18c19d |
--- a/modules.d/95udev-rules/module-setup.sh
|
|
Harald Hoyer |
18c19d |
+++ b/modules.d/95udev-rules/module-setup.sh
|
|
Harald Hoyer |
18c19d |
@@ -5,13 +5,13 @@
|
|
Harald Hoyer |
18c19d |
install() {
|
|
Harald Hoyer |
18c19d |
local _i
|
|
Harald Hoyer |
18c19d |
|
|
Harald Hoyer |
18c19d |
- systemdutildir=$(pkg-config systemd --variable=systemdutildir)
|
|
Harald Hoyer |
18c19d |
+ systemdutildir=$(pkg-config systemd --variable=systemdutildir 2>/dev/null)
|
|
Harald Hoyer |
18c19d |
if ! [[ -d "$systemdutildir" ]]; then
|
|
Harald Hoyer |
18c19d |
[[ -d /lib/systemd ]] && systemdutildir=/lib/systemd
|
|
Harald Hoyer |
18c19d |
[[ -d /usr/lib/systemd ]] && systemdutildir=/usr/lib/systemd
|
|
Harald Hoyer |
18c19d |
fi
|
|
Harald Hoyer |
18c19d |
|
|
Harald Hoyer |
18c19d |
- udevdir=$(pkg-config udev --variable=udevdir)
|
|
Harald Hoyer |
18c19d |
+ udevdir=$(pkg-config udev --variable=udevdir 2>/dev/null)
|
|
Harald Hoyer |
18c19d |
if ! [[ -d "$udevdir" ]]; then
|
|
Harald Hoyer |
18c19d |
[[ -d /lib/udev ]] && udevdir=/lib/udev
|
|
Harald Hoyer |
18c19d |
[[ -d /usr/lib/udev ]] && udevdir=/usr/lib/udev
|