On Thu, 31 Oct 2019 03:25:21 -0700, L A Walsh wrote:
On 2019/10/25 10:30, Istvan Gabor wrote:
How can I disable regeneration of grub.cfg? I want to take care of grub.cfg myself.
Not sure if it is file-system dependent or if it would work, but several file systems support the "immutable flag":
sudo chattr +i /boot/grub.cfg
to undo it when you want to edit:
sudo chattr -i /boot/grub.cfg
Thank you all. In my understanding the concerted work of /etc/default/grub, /etc/grub.d scripts and /boot/grub2/grub.cfg is a grub thing. Running grub update/install after kernel update is an operating system (in my case openSUSE) setup. I do not want to change the default grub behavior (the grub thing part), but I want to set when grub install is run (the openSUSE part). My answer for those who suggested changing any grub related file is that it is a working solution, but is still a hack, because my goal is not changing grub behavior but changing when grub install is run. I guess my option is either to disable boot loader in yast as Andrei suggested, or try that immutable flag. Thank you again, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org