Linux systemd-boot LTS

Linux systemd-boot LTS

Notes

Il faut installer deux paquets :

1
sudo pacman -S linux-lts linux-lts-headers

Les en-têtes (-headers) ne servent que si tu compiles des modules DKMS. Garde-les, ça ne coûte rien.

Ton chargeur de démarrage

Ta ligne de commande noyau (initrd=\e424f80...\7.2.14-arch1-1\initrd) montre que tu démarres avec systemd-boot et kernel-install, le schéma par défaut d’EndeavourOS en UEFI. Dans ce cas, l’installation de linux-lts crée normalement l’entrée de démarrage toute seule, par un hook pacman. Je n’ai pas pu vérifier ton poste, donc contrôle après l’installation :

1
sudo bootctl list

Tu dois voir deux entrées de type 1 : l’une pour 7.2.14-arch1-1 et l’autre pour le noyau LTS (un numéro de version 6.x-lts).

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
         type: Boot Loader Specification Type #1 (.conf)
        title: EndeavourOS (6.18.60-1-lts) (default) (not reported/new)
           id: e424f80160cb44fb8d2be570b56e918a-6.18.60-1-lts.conf
       source: /efi//loader/entries/e424f80160cb44fb8d2be570b56e918a-6.18.60-1-lts.conf (on the EFI System Partition)
     sort-key: endeavouros-6.18.60-1-lts
      version: 6.18.60-1-lts
   machine-id: e424f80160cb44fb8d2be570b56e918a
        linux: /efi//e424f80160cb44fb8d2be570b56e918a/6.18.60-1-lts/linux
       initrd: /efi//e424f80160cb44fb8d2be570b56e918a/6.18.60-1-lts/initrd
      options: nvme_load=YES nowatchdog rw root=UUID=5f9512d6-edc5-4407-baf4-3cfc0e3df88e systemd.machine_id=e424f80160>

         type: Boot Loader Specification Type #1 (.conf)
        title: EndeavourOS (6.18.60-1-lts-fallback) (not reported/new)
           id: e424f80160cb44fb8d2be570b56e918a-6.18.60-1-lts-fallback.conf
       source: /efi//loader/entries/e424f80160cb44fb8d2be570b56e918a-6.18.60-1-lts-fallback.conf (on the EFI System Par>
     sort-key: endeavouros-6.18.60-1-lts-fallback
      version: 6.18.60-1-lts-fallback
   machine-id: e424f80160cb44fb8d2be570b56e918a
        linux: /efi//e424f80160cb44fb8d2be570b56e918a/6.18.60-1-lts/linux
       initrd: /efi//e424f80160cb44fb8d2be570b56e918a/6.18.60-1-lts/initrd-fallback
      options: nvme_load=YES nowatchdog rw root=UUID=5f9512d6-edc5-4407-baf4-3cfc0e3df88e systemd.machine_id=e424f80160>

         type: Boot Loader Specification Type #1 (.conf)
        title: EndeavourOS (7.2.14-arch1-1) (selected)
           id: e424f80160cb44fb8d2be570b56e918a-7.2.14-arch1-1.conf
       source: /efi//loader/entries/e424f80160cb44fb8d2be570b56e918a-7.2.14-arch1-1.conf (on the EFI System Partition)
     sort-key: endeavouros-7.2.14-arch1-1
      version: 7.2.14-arch1-1
   machine-id: e424f80160cb44fb8d2be570b56e918a
        linux: /efi//e424f80160cb44fb8d2be570b56e918a/7.2.14-arch1-1/linux
       initrd: /efi//e424f80160cb44fb8d2be570b56e918a/7.2.14-arch1-1/initrd
      options: nvme_load=YES nowatchdog rw root=UUID=5f9512d6-edc5-4407-baf4-3cfc0e3df88e systemd.machine_id=e424f80160>

         type: Boot Loader Specification Type #1 (.conf)
        title: EndeavourOS (7.2.14-arch1-1-fallback)
           id: e424f80160cb44fb8d2be570b56e918a-7.2.14-arch1-1-fallback.conf
       source: /efi//loader/entries/e424f80160cb44fb8d2be570b56e918a-7.2.14-arch1-1-fallback.conf (on the EFI System Pa>
     sort-key: endeavouros-7.2.14-arch1-1-fallback
      version: 7.2.14-arch1-1-fallback
   machine-id: e424f80160cb44fb8d2be570b56e918a
        linux: /efi//e424f80160cb44fb8d2be570b56e918a/7.2.14-arch1-1/linux
       initrd: /efi//e424f80160cb44fb8d2be570b56e918a/7.2.14-arch1-1/initrd-fallback
      options: nvme_load=YES nowatchdog rw root=UUID=5f9512d6-edc5-4407-baf4-3cfc0e3df88e systemd.machine_id=e424f80160>

         type: Automatic
        title: Reboot Into Firmware Interface
           id: auto-reboot-to-firmware-setup
       source: /sys/firmware/efi/efivars/LoaderEntries-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f (on the EFI System Partitio>

Si l’entrée LTS manque, relance la génération :

1
sudo reinstall-kernels

(EndeavourOS fournit cette commande pour reconstruire les entrées de démarrage.)

Afficher le menu au démarrage

Par défaut, systemd-boot peut ne pas laisser de temps pour choisir. Deux solutions :

  • Appuie plusieurs fois sur la barre d’espace dès l’allumage : le menu s’affiche.
  • Rends-le visible quelques secondes en éditant /boot/loader/loader.conf (ou /efi/loader/loader.conf selon ton montage) :
1
timeout 5

Pour ne tester le LTS qu’une seule fois, sans changer l’entrée par défaut :

1
2
sudo bootctl set-oneshot <identifiant-de-l-entrée-lts>
sudo reboot

L’identifiant est celui affiché par bootctl list.

Vérifier que tu es bien sur le LTS

1
uname -r

doit afficher une version se terminant par -lts. Compte alors les échecs :

1
journalctl -b 0 _UID=957 --no-pager | grep -c "Modeset failed"

Au passage, installe aussi le pilote Vulkan qui manque : sudo pacman -S --needed vulkan-radeon. Fais-le avant le test du LTS, pour comparer à configuration égale.