You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

GRUB_DEFAULT配置项失效问题求助

GRUB_DEFAULT配置项失效问题求助

我在虚拟机里安装了Debian 12,不小心装上了xen-tools(其实虚拟机客户机系统根本不需要这个工具)。卸载xen-tools之后,GRUB菜单里仍然保留着Xen的启动项,而且它是第二个选项,还被设为了默认启动项。

我尝试修改/etc/default/grub里的GRUB_DEFAULT=0配置,之后执行update-grub命令,但重启后完全没有变化——默认启动项还是第二个Xen的选项!

我到底忽略了什么环节?

以下是grub-mkconfig的输出内容:

# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="Debian GNU/Linux, with Xen hypervisor"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_...

备注:内容来源于stack exchange,提问作者Alexander Baltasar

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.16 08:39:36