when running /usr/sbin/grub2-mkconfig in order to reflect a minor change in /etc/default/grub the following error occurs: /usr/sbin/grub2-mkconfig: line 232: /boot/grub2/grub.cfg.new: No such file or directory Strangely enough, I had run it before a number of times already without errors... BTW, the file grub.cfg.new doesn't exist in /boot/grub either. Reproducible: Always
I'm fairly confident that this can ONLY occur if you ran the command as: grub2-mkconfig -o /boot/grub2/grub.cfg Line 232 there bases that path on the -o option that YOU passed.
You are absolutely right. I re-used an old script which contained exactly that line. I apologize.