doc-exports/docs/bms/image-creation-guide/en-us_topic_0000001239038183.html
guoyanyan fe8c0cf45c BMS Image Creation Guide 1109
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: guoyanyan <guoyanyan3@huawei.com>
Co-committed-by: guoyanyan <guoyanyan3@huawei.com>
2022-11-16 08:53:42 +00:00

27 lines
2.3 KiB
HTML

<a name="EN-US_TOPIC_0000001239038183"></a><a name="EN-US_TOPIC_0000001239038183"></a>
<h1 class="topictitle1">(Optional) Configuring the GRUB Timeout</h1>
<div id="body0000001239038183"><div class="section" id="EN-US_TOPIC_0000001239038183__en-us_topic_0285784637_section1736713315531"><h4 class="sectiontitle">Scenario</h4><p id="EN-US_TOPIC_0000001239038183__en-us_topic_0285784637_p6732124185313">For Ubuntu 14.04 or Debian, you need to set the GRUB timeout to prevent system login failures caused by unexpected power-off. For other OSs, skip this section.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001239038183__en-us_topic_0285784637_section58238310546"><h4 class="sectiontitle">Procedure</h4><ol id="EN-US_TOPIC_0000001239038183__en-us_topic_0285784637_ol94315012183"><li id="EN-US_TOPIC_0000001239038183__en-us_topic_0285784637_li1443170191819">Use the vi editor to open the <strong id="EN-US_TOPIC_0000001239038183__en-us_topic_0285784637_b12107514410">/etc/default/grub</strong> file and appendix <strong id="EN-US_TOPIC_0000001239038183__en-us_topic_0285784637_b18827171114412">GRUB_RECORDFAIL_TIMEOUT=10</strong> to the <strong id="EN-US_TOPIC_0000001239038183__en-us_topic_0285784637_b73587284413">GRUB_CMDLINE_LINUX</strong> field.<pre class="screen" id="EN-US_TOPIC_0000001239038183__en-us_topic_0285784637_screen194991712102611">GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=2
GRUB_DISTRIBUTOR='lsb_release -i -s 2&gt; /dev/null || echo Debian'
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0"
<strong id="EN-US_TOPIC_0000001239038183__en-us_topic_0285784637_b17621157142918">GRUB_RECORDFAIL_TIMEOUT=10</strong></pre>
</li><li id="EN-US_TOPIC_0000001239038183__en-us_topic_0285784637_li1971617114264">Run the following commands to update the configuration:<p id="EN-US_TOPIC_0000001239038183__en-us_topic_0285784637_p577418219319"><a name="EN-US_TOPIC_0000001239038183__en-us_topic_0285784637_li1971617114264"></a><a name="en-us_topic_0285784637_li1971617114264"></a><strong id="EN-US_TOPIC_0000001239038183__en-us_topic_0285784637_b19457151318">grub-mkconfig -o /boot/grub/grub.cfg</strong></p>
</li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0081116597.html">Configuring the VM Environment</a></div>
</div>
</div>