setting boot parameters

Forum Forums New users New Users and General Questions setting boot parameters

  • This topic has 8 replies, 6 voices, and was last updated Dec 3-7:09 pm by userzero.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #46424
    Member
    Keeely

      Hi,

      I’m struggling to figure out how to set kernel boot parameters. I can see plenty of docs for how to set them on boot of the DVD, but I want to add a parameter permanently to the installed system.

      I’ve found /boot/grub/grub.cfg, however that tells me not to edit it, refers me to /etc/grub.d. I’ve looked through those files but it isn’t obvious which one I should be changing. Unfortunately I’m used to LILO, which is just a single file with append= line, and this is the first time I’ve needed to do this with Grub.

      thanks!

      #46425
      Member
      Xecure
        Helpful
        Up
        0
        ::

        Installed antiX Linux

        From https://antixlinuxfan.miraheze.org/wiki/Boot_Parameters#Adding_options_to_Boot
        For most antiX Linux systems, the installation process will install GRUB (to a selected partition or to the Master boot Record) and it will use it to boot your system.

        If you want to add or remove Boot Parameters but you want to test them first before making them permanent, edit them at boot in the grub selection screen.

        If you want to add boot parameters and make them permanent (or you are happy with the results of testing them using the above procedure), you can edit the /etc/default/grub file and update grub.

        Meaning:
        1. open with root privileges /etc/default/grub.
        2. Edit the line containing GRUB_CMDLINE_LINUX_DEFAULT and add the boot parameters inside the ” symbols ”
        3. Save the file, close it and update grub
        sudo update-grub

        I hope this helps.

        antiX Live system enthusiast.
        General Live Boot Parameters for antiX.

        #46427
        Forum Admin
        anticapitalista
          Helpful
          Up
          0
          ::

          Are you running live?

          Philosophers have interpreted the world in many ways; the point is to change it.

          antiX with runit - leaner and meaner.

          #46430
          Member
          Keeely
            Helpful
            Up
            0
            ::

            I hope this helps.

            You bet it does! Thank you so much.

            #46431
            Member
            Keeely
              Helpful
              Up
              0
              ::

              Are you running live?

              That’s an interesting question. I wasn’t for that, but I also want to do this after cli-installer has run, but before the first boot. I’m just trying to figure that out next.

              EDIT: It does seem that editing the live file /etc/default/grub gets picked up once grub is installed as part of cli-installer, so I guess that’s the way to get an option on first boot.

              • This reply was modified 2 years, 5 months ago by Keeely.
              #46439
              Moderator
              BobC
                Helpful
                Up
                0
                ::

                If you just need to make sure its there on the first boot, on the Grub Boot screen, press e to edit the boot lines, and once done, F10 to boot

                #46444
                Member
                Keeely
                  Helpful
                  Up
                  0
                  ::

                  Cheers BobC. Yes, I managed to figure out that side of things (entering manually at boot time). It was the making permanent part I struggled with.

                  #46451
                  Moderator
                  Brian Masinick
                    #46454
                    Member
                    userzero
                    Viewing 9 posts - 1 through 9 (of 9 total)
                    • You must be logged in to reply to this topic.