Patchwork init-install-testfs.sh: add '--hotkey x' to 'test' menuentry

login
register
mail settings
Submitter Corneliu Stoicescu
Date July 3, 2014, 1:04 p.m.
Message ID <1404392697-20131-1-git-send-email-corneliux.stoicescu@intel.com>
Download mbox | patch
Permalink /patch/74969/
State Accepted
Commit 5aec84dc659684f5712d1889ffa5033718ed8bc7
Headers show

Comments

Corneliu Stoicescu - July 3, 2014, 1:04 p.m.
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>
---
 meta/recipes-core/initrdscripts/files/init-install-testfs.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/recipes-core/initrdscripts/files/init-install-testfs.sh b/meta/recipes-core/initrdscripts/files/init-install-testfs.sh
index 618a53d..ac62160 100644
--- a/meta/recipes-core/initrdscripts/files/init-install-testfs.sh
+++ b/meta/recipes-core/initrdscripts/files/init-install-testfs.sh
@@ -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