【原創】工控機安裝Ubuntu系統,直接斷電然後再上電時,系統停留在啓動項位置等待選擇的處理方法
【原創】工控機安裝Ubuntu系統,直接斷電然後再上電時,系統停留在啓動項位置等待選擇的處理方法
電腦直接斷電後再次上電時會停在啓動項處等待選擇啓動項,解決這個問題的方法是:
修改 /boot/grub/grub.cfg 文件:
修改前
if [ "${recordfail}" = 1 ] ; then
set timeout=-1
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=hidden
set timeout=0
# Fallback hidden-timeout code in case the timeout_style feature is
# unavailable.
elif sleep --interruptible 0 ; then
set timeout=0
fi
fi
修改後:
if [ "${recordfail}" = 1 ] ; then
set timeout=1
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=hidden
set timeout=0
# Fallback hidden-timeout code in case the timeout_style feature is
# unavailable.
elif sleep --interruptible 0 ; then
set timeout=0
fi
fi
也就是將recordfail狀態時的timeout 由-1 修改爲大於等於0 的數值即可。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.