Results 1 to 5 of 5

Thread: How to protect my grub configuration from alterations by system updates

  1. #1

    Default How to protect my grub configuration from alterations by system updates

    Every time I run the system updates something in them (and this can be in a long list so finding which would be seriously tedious) modifies my grub settings and usually in a detrimental way.
    How can I make my grub configuration safe from this, bearing in mind the auto updates have to run as root? I do not want to waste my time repeatedly restoring something that doesn't need changing anyway.

  2. #2
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: How to protect my grub configuration from alterations by systemupdates

    On 2014-01-21 00:16, raggedrat wrote:
    >
    > Every time I run the system updates something in them (and this can be
    > in a long list so finding which would be seriously tedious) modifies my
    > grub settings and usually in a detrimental way.


    Where do you write those grub settings? Not on /boot/grub2/...., because
    they are designed to be automatically changed.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.3 x86_64 "Dartmouth" at Telcontar)

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,735

    Default Re: How to protect my grub configuration from alterations by system updates

    You better come to the point. As you state it now your post is a vague description of your conclusions and contains no real computer facts. You shoud at least describe which file contains what, and what it contains afterwards.

    And of course all that computer texts should be copied pasted between CODE tags. You get the CODE tags by clicking on the # button in the tool bar of the post editor. And best is when you copy/paste in one sweep the prompt, the command, the output and the next prompt. Thus we can all see what your working directory was, what user, what command. No explaining needed.
    Henk van Velden

  4. #4
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    15,667
    Blog Entries
    3

    Default Re: How to protect my grub configuration from alterations by system updates

    Quote Originally Posted by raggedrat View Post
    Every time I run the system updates something in them (and this can be in a long list so finding which would be seriously tedious) modifies my grub settings and usually in a detrimental way.
    If this is "grub2", then make your changes in "/etc/default/grub" and in "/etc/grub.d" (especially "/etc/grub.d/40_custom"). DO NOT make changes in "/boot/grub2/grub.cfg" if you don't want them to disappear on the next update.
    openSUSE Leap 15.3; KDE Plasma 5.18.6;

  5. #5

    Default AW: Re: How to protect my grub configuration from alterations by system updates

    Quote Originally Posted by nrickert View Post
    If this is "grub2", then make your changes in "/etc/default/grub" and in "/etc/grub.d" (especially "/etc/grub.d/40_custom"). DO NOT make changes in "/boot/grub2/grub.cfg" if you don't want them to disappear on the next update.
    Or you can also use /boot/grub2/custom.cfg to add entries. This is included by /etc/grub.d/41_custom.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •