base/init: save timestamp earlier and remove /sys mount duplicate

master
Harald Hoyer 2011-05-19 23:27:37 +02:00
parent 4826b9b0d5
commit 543f39cb52
1 changed files with 7 additions and 10 deletions

View File

@ -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