Grub et osprober

Bonjour,
plutôt que de m’exposer à des problèmes comme par le passé (perte des pilotes d’imprimante notamment) j’ai préféré installé trixie sur un autre groupe de volume (un autre SSD).
J’ai donc actuellement la structure suivante:

—————————————
Bookworm:

nvme0n1p1 vfat FAT32 monté sur /boot/efi
nvmeon1p2 LVM2_member qui porte le groupe de volumes VG0 pour Bookworm

Trixie:

nvme1n1p1 LVM2 member qui porte le groupe de volume VG1 pourTrixie
nvme1nip2 vfat FAT32 qui ne sert à rien, prévu pour une copie éventuelle de efi
—————————————

Depuis longtemps que je n’utilise plus que Trixie, le menu grub me permettant toujours de choisir.
Je viens de mettre à jour Bookworm, et le menu grub ne me présente plus les choix de connexions Trixie.

Il y eu un message concernant os-prober, qui est installé et dont un fichier 30_os-prober existe dans /etc/grub.d/

Grub_os-prober.log (1,2 Ko)

ma question est donc: comment remettre le menu Grub en ordre (avec Trixie et Bookworm, et Trixie en haut de liste et ouvert par défaut), avant d’envisager la mise à niveau de Bookworm vers Trixie.

Bonjour @josephtux,

Tant que la commande grub-update n’est pas lancée, les éventuelles modifications des fichiers de configuration de Grub ne sont pas prises en compte.

Ce lien pourrait vous être bien utile: https://www.malekal.com/grub-modifier-ordre-demarrage/

Merci Vbreton,
voici ce qu’affiche update-grub:

#update-grub
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-6.1.0-50-amd64
Found initrd image: /boot/initrd.img-6.1.0-50-amd64
Found linux image: /boot/vmlinuz-6.1.0-44-amd64
Found initrd image: /boot/initrd.img-6.1.0-44-amd64
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done

que faire avec cette indication?:

GRUB_DISABLE_OS_PROBER

Ce lien propose de modifier /boot/grub/grub.cfg ce qui semble être déconseillé/interdit

Par ailleurs, un grep os-prober /etc/grub.d/* affiche:

30_os-prober:if ! command -v os-prober > /dev/null || ! command -v linux-boot-prober > /dev/null ; then
30_os-prober:  # missing os-prober and/or linux-boot-prober
30_os-prober-  exit 0
--
30_os-prober-if [ "x${GRUB_DISABLE_OS_PROBER}" = "xtrue" ]; then
30_os-prober:  grub_warn "$(gettext_printf "os-prober will not be executed to detect other bootable partitions.\nSystems on them will not be added to the GRUB boot configuration.\nCheck GRUB_DISABLE_OS_PROBER documentation entry.")"
30_os-prober-  exit 0
--
30_os-prober-
30_os-prober:grub_warn "$(gettext_printf "os-prober will be executed to detect other bootable partitions.\nIts output will be used to detect bootable binaries on them and create new boot entries.")"
30_os-prober-
30_os-prober:OSPROBED="`os-prober | tr ' ' '^' | paste -s -d ' '`"
30_os-prober-if [ -z "${OSPROBED}" ] ; then
30_os-prober:  # empty os-prober output, nothing doing
30_os-prober-  exit 0
--
30_os-prober-
30_os-prober:  # os-prober returns text string followed by optional counter
30_os-prober-  CLASS="--class $(echo "${LABEL}" | LC_ALL=C sed 's,[[:digit:]]*$,,' | cut -d' ' -f1 | tr 'A-Z' 'a-z' | LC_ALL=C sed 's,[^[:alnum:]_],_,g')"

Bonjour,
Si l’idée est de faire apparaitre les deux systèmes lors du menu de GrUB, il faut aller dans /etc/default/grub et changer la ligne en DISABLE_OS_PROBER=false (désactiver OS-PROBER= faux). puis update-grub pour que cela puisse être pris en compte.

1 J'aime

Merci bub,
bêtement, je ne trouvais pas /etc/default/grub, mais seulement grub.d/

Ne reste plus qu’à remettre Trixie en tête de liste et comme choix par défaut