]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
base/init: save timestamp earlier and remove /sys mount duplicate
authorHarald Hoyer <harald@redhat.com>
Thu, 19 May 2011 21:27:37 +0000 (23:27 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 20 May 2011 13:17:32 +0000 (15:17 +0200)
modules.d/99base/init

index fa5499741c406808074762f3debcd9232a505928..f576e35169956603b6352ac5515907d9f2a5a59f 100755 (executable)
@@ -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