Hello,
I’ve tried modifying grub under Leap 16 but it doesn’t work.
I’ve added the option “loglevel=3” in /etc/default/grub (GRUB_CMDLINE_LINUX_DEFAULT) and then sudo grub2-mkconfig -o /boot/grub2/grub.cfg but nothing changed.
I think it did work (I don’t remember) after the installation because I had add the option “splash=quiet” and it did work. Just to see, I’v also tried todat to remove this option but nothing changed.
I’ve also tried “update-bootloader” which gave nothing.
I’ve install Cockpit as Yast is deprecated but I don’t see an option to upgrade grub.
I’m in dual boot with Slowroll but I’d prefer change grub under Leap (I want to use it permanently).
Does anyone know how to modify grub under Leap 16 ?
Thanks in advance.
Can you show us your current boot parameters…
cat /proc/cmdline
cat /etc/defcaault/grub |grep LINUX
When you change kernel parameters, you can then run
sudo update-bootloader
to have the changes applied.
Returning to your opening post…since you’re in dual-boot with Slowroll, it’s likely that Slowroll’s GRUB is the one actually booting the system not Leap? Maybe that’s why your changes didn’t take effect?
sudo update-bootloader --reinit did work (change applied).
I did try to change boot order with efibootmgr but it didn’t change anything.
cat /proc/cmdline gives
BOOT_IMAGE=/boot/vmlinuz-6.12.0-160000.5-default root=UUID=9af91d06-2868-4396-9134-ba43a8f8f45a splash=silent quiet mitigations=auto security=selinux selinux=1 loglevel=3
and cat/etc/default/grub | grep LINUX gives:
GRUB_CMDLINE_LINUX_DEFAULT="splash=silent quiet mitigations=auto security=selinux selinux=1 loglevel=3"
GRUB_CMDLINE_LINUX=""
# GRUB_DISABLE_LINUX_UUID=true
GRUB_USE_LINUXEFI="true"
but sudo update-bootloader --reinit make the job.
Thank you very much.
Actually sudo update-bootloader should be sufficient if just changing boot parameters.
From
man update-bootloader
EXAMPLES
# update boot loader configuration
update-bootloader
# install/update boot loader and update boot loader configuration
update-bootloader --reinit
As long as GRUB_DISTRIBUTOR= in /etc/default/grub in both Leap and Slowroll match each other, you can expect each to usurp each other as grub and/or kernel updates occur, as the value generated by whatever GRUB_DISTRIBUTOR= directs determines the directory in /boot/efi/EFI/ from which boot initializes, which by default to date has always been opensuse for UEFI booting; or equivalent Grub2 device setup for legacy booting. A simple text edit to GRUB_DISTRIBUTOR= in one or the other or both, such as to “Leap” and/or “Slowroll”, can block that from happening.
Ok. Thank you very much.
Ok. I’ll try also this.
Thanks.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.