0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Almalinux9 を kernel update しても再起動後に最新kernelで起動しなくなった

Posted at

AWSの一部のAlmalinux9 サーバーが再起動してもgrubbyで指定しても
新しい方のkernelで起動してくれなくなった。
おそらく原因はちょくちょく/var/lib/rpm以下に不整合を起こすあのふざけたEDR...
対処方法について色々調べた結果の解決手順を備忘録で残しておきます。
同じようなケースでお悩みの方の一助になれば..

GRUB_ENABLE_BLSCFG のパラメータ修正(true -> false)

 # more /etc/default/grub 
     :
 GRUB_ENABLE_BLSCFG=false

grub2-mkconfig でgrub.cfgに再登録
/boot 以下の各イメージがFoundで出てくれば成功

# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.14.0-570.39.1.el9_6.x86_64
Found initrd image: /boot/initramfs-5.14.0-570.39.1.el9_6.x86_64.img
Found linux image: /boot/vmlinuz-5.14.0-570.37.1.el9_6.x86_64
Found initrd image: /boot/initramfs-5.14.0-570.37.1.el9_6.x86_64.img
Found linux image: /boot/vmlinuz-5.14.0-284.11.1.el9_2.x86_64
Found initrd image: /boot/initramfs-5.14.0-284.11.1.el9_2.x86_64.img
Adding boot menu entry for UEFI Firmware Settings ...
done

/etc/grub2.cfg にメニューのリストが追加されているのを確認

#  awk -F\' '$1=="menuentry " {print $2}' /etc/grub2.cfg
AlmaLinux 9.6 (Sage Margay)

必要に応じてgrubby でkernel再指定して再起動します

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?