From 543f39cb52267818895d5be1e211089224d4e8f7 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 19 May 2011 23:27:37 +0200 Subject: [PATCH] base/init: save timestamp earlier and remove /sys mount duplicate --- modules.d/99base/init | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/modules.d/99base/init b/modules.d/99base/init index fa54997..f576e35 100755 --- a/modules.d/99base/init +++ b/modules.d/99base/init @@ -84,14 +84,6 @@ RD_DEBUG="" [ ! -d /sys/kernel ] && \ mount -t sysfs -o nosuid,noexec,nodev /sys /sys >/dev/null 2>&1 -setdebug - -if [ "$RD_DEBUG" = "yes" ]; then - getarg quiet && DRACUT_QUIET="yes" - a=$(getarg loglevel=) - [ -n "$a" ] && [ $a -ge 8 ] && unset DRACUT_QUIET -fi - if [ -x /lib/systemd/systemd-timestamp ]; then RD_TIMESTAMP=$(/lib/systemd/systemd-timestamp) else @@ -99,8 +91,13 @@ else unset _tmp fi -ismounted /sys || \ - mount -t sysfs -o nosuid,noexec,nodev /sys /sys >/dev/null 2>&1 +setdebug + +if [ "$RD_DEBUG" = "yes" ]; then + getarg quiet && DRACUT_QUIET="yes" + a=$(getarg loglevel=) + [ -n "$a" ] && [ $a -ge 8 ] && unset DRACUT_QUIET +fi if ! ismounted /dev; then # try to mount devtmpfs -- 2.7.4