rear recover 后,/boot/grub2/grubenv 丢失
Issue
rear recover
后,/boot/grub2/grubenv
丢失。- 尽管系统可以在没有
/boot/grub2/grubenv
的情况下启动,但以下错误经常在消息文件中输出。
systemd[118744]: Starting Mark boot as successful...
grub2-set-bootflag[119441]: Error canonicalizing /boot/grub2/grubenv filename: No such file or directory
systemd[118744]: grub-boot-success.service: Main process exited, code=exited, status=1/FAILURE
systemd[118744]: grub-boot-success.service: Failed with result 'exit-code'.
systemd[118744]: Failed to start Mark boot as successful.
- 安装新内核,
/boot/efi/EFI/redhat/grubenv
未被更新,因此系统默认总是启动到旧内核。即使grubby --default-kernel
显示新内核是默认内核。 - ReaR 2.4 没有这个问题。
Environment
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- ReaR 2.6
- SELinux 已禁用
- UEFI
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.