Grub2 コマンドがエラー /usr/bin/grub2-editenv: error: invalid environment block or error: environment block too small で失敗する
Issue
-
デフォルトの
kernelエントリーの変更に失敗しました。注記:次の例では、1 (grub.cfgファイルの 2 番目のカーネル) を使用しています。[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.