You are not logged in.
I have several linux distros on subsequent partitions. I use grub2 + os-prober from another one. I'd like to have archlinux kernel loaded with some parameters. Do I have to manually modify a grub.cfg on the other distro after generating it or is there any way for preparing a desired set for os-prober to be read automatically?
Offline
If you add the parameters to GRUB_CMDLINE_LINUX in /etc/default/grub they should be applied to all Linux menuentries. Remember to update grub.cfg afterwards.
https://www.gnu.org/software/grub/manua … figuration
Manually editing grub.cfg is not recommended because most distributions will automatically update the file every time the kernel version changes, which will over-write any manual modifications.
Jin, Jîyan, Azadî
Offline
I'm afraid you don't understand the problem. If I run grub-mkconfig under ArchLinux then configuring how to load the Arch kernel and set parameters for it is obviously trivial.
My problem is different:
I have ArchLinux. And I have many other systems installed on the same driver. There is no GRUB installed in ArchLinux. I've installed GRUB in, let's say, VoidLinux or AlpineLinux or GentooLinux. Then I run grub-mkconfig from that OTHER distro. Os-prober helps me to automatically detect and create necessary entries for all systems installed, including ArchLinux. There is no GRUB in Arch, I'm using some external one! The question is how to inform that external one about parameters I'd like to be used when creating entries for Arch.
Offline
My point was to use /etc/default/grub in the non-Arch distribution you use to control GRUB. Sorry if that was unclear.
If you need specific parameters for Arch you could generate grub.cfg in Arch and reference that as $configfile in /etc/grub.d/40_custom or /boot/grub/custom.cfg in the non-Arch distribution and add Arch to the OS_PROBER_SKIP_LIST in /etc/default/grub.
Last edited by Head_on_a_Stick (2024-12-15 13:30:05)
Jin, Jîyan, Azadî
Offline