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.
-
AuthorPosts
-
December 3, 2020 at 2:48 pm #46424Member
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!
December 3, 2020 at 2:54 pm #46425Member
Xecure
::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-grubI hope this helps.
antiX Live system enthusiast.
General Live Boot Parameters for antiX.December 3, 2020 at 3:01 pm #46427Forum Admin
anticapitalista
::Are you running live?
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - leaner and meaner.
December 3, 2020 at 3:11 pm #46430MemberKeeely
December 3, 2020 at 3:22 pm #46431MemberKeeely
::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.
December 3, 2020 at 4:21 pm #46439ModeratorBobC
::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
December 3, 2020 at 5:03 pm #46444MemberKeeely
::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.
December 3, 2020 at 6:47 pm #46451Moderator
Brian Masinick
::Additional optional reading:
https://www.systutorials.com/how-to-regenerate-grub2-config-file-on-linux/
https://www.howtogeek.com/196655/how-to-configure-the-grub2-boot-loaders-settings/--
Brian MasinickDecember 3, 2020 at 7:09 pm #46454Member
userzero
-
AuthorPosts
- You must be logged in to reply to this topic.