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

Add a hotkey for the GRUB 'test' menuentry. This can be used by expect scripts to boot into 'test' when doing runtime hardware tests.

(From OE-Core rev: 17b97fd6c724ba6e506cbadb18facdfd9c472e79)

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Corneliu Stoicescu 2014-07-03 16:04:57 +03:00 committed by Richard Purdie
parent 49b416dde5
commit 5aec84dc65
1 changed files with 1 additions and 1 deletions

View 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