Mount /proc before including dracut-lib.sh.

When dracut-lib.sh is sourced it checks the command line (when not using systemd)
as part of the check_quiet() call.

Therefore mount /proc earlier in init.

Avoids the error:

init: 77: /lib/dracut-lib.sh: /proc/cmdline: No such file or directory
master
Colin Guthrie 2013-01-26 18:13:28 +00:00 committed by Harald Hoyer
parent 19bab59c48
commit cd9072d342
1 changed files with 3 additions and 3 deletions

View File

@ -17,9 +17,6 @@ OLDPATH=$PATH
PATH=/usr/sbin:/usr/bin:/sbin:/bin
export PATH

RD_DEBUG=""
. /lib/dracut-lib.sh

# mount some important things
[ ! -d /proc/self ] && \
mount -t proc -o nosuid,noexec,nodev proc /proc >/dev/null
@ -37,6 +34,9 @@ if [ "$?" != "0" ]; then
exit 1
fi

RD_DEBUG=""
. /lib/dracut-lib.sh

if [ -x /lib/systemd/systemd-timestamp ]; then
RD_TIMESTAMP=$(/lib/systemd/systemd-timestamp)
else