[vox-tech] vox-tech Digest, Vol 153, Issue 1

Nicholas Weigand dawtsf at gmail.com
Thu Jul 26 16:56:59 PDT 2018


First: I didn't notice that you mentioned `/etc/grub.d/` in your first
email. Sorry for the noise.

The '.d' directories are a way to allow a configuration file to be built
from disparate parts. You can imagine how a variety of different packages
may all need to make changes to a single configuration file. Rather than
having each package try to edit that file directly, they can simply add
their config snippet to the '.d' directories as a file and it will be
bundled together when the configuration file is built. The files are
generally bundled/concatenated together in numerical order.

In your case you probably want to edit '40_custom' to include something
like `GRUB_CMDLINE_LINUX_DEFAULT="<whatever options you want>"`. After that
you can run `update-grub` and you should see the changes next time you boot.

A couple things to note: I haven't done this in a while so no
guarantees/warranties :). Also, I'm not positive that
"GRUB_CMDLINE_LINUX_DEFAULT"
is the right variable, and you'll want to make sure that you include
whatever previous options were in there originally, not just the one you
want to add. Make sure you know what the working options are so you can
enter them manually in case of an emergency since you don't want to end up
with an unbootable system. All in all, you may need to play around with
things a bit to get them working properly.

On Thu, Jul 26, 2018 at 6:35 PM, Brian E. Lavender <brian at brie.com> wrote:

