The online search to modify the grub startup time is basically to modify /etc/default/grub #Comment out GRUB_HIDDEN_TIMEOUT=0 #GRUB_HIDDEN_TIMEOUT=0 #Modify GRUB_TIMEOUT = 0 GRUB_TIMEOUT = 0 Then run update-grub to regenerate /boot/grub/grub.cfg. However, this does not work and you still have to wait 30 seconds. View /boot/grub/grub.cfg ### BEGIN /etc/grub.d/00_header ### ... function recordfail { set recordfail=1 # GRUB lacks write support for lvm, so recordfail support is disabled. } ... if [ "${recordfail}" = 1 ] ; then set timeout=30 ... if [ $grub_platform = efi ]; then set timeout=30 ... ### END /etc/grub.d/00_header ### From the above configuration, we can see that if it is an lvm partition, the timeout is 30 seconds; if it is an EFI boot, the timeout is 30 seconds. The priority is EFI > LVM. Let's take a look at the /etc/grub.d/00_header script that generates this configuration. ... cat << EOF if [ "\${recordfail}" = 1 ] ; then set timeout=${GRUB_RECORDFAIL_TIMEOUT:-30} else EOF ... if [ "$recordfail_broken" = 1 ]; then cat << EOF if [ \$grub_platform = efi ]; then set timeout=${GRUB_RECORDFAIL_TIMEOUT:-30} if [ x\$feature_timeout_style = xy ] ; then set timeout_style=menu fi ... You can see that this timeout of 30 seconds is set by the value of GRUB_RECORDFAIL_TIMEOUT. So just add or modify GRUB_RECORDFAIL_TIMEOUT in /boot/grub/grub.cfg GRUB_RECORDFAIL_TIMEOUT=0 Then run sudo update-grub to regenerate /boot/grub/grub.cfg. The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Summary of MySQL database and table sharding
>>: A brief analysis of the difference between static and self in PHP classes
Introduction As mentioned in the previous article...
Table of contents 1. Introduction 2. es5 method 3...
Use Nginx to build Tomcat9 cluster and Redis to r...
Let me start with a question: When writing an HTM...
Problem description: structure: test has two fiel...
Table of contents forEach() (ES6) method map() (E...
console.log( [] == ![] ) // true console.log( {} ...
Table of contents 1. Technology Selection 2. Tech...
(1) Experimental environment youxi1 192.168.5.101...
This article example shares the specific code of ...
This article mainly introduces Docker stop/remove...
As we all know, SSH is currently the most reliabl...
Colleagues often ask, when deleting files/directo...
Table of contents Saltstack deploys zabbix servic...
Table of contents Preface Background Implementati...