Blame 0009-Mount-proc-before-including-dracut-lib.sh.patch

Harald Hoyer fe31f8
From cd9072d3420ecde0f4bdd865067d68f8fecf8565 Mon Sep 17 00:00:00 2001
Harald Hoyer fe31f8
From: Colin Guthrie <colin@mageia.org>
Harald Hoyer fe31f8
Date: Sat, 26 Jan 2013 18:13:28 +0000
Harald Hoyer fe31f8
Subject: [PATCH] Mount /proc before including dracut-lib.sh.
Harald Hoyer fe31f8
Harald Hoyer fe31f8
When dracut-lib.sh is sourced it checks the command line (when not using systemd)
Harald Hoyer fe31f8
as part of the check_quiet() call.
Harald Hoyer fe31f8
Harald Hoyer fe31f8
Therefore mount /proc earlier in init.
Harald Hoyer fe31f8
Harald Hoyer fe31f8
Avoids the error:
Harald Hoyer fe31f8
Harald Hoyer fe31f8
init: 77: /lib/dracut-lib.sh: /proc/cmdline: No such file or directory
Harald Hoyer fe31f8
---
Harald Hoyer fe31f8
 modules.d/99base/init.sh | 6 +++---
Harald Hoyer fe31f8
 1 file changed, 3 insertions(+), 3 deletions(-)
Harald Hoyer fe31f8
Harald Hoyer fe31f8
diff --git a/modules.d/99base/init.sh b/modules.d/99base/init.sh
Harald Hoyer fe31f8
index 0259053..37b5996 100755
Harald Hoyer fe31f8
--- a/modules.d/99base/init.sh
Harald Hoyer fe31f8
+++ b/modules.d/99base/init.sh
Harald Hoyer fe31f8
@@ -17,9 +17,6 @@ OLDPATH=$PATH
Harald Hoyer fe31f8
 PATH=/usr/sbin:/usr/bin:/sbin:/bin
Harald Hoyer fe31f8
 export PATH
Harald Hoyer fe31f8
 
Harald Hoyer fe31f8
-RD_DEBUG=""
Harald Hoyer fe31f8
-. /lib/dracut-lib.sh
Harald Hoyer fe31f8
-
Harald Hoyer fe31f8
 # mount some important things
Harald Hoyer fe31f8
 [ ! -d /proc/self ] && \
Harald Hoyer fe31f8
     mount -t proc -o nosuid,noexec,nodev proc /proc >/dev/null
Harald Hoyer fe31f8
@@ -37,6 +34,9 @@ if [ "$?" != "0" ]; then
Harald Hoyer fe31f8
     exit 1
Harald Hoyer fe31f8
 fi
Harald Hoyer fe31f8
 
Harald Hoyer fe31f8
+RD_DEBUG=""
Harald Hoyer fe31f8
+. /lib/dracut-lib.sh
Harald Hoyer fe31f8
+
Harald Hoyer fe31f8
 if [ -x /lib/systemd/systemd-timestamp ]; then
Harald Hoyer fe31f8
     RD_TIMESTAMP=$(/lib/systemd/systemd-timestamp)
Harald Hoyer fe31f8
 else