Knurpht-openSUSE composed on 2019-10-31 19:47 (UTC+0100):
Don't do that. It's a guarantee for breakage on the next kernel update.
No post in this thread arrived in my account until Knurpht's. :~(
My question applies to all openSUSE versions that use grub2 and dracut/mkintird. Currently I use Leap 15.1, and 42.2.
I do not like the default grub configuration therefore I adjust /boot/grub2/grub.cfg manually. When I update the kernel or use mkinitrd, grub.cfg is regenerated, and my settings are overwritten. How can I disable regeneration of grub.cfg? I want to take care of grub.cfg myself.
I don't bother trying. Instead, I build /boot/grub2/custom.cfg personally (and very infrequently have reason to change it), and copy /etc/grub.d/40_custom to /etc/grub.d/06_custom. The result is grub2-mkconfig's grub.cfg entries always follow my custom entries after POST completes. The autogenerated entries are then useful only when I want to use a prior or test kernel, so it doesn't much matter how or when grub2-mkconfig is run. My custom.cfg stanzas point to the kernel and initrd symlinks generated automatically by kernel installation, so are always pointing to the latest kernel/initrd. e.g.: https://forums.opensuse.org/showthread.php/533087-How-to-have-a-custom-UEFI-... Note those menuentries are much simpler than those grub2-mkconfig creates. https://forums.opensuse.org/showthread.php/537684-How-to-create-a-custom-gru... is conceptually similar to what I do. -- Evolution as taught in public schools is religion, not science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org