Blame 0014-network-fcoe-only-redirect-output-to-loginit.pipe-if.patch

Harald Hoyer 932373
From 879546753341a9b2b1ad391a14ebe9fd3f6c27c4 Mon Sep 17 00:00:00 2001
Harald Hoyer 932373
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 932373
Date: Wed, 16 Oct 2013 11:39:34 +0200
Harald Hoyer 932373
Subject: [PATCH] network/fcoe: only redirect output to loginit.pipe, if exists
Harald Hoyer 932373
Harald Hoyer 932373
---
Harald Hoyer 932373
 modules.d/40network/dhclient-script.sh | 2 +-
Harald Hoyer 932373
 modules.d/95fcoe/fcoe-up.sh            | 2 +-
Harald Hoyer 932373
 2 files changed, 2 insertions(+), 2 deletions(-)
Harald Hoyer 932373
Harald Hoyer 932373
diff --git a/modules.d/40network/dhclient-script.sh b/modules.d/40network/dhclient-script.sh
Harald Hoyer 932373
index 07c3d9b..af483ac 100755
Harald Hoyer 932373
--- a/modules.d/40network/dhclient-script.sh
Harald Hoyer 932373
+++ b/modules.d/40network/dhclient-script.sh
Harald Hoyer 932373
@@ -48,7 +48,7 @@ setup_interface() {
Harald Hoyer 932373
 PATH=/usr/sbin:/usr/bin:/sbin:/bin
Harald Hoyer 932373
 
Harald Hoyer 932373
 export PS4="dhclient.$interface.$$ + "
Harald Hoyer 932373
-exec >>/run/initramfs/loginit.pipe 2>>/run/initramfs/loginit.pipe
Harald Hoyer 932373
+[ -e /run/initramfs/loginit.pipe ] && exec >>/run/initramfs/loginit.pipe 2>>/run/initramfs/loginit.pipe
Harald Hoyer 932373
 type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
Harald Hoyer 932373
 type ip_to_var >/dev/null 2>&1 || . /lib/net-lib.sh
Harald Hoyer 932373
 
Harald Hoyer 932373
diff --git a/modules.d/95fcoe/fcoe-up.sh b/modules.d/95fcoe/fcoe-up.sh
Harald Hoyer 932373
index ecb1593..8cf39ec 100755
Harald Hoyer 932373
--- a/modules.d/95fcoe/fcoe-up.sh
Harald Hoyer 932373
+++ b/modules.d/95fcoe/fcoe-up.sh
Harald Hoyer 932373
@@ -14,7 +14,7 @@ PATH=/usr/sbin:/usr/bin:/sbin:/bin
Harald Hoyer 932373
 [ -z "$1" -o -z "$2" ] && exit 1
Harald Hoyer 932373
 
Harald Hoyer 932373
 export PS4="fcoe-up.$1.$$ + "
Harald Hoyer 932373
-exec >>/run/initramfs/loginit.pipe 2>>/run/initramfs/loginit.pipe
Harald Hoyer 932373
+[ -e /run/initramfs/loginit.pipe ] && exec >>/run/initramfs/loginit.pipe 2>>/run/initramfs/loginit.pipe
Harald Hoyer 932373
 type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
Harald Hoyer 932373
 type ip_to_var >/dev/null 2>&1 || . /lib/net-lib.sh
Harald Hoyer 932373