Failed to start Mark boot as successful

What seems to be the problem? I noticed this error in the system logs, but don’t seem to have any problems with booting.

systemd[3336]: Starting Mark boot as successful...
grub2-set-bootflag[5019]: Error reading from /boot/grub2/grubenv: Invalid argument
ssb2 systemd[3336]: grub-boot-success.service: Main process exited, code=exited, status=1/FAILURE
ssb2 systemd[3336]: grub-boot-success.service: Failed with result 'exit-code'.
ssb2 systemd[3336]: Failed to start Mark boot as successful.

Looking at the file mentioned, /boot/grub2/grubenv is a link to ../efi/EFI/fedora/grubenv which is an empty (0 byte) file. Is that normal?

Also, systemctl list-unit-files --state=failed shows no failed units.

1 Like

The file seems corrupted, recreate it:

sudo grub2-editenv create

Thanks @vgaetera that did the trick.

After sudo grub2-editenv create system log shows:

grub-boot-success.service: Succeeded.
Finished Mark boot as successful.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.