[oe-commits] org.oe.dev initscripts: checkroot.sh: chvt 1 if fsck returns with an errorcode and waits for user input. Fixes the "hanging" bootsplash on some distros

coredump commit openembedded-commits at lists.openembedded.org
Sun Nov 12 15:08:36 UTC 2006


initscripts: checkroot.sh: chvt 1 if fsck returns with an errorcode and waits for user input. Fixes the "hanging" bootsplash on some distros

Author: coredump at openembedded.org
Branch: org.openembedded.dev
Revision: 4edccdfa2a13ad0092d4946e4edfc19c5677d7f9
ViewMTN: http://monotone.openembedded.org/revision.psp?id=4edccdfa2a13ad0092d4946e4edfc19c5677d7f9
Files:
1
packages/initscripts/initscripts-1.0/checkroot.sh
packages/initscripts/initscripts_1.0.bb
Diffs:

#
# mt diff -rd47d579d32adc3791ba5ad462c984be6d376ee54 -r4edccdfa2a13ad0092d4946e4edfc19c5677d7f9
#
# 
# 
# patch "packages/initscripts/initscripts-1.0/checkroot.sh"
#  from [7b3f7dd10e8228a2085fed2d4ec57896afc9c2ea]
#    to [4c41ec97f3462115d1e3807efd8c86707c3c07df]
# 
# patch "packages/initscripts/initscripts_1.0.bb"
#  from [cb1e8bc7e62be0da42843803cb6780126900670a]
#    to [894d2e4bb731d41e40ba251492595cb8be667855]
# 
============================================================
--- packages/initscripts/initscripts-1.0/checkroot.sh	7b3f7dd10e8228a2085fed2d4ec57896afc9c2ea
+++ packages/initscripts/initscripts-1.0/checkroot.sh	4c41ec97f3462115d1e3807efd8c86707c3c07df
@@ -150,6 +150,12 @@ else
     #
     if test "$?" -gt 1
     then
+    
+      # Since this script is run very early in the boot-process, it should be safe to assume that the
+      # output is printed to VT1. However, some distributions use a bootsplash to hide the "ugly" boot
+      # messages and having the bootsplash "hang" due to a waiting fsck prompt is less than ideal
+      chvt 1
+    
       # Surprise! Re-directing from a HERE document (as in
       # "cat << EOF") won't work, because the root is read-only.
       echo
============================================================
--- packages/initscripts/initscripts_1.0.bb	cb1e8bc7e62be0da42843803cb6780126900670a
+++ packages/initscripts/initscripts_1.0.bb	894d2e4bb731d41e40ba251492595cb8be667855
@@ -5,7 +5,7 @@ LICENSE = "GPL"
 DEPENDS_openzaurus = "makedevs virtual/kernel"
 RDEPENDS = "makedevs"
 LICENSE = "GPL"
-PR = "r80"
+PR = "r81"
 
 SRC_URI = "file://halt \
            file://ramdisk \






More information about the Openembedded-commits mailing list