Grub2 命令失败,并显示错误 /usr/bin/grub2-editenv: error: invalid environment block 或 error: environment block too small
Issue
-
更改默认
kernel条目失败。备注:在以下示例中,我们使用 1(来自grub.cfg文件中的第二个内核)[root@rhel~]# grub2-set-default 1 /usr/bin/grub2-editenv: error: invalid environment block. /usr/bin/grub2-editenv: error: invalid environment block. /usr/bin/grub2-editenv: error: invalid environment block.[root@rhel~]# grub2-set-default 1 /usr/bin/grub2-editenv: error: environment block too small. -
grub2-mkconfig失败,因为环境块太小。[root@rhel~]# grub2-mkconfig -o /boot/grub2/grub.cfg Generating grub configuration file ... /usr/bin/grub2-editenv: error: environment block too small.
Environment
- Red Hat Enterprise Linux 7 及更新版本
- grub2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.