-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 31/10/2019 15.38, Istvan Gabor wrote:
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.
But the thing is, everytime the kernel is changed the file *must* absolutely be changed. If you *have* to edit that file, you are doing it wrong. Edit one of the two user files instead, which are yours to edit at will. - -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCXbsqZAAKCRC1MxgcbY1H 1R2fAJ9fEGah69xQldqew0Nc+7d/ZOl6OgCgmWLdDckCm1ESMXZJ7u0h0JjFdM4= =mrtQ -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org