I found out that there is a replacement of the file /etc/grub.d/10_linux with the file /usr/share/ubuntu-system-adjustments/grub/10_linux. This replacement is set in the file /etc/linuxmint/adjustments/15-grub.overwrite.
So if you change the file /usr/share/ubuntu-system-adjustments/grub/10_linux
from:
datarootdir="${prefix}/share"
to:
datarootdir="${prefix}/lib"
you don't have to update the file /etc/grub.d/10_linux every time.
I found out that there is a replacement of the file /etc/grub. d/10_linux with the file /usr/share/ ubuntu- system- adjustments/ grub/10_ linux. This replacement is set in the file /etc/linuxmint/ adjustments/ 15-grub. overwrite. ubuntu- system- adjustments/ grub/10_ linux "${prefix} /share" "${prefix} /lib" d/10_linux every time.
So if you change the file /usr/share/
from:
datarootdir=
to:
datarootdir=
you don't have to update the file /etc/grub.