]> code.ossystems Code Review - openembedded-core.git/commitdiff
initrdscripts: add sleep to avoid kernel messages before install message
authorSaul Wold <sgw@linux.intel.com>
Wed, 7 Dec 2011 02:10:53 +0000 (18:10 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 8 Dec 2011 15:14:05 +0000 (15:14 +0000)
As suggested by Darren Hart

[YOCTO #725]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-core/initrdscripts/files/init-install.sh

index d31d994341ecc750b34985e688234c04d6917144..90978dd36a83d395e68e9df4734f9a31b38b51fc 100644 (file)
@@ -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