+++ This bug was initially created as a clone of Bug #1032182 +++
Description of problem:
There is the following symbolic link in the system by default:
/etc/grub2.cfg -> /boot/grub2/grub.cfg
The following command, however, destroys the link by replacing it with a regular file:
mkconfig-grub2 -o /etc/grub2.cfg
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. make sure that /etc/grub2.cfg is a symlink to /boot/grub2/grub.cfg
2. run mkconfig-grub2 -o /etc/grub2.cfg
3. rpm -V grub2 fails because destination file becomes a regular file with updated content, grub2 is not updated
/etc/grub2.cfg is a regular file
/etc/grub2.cfg is a symlink
It has "always" been that way. It has never been recommended/documented to use the symlink for mkconfig. The symlink is only for grubby.
Tomas, see bug 743977 for an older ticket about this.
*** This bug has been marked as a duplicate of bug 743977 ***