Patchwork [CONSOLIDATED,PULL,13/17] initrdscripts: add sleep to avoid kernel messages before install message

login
register
mail settings
Submitter Saul Wold
Date Dec. 8, 2011, 8:44 a.m.
Message ID <77e8f1591862f70572d9835fffe51923adc63656.1323333676.git.sgw@linux.intel.com>
Download mbox | patch
Permalink /patch/16493/
State Accepted
Commit ed76654c613d38095f085640acb6591b9739a60e
Headers show

Comments

Saul Wold - Dec. 8, 2011, 8:44 a.m.
As suggested by Darren Hart

[YOCTO #725]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
 .../initrdscripts/files/init-install.sh            |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Patch

diff --git a/meta/recipes-core/initrdscripts/files/init-install.sh b/meta/recipes-core/initrdscripts/files/init-install.sh
index d31d994..90978dd 100644
--- a/meta/recipes-core/initrdscripts/files/init-install.sh
+++ b/meta/recipes-core/initrdscripts/files/init-install.sh
@@ -23,6 +23,9 @@  for device in 'hda' 'hdb' 'sda' 'sdb'
 	  found="yes"
 
 	  while true; do
+	      # Try sleeping here to avoid getting kernel messages
+              # obscuring/confusing user
+	      sleep 5
 	      echo "Found drive at /dev/${device}. Do you want to install this image there ? [y/n]"
 	      read answer
 	      if [ "$answer" = "y" ] ; then