grub-mkconfig - one Linux kernel, multiple boot entries with different kernel options
1
vote
1
answer
1917
views
GRUB version: 2.04-20
One Linux kernel only; I need to have two GRUB entries to boot the kernel with different set of kernel options. For the time being, after each
grub-mkconfig
or update-grub2
which produces one entry with GRUB_CMDLINE_LINUX_DEFAULT
options, I manually add another one with the different set.
Is there any way to get two entries of the same kernel with different kernel options (one respecting GRUB_CMDLINE_LINUX_DEFAULT
plus another one) after running grub-mkconfig
or update-grub2
? I suppose some custom script in /etc/grub.d
?
Added bonus, proper way to disable os-prober
? For the time being, I've renamed os-prober
script so that it's not found.
Asked by Krackout
(2887 rep)
Jan 27, 2022, 08:43 PM
Last activity: Jun 29, 2025, 03:05 PM
Last activity: Jun 29, 2025, 03:05 PM