diff options
author | Catalin Enache <catalin.enache@windriver.com> | 2018-05-30 17:04:00 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-06-03 16:50:30 +0100 |
commit | f6d85426e48d458d0835d4fd3314ce53ab92bd38 (patch) | |
tree | 5ddf40bd503b2e6fe745122b4f60df1008ea47ac | |
parent | e5315d5d820cb1b164c75a0cab3804f6c69b5ba9 (diff) | |
download | openembedded-core-f6d85426e48d458d0835d4fd3314ce53ab92bd38.tar.gz openembedded-core-f6d85426e48d458d0835d4fd3314ce53ab92bd38.tar.bz2 openembedded-core-f6d85426e48d458d0835d4fd3314ce53ab92bd38.zip |
init-install: add timeout for legacy grub
After installing an image from an iso, booting the system using
the legacy boots makes the grub prompt wait for an enter.
This is not desirable since many of this devices are embedded
devices that should start by them self without user entry.
Signed-off-by: Catalin Enache <catalin.enache@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-core/initrdscripts/files/init-install.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-install.sh b/meta/recipes-core/initrdscripts/files/init-install.sh index 28e8f09d19..e71579631b 100644 --- a/meta/recipes-core/initrdscripts/files/init-install.sh +++ b/meta/recipes-core/initrdscripts/files/init-install.sh @@ -302,6 +302,8 @@ if [ -f /etc/grub.d/00_header -a $grub_version -ne 0 ] ; then GRUBCFG="/boot/grub/grub.cfg" mkdir -p $(dirname $GRUBCFG) cat >$GRUBCFG <<_EOF +timeout=5 +default=0 menuentry "Linux" { search --no-floppy --fs-uuid $boot_uuid --set root linux /$kernel root=PARTUUID=$root_part_uuid $rootwait rw $5 $3 $4 quiet |