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

Brian E. Lavender brian at brie.com
Fri Jul 27 10:13:45 PDT 2018


This is a test vm, so no worries about not being bootable. I am using
pygrub and Xen. I looked in the 40_custom and it didn't look like the
spot, but I have yet to try it. I can't ssh to my machine right now. I
will have to check later.

brian

On Thu, Jul 26, 2018 at 07:56:59PM -0400, Nicholas Weigand wrote:
>    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 <[1]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][2]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.
>      >      [3]lugod.org>
>      >      >    wrote:
>      >      >
>      >      >      Send vox-tech mailing list submissions to
>      >      >              [2][3][4]vox-tech at lists.lugod.org
>      >      >      To subscribe or unsubscribe via the World Wide Web,
>      visit
>      >      >              [3][4][5]http://lists.lugod.org/
>      >      mailman/listinfo/vox-tech
>      >      >      or, via email, send a message with subject or body
>      'help' to
>      >      >              [4][5][6]vox-tech-request at lists.lugod.org
>      >      >      You can reach the person managing the list at
>      >      >              [5][6][7]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][8]brian at brie.com>
>      >      >      To: [7][8][9]vox-tech at lists.lugod.org
>      >      >      Subject: [vox-tech] kernel options for grub
>      >      >      Message-ID: <[8][9][10]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][11]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][12]http://lists.lugod.
>      org/pipermail/vox-tech/
>      >      attachments/20180726/
>      >      >      304a6f6e/attachment-0001.sig>
>      >      >      ------------------------------
>      >      >      Subject: Digest Footer
>      >      >      _______________________________________________
>      >      >      vox-tech mailing list
>      >      >      [11][12][13]vox-tech at lists.lugod.org
>      >      >      [12][13][14]http://lists.lugod.
>      org/mailman/listinfo/vox-tech
>      >      >      ------------------------------
>      >      >      End of vox-tech Digest, Vol 153, Issue 1
>      >      >      ****************************************
>      >      >
>      >      > References
>      >      >
>      >      >    1. mailto:[14][15]vox-tech-request at lists.lugod.org
>      >      >    2. mailto:[15][16]vox-tech at lists.lugod.org
>      >      >    3. [16][17]http://lists.lugod.org/
>      mailman/listinfo/vox-tech
>      >      >    4. mailto:[17][18]vox-tech-request at lists.lugod.org
>      >      >    5. mailto:[18][19]vox-tech-owner at lists.lugod.org
>      >      >    6. mailto:[19][20]brian at brie.com
>      >      >    7. mailto:[20][21]vox-tech at lists.lugod.org
>      >      >    8. mailto:[21][22]20180726165931.
>      bzfctu5xjrxge5e5 at brie.com
>      >      >    9. [22][23]http://www.brie.com/brian/
>      >      >   10. [23][24]http://lists.lugod.org/pipermail/vox-tech/
>      >      attachments/20180726/304a6f6e/attachment-0001.sig
>      >      >   11. mailto:[24][25]vox-tech at lists.lugod.org
>      >      >   12. [25][26]http://lists.lugod.org/
>      mailman/listinfo/vox-tech
>      >      > _______________________________________________
>      >      > vox-tech mailing list
>      >      > [26][27]vox-tech at lists.lugod.org
>      >      > [27][28]http://lists.lugod.org/mailman/listinfo/vox-tech
>      >
>      >    --
>      >    Brian Lavender
>      >    [28][29]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][30]vox-tech at lists.lugod.org
>      >      [30][31]http://lists.lugod.org/mailman/listinfo/vox-tech
>      >
>      > References
>      >
>      >    1. mailto:[32]brian at brie.com
>      >    2. mailto:[33]vox-tech-request at lists.lugod.org
>      >    3. mailto:[34]vox-tech at lists.lugod.org
>      >    4. [35]http://lists.lugod.org/mailman/listinfo/vox-tech
>      >    5. mailto:[36]vox-tech-request at lists.lugod.org
>      >    6. mailto:[37]vox-tech-owner at lists.lugod.org
>      >    7. mailto:[38]brian at brie.com
>      >    8. mailto:[39]vox-tech at lists.lugod.org
>      >    9. mailto:[40]20180726165931.bzfctu5xjrxge5e5 at brie.com
>      >   10. [41]http://www.brie.com/brian/
>      >   11. [42]http://lists.lugod.org/pipermail/vox-tech/
>      attachments/20180726/
>      >   12. mailto:[43]vox-tech at lists.lugod.org
>      >   13. [44]http://lists.lugod.org/mailman/listinfo/vox-tech
>      >   14. mailto:[45]vox-tech-request at lists.lugod.org
>      >   15. mailto:[46]vox-tech at lists.lugod.org
>      >   16. [47]http://lists.lugod.org/mailman/listinfo/vox-tech
>      >   17. mailto:[48]vox-tech-request at lists.lugod.org
>      >   18. mailto:[49]vox-tech-owner at lists.lugod.org
>      >   19. mailto:[50]brian at brie.com
>      >   20. mailto:[51]vox-tech at lists.lugod.org
>      >   21. mailto:[52]20180726165931.bzfctu5xjrxge5e5 at brie.com
>      >   22. [53]http://www.brie.com/brian/
>      >   23. [54]http://lists.lugod.org/pipermail/vox-tech/
>      attachments/20180726/304a6f6e/attachment-0001.sig
>      >   24. mailto:[55]vox-tech at lists.lugod.org
>      >   25. [56]http://lists.lugod.org/mailman/listinfo/vox-tech
>      >   26. mailto:[57]vox-tech at lists.lugod.org
>      >   27. [58]http://lists.lugod.org/mailman/listinfo/vox-tech
>      >   28. [59]http://www.brie.com/brian/
>      >   29. mailto:[60]vox-tech at lists.lugod.org
>      >   30. [61]http://lists.lugod.org/mailman/listinfo/vox-tech
> 
>    > _______________________________________________
>    > vox-tech mailing list
>    > [62]vox-tech at lists.lugod.org
>    > [63]http://lists.lugod.org/mailman/listinfo/vox-tech
>    --
>    Brian Lavender
>    [64]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
>      [65]vox-tech at lists.lugod.org
>      [66]http://lists.lugod.org/mailman/listinfo/vox-tech
> 
> References
> 
>    1. mailto:brian at brie.com
>    2. mailto:brian at brie.com
>    3. http://lugod.org/
>    4. mailto:vox-tech at lists.lugod.org
>    5. http://lists.lugod.org/
>    6. mailto:vox-tech-request at lists.lugod.org
>    7. mailto:vox-tech-owner at lists.lugod.org
>    8. mailto:brian at brie.com
>    9. mailto:vox-tech at lists.lugod.org
>   10. mailto:20180726165931.bzfctu5xjrxge5e5 at brie.com
>   11. http://www.brie.com/brian/
>   12. http://lists.lugod.org/pipermail/vox-tech/
>   13. mailto:vox-tech at lists.lugod.org
>   14. http://lists.lugod.org/mailman/listinfo/vox-tech
>   15. mailto:vox-tech-request at lists.lugod.org
>   16. mailto:vox-tech at lists.lugod.org
>   17. http://lists.lugod.org/mailman/listinfo/vox-tech
>   18. mailto:vox-tech-request at lists.lugod.org
>   19. mailto:vox-tech-owner at lists.lugod.org
>   20. mailto:brian at brie.com
>   21. mailto:vox-tech at lists.lugod.org
>   22. mailto:20180726165931.bzfctu5xjrxge5e5 at brie.com
>   23. http://www.brie.com/brian/
>   24. http://lists.lugod.org/pipermail/vox-tech/
>   25. mailto:vox-tech at lists.lugod.org
>   26. http://lists.lugod.org/mailman/listinfo/vox-tech
>   27. mailto:vox-tech at lists.lugod.org
>   28. http://lists.lugod.org/mailman/listinfo/vox-tech
>   29. http://www.brie.com/brian/
>   30. mailto:vox-tech at lists.lugod.org
>   31. http://lists.lugod.org/mailman/listinfo/vox-tech
>   32. mailto:brian at brie.com
>   33. mailto:vox-tech-request at lists.lugod.org
>   34. mailto:vox-tech at lists.lugod.org
>   35. http://lists.lugod.org/mailman/listinfo/vox-tech
>   36. mailto:vox-tech-request at lists.lugod.org
>   37. mailto:vox-tech-owner at lists.lugod.org
>   38. mailto:brian at brie.com
>   39. mailto:vox-tech at lists.lugod.org
>   40. mailto:20180726165931.bzfctu5xjrxge5e5 at brie.com
>   41. http://www.brie.com/brian/
>   42. http://lists.lugod.org/pipermail/vox-tech/attachments/20180726/
>   43. mailto:vox-tech at lists.lugod.org
>   44. http://lists.lugod.org/mailman/listinfo/vox-tech
>   45. mailto:vox-tech-request at lists.lugod.org
>   46. mailto:vox-tech at lists.lugod.org
>   47. http://lists.lugod.org/mailman/listinfo/vox-tech
>   48. mailto:vox-tech-request at lists.lugod.org
>   49. mailto:vox-tech-owner at lists.lugod.org
>   50. mailto:brian at brie.com
>   51. mailto:vox-tech at lists.lugod.org
>   52. mailto:20180726165931.bzfctu5xjrxge5e5 at brie.com
>   53. http://www.brie.com/brian/
>   54. http://lists.lugod.org/pipermail/vox-tech/attachments/20180726/304a6f6e/attachment-0001.sig
>   55. mailto:vox-tech at lists.lugod.org
>   56. http://lists.lugod.org/mailman/listinfo/vox-tech
>   57. mailto:vox-tech at lists.lugod.org
>   58. http://lists.lugod.org/mailman/listinfo/vox-tech
>   59. http://www.brie.com/brian/
>   60. mailto:vox-tech at lists.lugod.org
>   61. http://lists.lugod.org/mailman/listinfo/vox-tech
>   62. mailto:vox-tech at lists.lugod.org
>   63. http://lists.lugod.org/mailman/listinfo/vox-tech
>   64. http://www.brie.com/brian/
>   65. mailto:vox-tech at lists.lugod.org
>   66. 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lugod.org/pipermail/vox-tech/attachments/20180727/e7448cbb/attachment.sig>


More information about the vox-tech mailing list