Hello, why when installing the lts kernel grub makes it the default kernel in the configuration? how can I make the default kernel the normal linux package?
Grub or gummiboot?
If you use grub, then you can add the following line to /etc/default/grub
:
GRUB_TOP_LEVEL=/boot/vmlinuz-linux
and run
grub-mkconfig -o /boot/grub/grub.cfg
and reboot to see the result.
By default, grub-mkconfig sorts the included kernels using
sort -V
and uses the first kernel in that list as the top-level entry. This means that, for example, since/boot/vmlinuz-linux-lts
is sorted before/boot/vmlinuz-linux
, if you have both linux-lts and linux installed, the LTS kernel will be the top-level menu entry, which may not be desirable. This can be overridden by specifyingGRUB_TOP_LEVEL="path_to_kernel"
in/etc/default/grub
. For example, to make the regular kernel be the top-level menu entry, you can useGRUB_TOP_LEVEL="/boot/vmlinuz-linux"
.
allright thank you. I also have an error when running grub-mkconfig. I dont understand very well what it is about. It seems it cant mount a partition?
sudo grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found background: /usr/share/endeavouros/splash.png
Found linux image: /boot/vmlinuz-linux-zen
Found initrd image: /boot/initramfs-linux-zen.img
Found fallback initrd image(s) in /boot: initramfs-linux-zen-fallback.img
Found linux image: /boot/vmlinuz-linux-lts
Found initrd image: /boot/initramfs-linux-lts.img
Found fallback initrd image(s) in /boot: initramfs-linux-lts-fallback.img
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot: initramfs-linux-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
/usr/lib/os-probes/50mounted-tests: line 72: 5712 Segmentation fault (core dumped) grub-mount "$partition" "$tmpmnt" 2> /dev/null
Found linux image: /boot/vmlinuz-linux-zen
Found initrd image: /boot/initramfs-linux-zen.img
Found fallback initrd image(s) in /boot: initramfs-linux-zen-fallback.img
Found linux image: /boot/vmlinuz-linux-lts
Found initrd image: /boot/initramfs-linux-lts.img
Found fallback initrd image(s) in /boot: initramfs-linux-lts-fallback.img
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot: initramfs-linux-fallback.img
Detecting snapshots ...
The error looks like this one:
You can disable os-prober if you don’t need to add other operating system to your Grub.
Or do as the person in that thread and wait until the problem is solved from developers.