]> code.ossystems Code Review - openembedded-core.git/commitdiff
init-install-testfs.sh: add '--hotkey x' to 'test' menuentry
authorCorneliu Stoicescu <corneliux.stoicescu@intel.com>
Thu, 3 Jul 2014 13:04:57 +0000 (16:04 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 3 Jul 2014 16:38:45 +0000 (17:38 +0100)
Add a hotkey for the GRUB 'test' menuentry. This can be used by expect scripts to boot into 'test' when doing runtime hardware tests.

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/initrdscripts/files/init-install-testfs.sh

index 618a53d436b29440c0283533a68072dba6e31ce6..ac621605287a383749c166514041cdd42662c38a 100644 (file)
@@ -189,7 +189,7 @@ menuentry "Linux" {
 }
 _EOF
     # Add the test label
-    echo -ne "\nmenuentry 'test' {\nlinux /test-kernel root=$testfs rw $rootwait quiet\n}\n" >> $GRUBCFG
+    echo -ne "\nmenuentry 'test' --hotkey x {\nlinux /test-kernel root=$testfs rw $rootwait quiet\n}\n" >> $GRUBCFG
 
     chmod 0444 $GRUBCFG
 fi