How to switch between installed kernels 14 September 2022, 21:16:02 Hello to all,I am total beginner to Artix and to Linux in general (although I already tried several other distributions like Lubuntu, Mint, Manjaro).On different distributions there is core-management GUI where you can browse, download and install cores. Switching between installed cores is possible on startup.My goal was to switch to linux-lts = I always started with installation using terminallinux-ltslinux-lts-headersSubsequently I tried 2 approaches, both to no avail:1.) Installing rEFIndAccording to https://wiki.archlinux.org/title/REFIndResult = I can see LTS kernel in rEFInd enviroment as second icon, but it won't start from there2.) Update initramfs and grub.cfgAccording to https://forum.artixlinux.org/index.php/topic,4167.0.htmlResult = boot-loopCould you please advise me reliable approach - step by step - how can I switch between installed kernels?Installation ISO: 5.19.4-artix1-1 openrcNotebook used for test-runs: HP ProBook 455 G1
Re: How to switch between installed kernels Reply #1 – 15 September 2022, 06:26:19 >2.) Update initramfs and grub.cfg>Result = boot-loopAdd these paramaters to your kernel command line when editing the grub entry: rd.debug rd.log=fileThese activate debug output for the initramfs, and we can get a glimpse of what the problem might beIf you do not know what kernel parametrs are and how to add them, you can follow the Arch Wiki.
Re: How to switch between installed kernels Reply #2 – 15 September 2022, 07:07:35 Hello and welcome,After installing or uninstalling a kernel, I run:sudo update-grub
Re: How to switch between installed kernels Reply #3 – 26 September 2022, 23:45:27 Quote from: Lancia – on 15 September 2022, 06:26:19>2.) Update initramfs and grub.cfg>Result = boot-loopAdd these paramaters to your kernel command line when editing the grub entry: rd.debug rd.log=fileThese activate debug output for the initramfs, and we can get a glimpse of what the problem might beIf you do not know what kernel parametrs are and how to add them, you can follow the Arch Wiki.I did not manage to add kernel parameters you recommend - sorry for my lameness.However I tried out grub-customizer ... result was the same boot-loop, but this time I managed to note output:[ 0.010548] __common_interrupt: 1.55 No irq handler for vector:: running early hook [udev]Warning: /lib/modules/5.15.70-2-lts/modules.devname not found - ignoringStarting version 251.4-1-artix:: running hook [udev]:: Trigerring uevents...:: running hook [keymap]:: Loading keymap...done.:: performing fcsk on '/dev/sda2'/dev/sda2: clean, 239515/7225344 files, 2714610/28874294 blocksmount: /new_root: uknown filesystem type 'ext4' . dmesg(1) may have more information after failed mount system call.You are now being dropped into an emergency shell.sh: can't access tty; job control turned off[rootfs ]#
Re: How to switch between installed kernels Reply #4 – 28 September 2022, 15:23:50 I found out how to launch the system, but it is FAR from optimal process.I will repeat all my steps leading to this point:01. installation of artix-lxqt-openrc-20220713-x86_64.iso02. connecting to internet03. pacman -Syu04. pacman -S linux-lts05. pacman -S linux-lts-headers05. pacman -R linux06. grub-mkconfig -o /boot/grub/grub.cfg07. mkinitcpio -p linux-lts08. RESTART = boot-loop09. Hitting F9 just after start = boot options10. selected "Boot From EFI File" (all others cause return to boot-loop)11. only 1 option: NO_LABEL,Acpi(PNP0A03,3)/Pci(11|0)/Sata(Port 0)/HD(Part1,SigF0ACB87F-0AB8-564E-B4DB-3C658D277710)12. browse to 1 working efi file (all others cause return to boot-loop): \EFI\refind\refind_x64.efi13. selecting \EFI\refind\refind_x64.efi launches rEFInd enviroment with 2 Artix icons14. ICON1: "Boot EFI\Artix\grubx64.efi from NO_LABEL" = boot-loop15. ICON2: "Boot boot\vmlinuz-linux-lts from root" = launches Artix!Output of "efibootmgr":BootCurrent: 0000Timeout: 0 secondsBootOrder: 0001,0000Boot0000* Artix HD(1,GPT,f0acb87f-0ab8-564e-b4db-3c658d277710,0x1000,0x96000)/File(\EFI\Artix\grubx64.efi)Boot0001* refind HD(1,GPT,f0acb87f-0ab8-564e-b4db-3c658d277710,0x1000,0x96000)/File(EFI\refind\refind_x64.efi)
Re: How to switch between installed kernels Reply #5 – 23 October 2022, 17:14:01 Source of the problem is notebook used for test-runs: HP ProBook 455 G1.Regardless of selected Boot Mode (Legacy, UEFI Hybrid or UEFI Native) it won't allow you booting into GRUB menu.The only option for this particular HP notebook is using rEFInd Boot Manager.Detailed steps in order to achieve selecting among installed kernels on HP ProBook 455 G1:01. installation of artix.iso02. connecting to internet03. pacman -Syu04. pacman -S refind05. pacman -S linux-PREFERRED_KERNEL06. pacman -S linux-PREFERRED_KERNEL-headers07. reboot + pressing "delete" key08. F10 BIOS setup09. System Config -> Boot Options -> Boot Mode: UEFI Hybrid (With CSM)10. Boot Options -> UEFI Boot Order: 1.)Customized Boot; 2.)OS Boot Manager;...11. Boot Options -> Define Customized Boot Option -> Add -> Enter Custom Boot Path: \EFI\refind\refind_x64.efi12. save setting and exit13. reboot = rEFInd enviroment with kernel selectionProcedure described in "Topic: Having trouble switching to LTS kernel" https://forum.artixlinux.org/index.php/topic,4167.0.html was working without any problems on my 2nd PC (MB GA-H310N-2.0 rev1 + i5 9400F + RTX 2070). Last Edit: 23 October 2022, 18:39:22 by Marximus
Re: How to switch between installed kernels Reply #6 – 23 October 2022, 17:18:14 If you're having further problems with booting, try just telling your UEFI firmware to launch the kernel directly:https://wiki.archlinux.org/title/EFISTUBhttps://wiki.archlinux.org/title/Unified_kernel_imageIf your UEFI firmware is buggy and EFISTUB doesn't work, try unified kernel image, it worked for me. 1 Likes