]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
base: send DRACUT_LOG_END to loginit at the end
authorHarald Hoyer <harald@redhat.com>
Thu, 28 Oct 2010 15:10:17 +0000 (17:10 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 28 Oct 2010 15:11:35 +0000 (17:11 +0200)
modules.d/99base/init
modules.d/99base/loginit

index e9a049d4bd6995356cd480eb1327a5bcb4f233d2..e7e8b9af9123a705c2dbc9f251f142fcdb52941d 100755 (executable)
@@ -12,6 +12,7 @@ wait_for_loginit()
 {
     if getargbool 0 rd.debug -y rdinitdebug -y rdnetdebug; then
         set +x
+        echo "DRACUT_LOG_END"
         exec 0<>/dev/console 1<>/dev/console 2<>/dev/console
         # wait for loginit
         i=0
index ad46008cd77088e19c0cdba9f59b41db0bc3d2ec..74762621f800a36fb1b345afff6fadd8dccfe589 100755 (executable)
@@ -11,6 +11,7 @@ QUIET=$1
 exec 6>/init.log
 
 while read line; do 
+    [ "$line" == "DRACUT_LOG_END" ] && exit 0
     echo "<7>dracut: $line" >&5
     # if "quiet" is specified we output to /dev/console
     [ -n "$QUIET" ] && echo "dracut: $line"