dracut/0034-99base-init-do-not-fail-when-importing-the-original-.patch

24 lines
656 B
Diff
Raw Normal View History

2011-10-19 13:30:00 +00:00
From dffb93feaf6c179dbe4f854f1266fbe8529dbea9 Mon Sep 17 00:00:00 2001
From: Harald Hoyer <harald@redhat.com>
Date: Thu, 1 Sep 2011 16:01:21 +0200
Subject: [PATCH] 99base/init: do not fail, when importing the original kernel
environment
---
modules.d/99base/init | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules.d/99base/init b/modules.d/99base/init
index b666d3e..4cbe342 100755
--- a/modules.d/99base/init
+++ b/modules.d/99base/init
@@ -392,7 +392,7 @@ for i in $(export -p); do
unset "$i";;
esac
done
-. /tmp/export.orig
+. /tmp/export.orig 2>/dev/null || :
rm -f /tmp/export.orig
initargs=""