> Yes, I have the /etc/grub.d/ directory with a bunch of files. I am not
> sure how to edit these files.
>
> 00_header
> 05_debian_theme
> 10_linux
> 20_linux_xen
> 30_os-prober
> 30_uefi-firmware
> 40_custom
> 41_custom
>
> On Thu, Jul 26, 2018 at 04:38:27PM -0400, Nicholas Weigand wrote:
> >    Do you have an /etc/grub.d/ directory? I would think that would be the
> >    better place anyway since /etc/default/grub may be owned by the grub
> >    package and be liable to be overwritten.
> >
> >    On Thu, Jul 26, 2018 at 4:30 PM, Brian E. Lavender <[1]brian at brie.com
> >
> >    wrote:
> >
> >      there is no /etc/default/grub on my system. I installed with
> >      Xen-tools.
> >      I wonder if I add that file and a configuration setting if it will
> >      use
> >      it?
> >      brian
> >      On Thu, Jul 26, 2018 at 12:55:06PM -0700, Kevin Lucas wrote:
> >      >    It may depend on the distro but I believe it's in
> >      /etc/default/grub on
> >      >    Debian. Run update-grub after your change to apply it.
> >      >
> >      >    Kev.
> >      >    On Thu, Jul 26, 2018, 12:02 PM <[1][2]vox-tech-request at lists.
> >      lugod.org>
> >      >    wrote:
> >      >
> >      >      Send vox-tech mailing list submissions to
> >      >              [2][3]vox-tech at lists.lugod.org
> >      >      To subscribe or unsubscribe via the World Wide Web, visit
> >      >              [3][4]http://lists.lugod.org/
> >      mailman/listinfo/vox-tech
> >      >      or, via email, send a message with subject or body 'help' to
> >      >              [4][5]vox-tech-request at lists.lugod.org
> >      >      You can reach the person managing the list at
> >      >              [5][6]vox-tech-owner at lists.lugod.org
> >      >      When replying, please edit your Subject line so it is more
> >      specific
> >      >      than "Re: Contents of vox-tech digest..."
> >      >      Today's Topics:
> >      >         1. kernel options for grub (Brian E. Lavender)
> >      >      ------------------------------------------------------------
> >      --------
> >      >      --
> >      >      Message: 1
> >      >      Date: Thu, 26 Jul 2018 09:59:31 -0700
> >      >      From: "Brian E. Lavender" <[6][7]brian at brie.com>
> >      >      To: [7][8]vox-tech at lists.lugod.org
> >      >      Subject: [vox-tech] kernel options for grub
> >      >      Message-ID: <[8][9]20180726165931.bzfctu5xjrxge5e5 at brie.com>
> >      >      Content-Type: text/plain; charset="utf-8"
> >      >      I want the update-grub to add the following option
> >      >      pti=off
> >      >      to the auto generated kernels in /boot/grub/menu.lst
> >      >      Where do I add the option?
> >      >
> >      >      I see /etc/grub.d/
> >      >
> >      >      I see a bunch of files there, but I have no clue where to
> >      >      automatically
> >      >      add this option so that it adds it to the kernel line for the
> >      >      kernel.
> >      >      brian
> >      >      --
> >      >      Brian Lavender
> >      >      [9][10]http://www.brie.com/brian/
> >      >      "There are two ways of constructing a software design. One
> >      way is to
> >      >      make it so simple that there are obviously no deficiencies.
> >      And the
> >      >      other
> >      >      way is to make it so complicated that there are no obvious
> >      >      deficiencies."
> >      >      Professor C. A. R. Hoare
> >      >      The 1980 Turing award lecture
> >      >      -------------- next part --------------
> >      >      A non-text attachment was scrubbed...
> >      >      Name: signature.asc
> >      >      Type: application/pgp-signature
> >      >      Size: 488 bytes
> >      >      Desc: not available
> >      >      URL:
> >      >      <[10][11]http://lists.lugod.org/pipermail/vox-tech/
> >      attachments/20180726/
> >      >      304a6f6e/attachment-0001.sig>
> >      >      ------------------------------
> >      >      Subject: Digest Footer
> >      >      _______________________________________________
> >      >      vox-tech mailing list
> >      >      [11][12]vox-tech at lists.lugod.org
> >      >      [12][13]http://lists.lugod.org/mailman/listinfo/vox-tech
> >      >      ------------------------------
> >      >      End of vox-tech Digest, Vol 153, Issue 1
> >      >      ****************************************
> >      >
> >      > References
> >      >
> >      >    1. mailto:[14]vox-tech-request at lists.lugod.org
> >      >    2. mailto:[15]vox-tech at lists.lugod.org
> >      >    3. [16]http://lists.lugod.org/mailman/listinfo/vox-tech
> >      >    4. mailto:[17]vox-tech-request at lists.lugod.org
> >      >    5. mailto:[18]vox-tech-owner at lists.lugod.org
> >      >    6. mailto:[19]brian at brie.com
> >      >    7. mailto:[20]vox-tech at lists.lugod.org
> >      >    8. mailto:[21]20180726165931.bzfctu5xjrxge5e5 at brie.com
> >      >    9. [22]http://www.brie.com/brian/
> >      >   10. [23]http://lists.lugod.org/pipermail/vox-tech/
> >      attachments/20180726/304a6f6e/attachment-0001.sig
> >      >   11. mailto:[24]vox-tech at lists.lugod.org
> >      >   12. [25]http://lists.lugod.org/mailman/listinfo/vox-tech
> >      > _______________________________________________
> >      > vox-tech mailing list
> >      > [26]vox-tech at lists.lugod.org
> >      > [27]http://lists.lugod.org/mailman/listinfo/vox-tech
> >
> >    --
> >    Brian Lavender
> >    [28]http://www.brie.com/brian/
> >    "There are two ways of constructing a software design. One way is to
> >    make it so simple that there are obviously no deficiencies. And the
> >    other
> >    way is to make it so complicated that there are no obvious
> >    deficiencies."
> >    Professor C. A. R. Hoare
> >    The 1980 Turing award lecture
> >
> >      _______________________________________________
> >      vox-tech mailing list
> >      [29]vox-tech at lists.lugod.org
> >      [30]http://lists.lugod.org/mailman/listinfo/vox-tech
> >
> > References
> >
> >    1. mailto:brian at brie.com
> >    2. mailto:vox-tech-request at lists.lugod.org
> >    3. mailto:vox-tech at lists.lugod.org
> >    4. http://lists.lugod.org/mailman/listinfo/vox-tech
> >    5. mailto:vox-tech-request at lists.lugod.org
> >    6. mailto:vox-tech-owner at lists.lugod.org
> >    7. mailto:brian at brie.com
> >    8. mailto:vox-tech at lists.lugod.org
> >    9. mailto:20180726165931.bzfctu5xjrxge5e5 at brie.com
> >   10. http://www.brie.com/brian/
> >   11. http://lists.lugod.org/pipermail/vox-tech/attachments/20180726/
> >   12. mailto:vox-tech at lists.lugod.org
> >   13. http://lists.lugod.org/mailman/listinfo/vox-tech
> >   14. mailto:vox-tech-request at lists.lugod.org
> >   15. mailto:vox-tech at lists.lugod.org
> >   16. http://lists.lugod.org/mailman/listinfo/vox-tech
> >   17. mailto:vox-tech-request at lists.lugod.org
> >   18. mailto:vox-tech-owner at lists.lugod.org
> >   19. mailto:brian at brie.com
> >   20. mailto:vox-tech at lists.lugod.org
> >   21. mailto:20180726165931.bzfctu5xjrxge5e5 at brie.com
> >   22. http://www.brie.com/brian/
> >   23. http://lists.lugod.org/pipermail/vox-tech/
> attachments/20180726/304a6f6e/attachment-0001.sig
> >   24. mailto:vox-tech at lists.lugod.org
> >   25. http://lists.lugod.org/mailman/listinfo/vox-tech
> >   26. mailto:vox-tech at lists.lugod.org
> >   27. http://lists.lugod.org/mailman/listinfo/vox-tech
> >   28. http://www.brie.com/brian/
> >   29. mailto:vox-tech at lists.lugod.org
> >   30. http://lists.lugod.org/mailman/listinfo/vox-tech
>
> > _______________________________________________
> > vox-tech mailing list
> > vox-tech at lists.lugod.org
> > http://lists.lugod.org/mailman/listinfo/vox-tech
>
>
> --
> Brian Lavender
> http://www.brie.com/brian/
>
> "There are two ways of constructing a software design. One way is to
> make it so simple that there are obviously no deficiencies. And the other
> way is to make it so complicated that there are no obvious deficiencies."
>
> Professor C. A. R. Hoare
> The 1980 Turing award lecture
>
> _______________________________________________
> vox-tech mailing list
> vox-tech at lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox-tech
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lugod.org/pipermail/vox-tech/attachments/20180726/00c14d68/attachment-0001.html>


More information about the vox-tech mailing list