Ubuntu12.04 selecting the GRUB startup Item
Ubuntu12.04 Grub boot Item 1. If an exception occurs when the host is switched on or off, You need to select a boot item on the keyboard, such as the system. This operation is annoying ..
2. Solutions to this problem:
(A) The valid method is to modify the/etc/grub. d/00_head file:
Cat <EOF
If [\ $ {recordfail} = 1]; then
Set timeout =-1
Else
Set timeout =$ {GRUB_TIMEOUT}
Fi
EOF
Set timeout =-1 to the desired number of seconds.
(B) Another way is to put the/etc/grub. d/00_head file,
Set timeout =-1
Set timeout =$ {GRUB_RECORDFAIL_TIMEOUT: -- 1}
Set the following in the/etc/default/grub file:
GRUB_RECORDFAIL_TIMEOUT = 10
Save and execute update-grub.
However, a single modification to the/boot/grub. cfg file will invalidate the modification by running the update-grub command to regenerate the file.
See: http://forum.ubuntu.org.cn/viewtopic.php? F = 139 & t = 395230 & p = 3099520 # p3099520