You are not logged in.

#1 2021-09-24 11:54:35

Breizh29
Member
Registered: 2021-08-04
Posts: 74

sorting linux kernels in grub [SOLVED]

Hi,

I have 3 linux kernels on my machine, linux, linux-lts and linux-zen. How could I have them in this order in grub instead of  linux-zen, linux-lts and linux?

Just a clarification,but maybe it's important,btrfs filesystem with snapshots (snapper).

╭─   ~                                                                                                                                       18:22:58 ─╮
╰─❯ lsblk -f                                                                                                                                             ─╯
NAME        FSTYPE FSVER LABEL                UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                                               
├─sda1      xfs                               a04bd9d9-ee67-4eff-b0a9-803f0d7a140f                
└─sda2      btrfs                             489fc453-5666-4c91-b205-2b5191c66ea9                
sdb                                                                                               
├─sdb1      xfs                               3c2d9592-ae92-450e-bc6c-5a39a9661d71                
├─sdb2      xfs                               a056a2f5-68aa-49ba-84b3-3e07780d8019                
├─sdb3      xfs                               0a7f8165-6047-49b6-9132-3aa701ecb6aa                
├─sdb4      xfs                               be90f246-f889-4f08-8038-520cf77c5bfa                
├─sdb5      xfs                               5a4a2b8e-14e6-437c-a672-75631dee07f9                
└─sdb6      xfs                               716f3f80-c6e2-49e4-b6e9-e72789a678ef                
sdc                                                                                               
└─sdc1      ntfs         Western Elements 1To E2069B3A069B0F23                                    
nvme0n1                                                                                           
├─nvme0n1p1 vfat   FAT32                      1BC1-7290                             510,7M     0% /boot/efi
├─nvme0n1p2 swap   1                          7043070c-01c4-4a03-b64b-20efe7247145                [SWAP]
└─nvme0n1p3 btrfs                             f5a014a9-9b2b-40d7-8f90-f7fc91bcbeb6  338,1G    15% /var
                                                                                                  /tmp
                                                                                                  /home
                                                                                                  /.snapshots
                                                                                                  /
╭─   ~                                                                                                                                       18:23:05 ─╮
╰─❯  
╭─   ~                                                                                                                                       18:36:31 ─╮
╰─❯ sudo pacman -S cups                                                                                                                                  ─╯
[sudo] Mot de passe de armand : 
avertissement : cups-1:2.3.3op2-3 est à jour -- réinstallation
résolution des dépendances…
recherche des conflits entre paquets…

Paquets (1) cups-1:2.3.3op2-3

Taille totale installée :      12,34 MiB
Taille de mise à jour nette :   0,00 MiB

:: Procéder à l’installation ? [O/n] o
(1/1) vérification des clés dans le trousseau                                                 [#######################################################] 100%
(1/1) vérification de l’intégrité des paquets                                                 [#######################################################] 100%
(1/1) chargement des fichiers des paquets                                                     [#######################################################] 100%
(1/1) analyse des conflits entre fichiers                                                     [#######################################################] 100%
(1/1) vérification de l’espace disque disponible                                              [#######################################################] 100%
:: Exécution des crochets (« hooks ») de pré-transaction…
(1/1) Performing snapper pre snapshots for the following configurations...
==> root: 289
:: Traitement des changements du paquet…
(1/1) réinstallation cups                                                                     [#######################################################] 100%
:: Exécution des crochets (« hooks ») de post-transaction…
(1/9) Creating system user accounts...
(2/9) Reloading system manager configuration...
(3/9) Arming ConditionNeedsUpdate...
(4/9) Refreshing PackageKit...
(5/9) Reloading system bus configuration...
(6/9) Updating icon theme caches...
(7/9) Updating the desktop file MIME type cache...
(8/9) Performing snapper post snapshots for the following configurations...
==> root: 290
(9/9) Generate GRUB config to let grub-btrfs detect new snapshots
Création du fichier de configuration GRUB…
Arrière-plan trouvé : /home/armand/Pictures/Archlinux-Wallpapers/arch-grub-1.png
Image Linux trouvée : /boot/vmlinuz-linux-zen
Image mémoire initiale trouvée : /boot/amd-ucode.img /boot/initramfs-linux-zen.img
Found fallback initrd image(s) in /boot:  amd-ucode.img initramfs-linux-zen-fallback.img
Image Linux trouvée : /boot/vmlinuz-linux-lts
Image mémoire initiale trouvée : /boot/amd-ucode.img /boot/initramfs-linux-lts.img
Found fallback initrd image(s) in /boot:  amd-ucode.img initramfs-linux-lts-fallback.img
Image Linux trouvée : /boot/vmlinuz-linux
Image mémoire initiale trouvée : /boot/amd-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot:  amd-ucode.img initramfs-linux-fallback.img
Attention : le sondeur de systèmes d'exploitation ne sera pas exécuté pour détecter d'autres partitions amorçables.
Les systèmes qu'elles contiennent ne seront pas ajoutés à la configuration de démarrage de GRUB.
Consultez la documentation relative à GRUB_DISABLE_OS_PROBER.
Ajout de l'entrée du menu d'amorçage pour les paramètres du firmware UEFI …
Detecting snapshots ...
Info: Separate boot partition not detected 
Info: snapper detected, using config 'root'
Found snapshot: 2021-09-24 18:37:04 | @snapshots/290/snapshot | post   | cups
Found snapshot: 2021-09-24 18:37:03 | @snapshots/289/snapshot | pre    | pacman -S cups
Found snapshot: 2021-09-24 18:00:21 | @snapshots/288/snapshot | single | timeline
Found snapshot: 2021-09-24 17:45:47 | @snapshots/287/snapshot | post   | cups
Found snapshot: 2021-09-24 17:45:46 | @snapshots/286/snapshot | pre    | pacman -S cups
Found snapshot: 2021-09-24 15:00:08 | @snapshots/285/snapshot | single | timeline
Found snapshot: 2021-09-24 07:00:07 | @snapshots/284/snapshot | single | timeline
Found snapshot: 2021-09-24 06:00:15 | @snapshots/281/snapshot | single | timeline
Found snapshot: 2021-09-24 05:00:15 | @snapshots/278/snapshot | single | timeline
Found snapshot: 2021-09-23 06:00:22 | @snapshots/265/snapshot | single | timeline
Found snapshot: 2021-09-22 07:00:20 | @snapshots/250/snapshot | single | timeline
Found snapshot: 2021-09-21 06:00:23 | @snapshots/216/snapshot | single | timeline
Found snapshot: 2021-09-20 06:00:45 | @snapshots/195/snapshot | single | timeline
Found snapshot: 2021-09-19 05:00:48 | @snapshots/179/snapshot | single | timeline
Found snapshot: 2021-09-18 06:00:06 | @snapshots/167/snapshot | single | timeline
Found 15 snapshot(s)
fait
╭─   ~                                                                                                                                 16s  18:37:06 ─╮
╰─❯     

Sorry, part of the text is not in English but I think we can still understand!
Thanks in advance.

Last edited by Breizh29 (2021-09-25 09:58:51)

Offline

#2 2021-09-25 09:59:57

Breizh29
Member
Registered: 2021-08-04
Posts: 74

Re: sorting linux kernels in grub [SOLVED]

No need to sort. I solved my little problem with GRUB_DEFAULT.

Offline

Board footer

Powered by FluxBB