logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 30-11-2021 08:33:47

moniroje
Membre
Lieu : Massy-les-flots
Distrib. : Debian-sid & Suse-Tumbleweed
(G)UI : KDE & xfce si KDE en panne
Inscription : 18-05-2008

suite dist-upgrade, GRUB que Debian !! [RESOLU]

Bonjour,
Sur mon PC se côtoient Debian-sid et Suse-tumbleweed, depuis longtemps.(20 ans déjà !!)
Ce matin que je faisais une mise à jour de mon système Debian, qui s'est déroulée sans souci,
je fais comme d'hab un update-grub2 puis reboot sur ma Debian et là, surprise, le Grub de Debian n'affiche que Debian!!
Donc j'ouvre ma Debian et en console:

alain@siderante:~$ su -
Mot de passe :
root@siderante:~# update-grub
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-5.15.0-2-amd64
Found initrd image: /boot/initrd.img-5.15.0-2-amd64
Found linux image: /boot/vmlinuz-5.14.0-4-amd64
Found initrd image: /boot/initrd.img-5.14.0-4-amd64
Found linux image: /boot/vmlinuz-5.14.0-3-amd64
Found initrd image: /boot/initrd.img-5.14.0-3-amd64
Found linux image: /boot/vmlinuz-5.14.0-2-amd64
Found initrd image: /boot/initrd.img-5.14.0-2-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
root@siderante:~#


bloc à supprimer si la commande n’affiche rien


et donc pourquoi ya plus la Suse ???
Que faire pour que ce os-prober détecte d'autres bootables ??
Pourquoi il dé... heu, il foire comme ça ???
Première fois que j'ai cette panne !

Dernière modification par moniroje (05-12-2021 21:41:08)


OpenSUSE-tumbleweed & Debian-sid
les deux habillées en KDE-Plasma avec xfce en cas de panne

Hors ligne

#2 30-11-2021 08:51:33

anonyme
Invité

Re : suite dist-upgrade, GRUB que Debian !! [RESOLU]

Bonjour
Warning: os-prober will not be executed to detect other bootable partitions.

os_prober a été désactivé dans sid
il faut que tu le réactive

apt-listchanges : nouveautés
----------------------------

grub2 (2.06-1) UNRELEASED ; urgency=medium

  * Les entrées du menu de démarrage pour d'autres systèmes d'exploitation ne sont plus générées par
    par défaut.  Pour réactiver cette fonction, définissez GRUB_DISABLE_OS_PROBER=false dans le fichier
    /etc/default/grub.
 



dans /etc/default/grub
en fin du script tu ajoute cette ligne => GRUB_DISABLE_OS_PROBER=false
et tu refais un update-grub

#3 30-11-2021 09:01:05

anonyme
Invité

Re : suite dist-upgrade, GRUB que Debian !! [RESOLU]

ça donne ceci , avant et après


update-grub
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-5.15.0-2-amd64
Found initrd image: /boot/initrd.img-5.15.0-2-amd64
Found linux image: /boot/vmlinuz-5.15.0-1-amd64
Found initrd image: /boot/initrd.img-5.15.0-1-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.
done
 



update-grub
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-5.15.0-2-amd64
Found initrd image: /boot/initrd.img-5.15.0-2-amd64
Found linux image: /boot/vmlinuz-5.15.0-1-amd64
Found initrd image: /boot/initrd.img-5.15.0-1-amd64
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.
Found Debian GNU/Linux 11 (bullseye) on /dev/sdb1
done
 



le contenu du fichier /etc/default/grub avec la modification


# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

#Activer os-prober
GRUB_DISABLE_OS_PROBER=false
 



ps: on en parle ici , en #6  #8  #11  et #21   smile   =>  https://debian-facile.org/viewtopic.php?id=31072

Dernière modification par anonyme (30-11-2021 09:06:18)

#4 30-11-2021 16:58:06

moniroje
Membre
Lieu : Massy-les-flots
Distrib. : Debian-sid & Suse-Tumbleweed
(G)UI : KDE & xfce si KDE en panne
Inscription : 18-05-2008

Re : suite dist-upgrade, GRUB que Debian !! [RESOLU]

Plusieurs fois que j'essaye comme tu as dit
et à chaque fois, toujours pas ma Suse!!
voilà mon /etc/defautlt/grub dont j'ai rajouté la ligne :

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT=19
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""
GRUB_DISABLE_OS_PROBER=false
# ligne ci-dessus rajoutée parce que le GRUB de Debian ne voyait plus la Suse
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
 


et le

root@siderante:~# update-grub
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-5.15.0-2-amd64
Found initrd image: /boot/initrd.img-5.15.0-2-amd64
Found linux image: /boot/vmlinuz-5.14.0-4-amd64
Found initrd image: /boot/initrd.img-5.14.0-4-amd64
Found linux image: /boot/vmlinuz-5.14.0-3-amd64
Found initrd image: /boot/initrd.img-5.14.0-3-amd64
Found linux image: /boot/vmlinuz-5.14.0-2-amd64
Found initrd image: /boot/initrd.img-5.14.0-2-amd64
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.
Found openSUSE Tumbleweed on /dev/sda4
Adding boot menu entry for UEFI Firmware Settings ...
done
root@siderante:~#


où on voit bien qu'il  a trouvé openSUSE
mais au reboot, le GRUB n'affiche que Debian !! zut !!
Bon, je vais regarder le lien que tu me dis


OpenSUSE-tumbleweed & Debian-sid
les deux habillées en KDE-Plasma avec xfce en cas de panne

Hors ligne

#5 30-11-2021 19:55:46

anonyme
Invité

Re : suite dist-upgrade, GRUB que Debian !! [RESOLU]

Bonsoir
j'ai testé sur une sid , branché un disque externe en usb avec une bullseye il me la bien ajouté au menu de grub
en plus ton retour a l'air correct


Found openSUSE Tumbleweed on /dev/sda4
Adding boot menu entry for UEFI Firmware Settings ...
done
 

#6 30-11-2021 21:33:17

raleur
Membre
Inscription : 03-10-2014

Re : suite dist-upgrade, GRUB que Debian !! [RESOLU]

moniroje a écrit :

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


et donc pourquoi ya plus la Suse ???
Que faire pour que ce os-prober détecte d'autres bootables ??


Je suis toujours impressionné par l'incapacité des gens à lire les messages pourtant explicites qu'ils recopient.

moniroje a écrit :

on voit bien qu'il  a trouvé openSUSE
mais au reboot, le GRUB n'affiche que Debian


Là, ça devient intéressant.
La date de modification de /boot/grub/grub.cfg correspond-elle à la dernière exécution de update-grub ?
Si oui, ce fichier contient-il une référence à openSUSE ? Sinon, qu'affiche la commande

linux-boot-prober /dev/sda4


Il vaut mieux montrer que raconter.

Hors ligne

#7 01-12-2021 09:29:06

Jean-Pierre Pinson
Adhérent(e)
Lieu : Orléans
Distrib. : Debian Sid 64bits Ordi.: Thinkpad T400
Noyau : de cerise
(G)UI : xfce
Inscription : 04-03-2017

Re : suite dist-upgrade, GRUB que Debian !! [RESOLU]

Peut-être qu'il faut faire la commande:

update-grub2

?

Chez SuShY ça a fonctionné avec Windows dans le menu grub

Dernière modification par Jean-Pierre Pinson (01-12-2021 09:32:03)


Debian sid
Bureau : xfce
Ordinateur : Thinkpad T400 libreboot

Hors ligne

#8 01-12-2021 11:33:56

moniroje
Membre
Lieu : Massy-les-flots
Distrib. : Debian-sid & Suse-Tumbleweed
(G)UI : KDE & xfce si KDE en panne
Inscription : 18-05-2008

Re : suite dist-upgrade, GRUB que Debian !! [RESOLU]

C'est sympa d'essayer de m'aider...
embêtant que ma Debian soit ainsi boiteuse après cette maj !!
J'avais une solution facile: remettre la dernière sauvegarde, avant cette maj et attendre un peu que Sid ait une nouvelle maj sans ce problème;
Mais à l'instar de ce que dit raleur en train de râler, comme d'hab, j'essaie de comprendre  et là, désolé, ce n'est toujours pas explicite: comment faire ??
Heureusement, il y a vous.

root@siderante:~# linux-boot-prober /dev/sda4
root@siderante:~#
 


eh bien, ça n'affiche rien...
Je suis bien sur Debian, démarré par le Grub de Debian qui ne voit pas l'autre bootable, soit la Open-SUSE.
@ Jean-Pierre Pinson: j'avais aussi fait cette commande.
Sinon j'ai le moyen de retrouver ma Suse: pour cela j'utilise rFind;
un truc que j'avais découvert lors d'une de mes dernières catas où j'avais perdu tous les GRUB s ! même en usant de System-Rescue-CD.
Là, aujourd'hui, démarrer en F12, je choise rFind et hop! j'ai un Grub psychédélique où je retrouve tous mes petits.
J'attends toutefois vos idées pour réparer le Grub de Debian...


OpenSUSE-tumbleweed & Debian-sid
les deux habillées en KDE-Plasma avec xfce en cas de panne

Hors ligne

#9 01-12-2021 13:42:50

raleur
Membre
Inscription : 03-10-2014

Re : suite dist-upgrade, GRUB que Debian !! [RESOLU]

J'ai mis /dev/sda4 parce que c'est là que os-prober a détecté la présence d'openSUSE, mais vérifie que c'est la bonne partition.
Si c'est le cas, alors la sortie vide de linux-boot-prober indique qu'il ne détecte aucun noyau dans cette installation. Cela peut être lié au nommage des noyaux ou au contenu du fichier grub.cfg d'openSUSE. Tu peux poster tout ça si tu veux que je regarde.

De toute façon, l'utilisation d'os-prober pour ajouter les autres systèmes n'est pas optimale. Je préfère ajouter manuellement une entrée de menu qui va charger le fichier grub.cfg de l'autre système avec la commande "configfile". J'ai décrit la démarche dans un autre sujet il n'y a pas très longtemps.

Dernière modification par raleur (01-12-2021 13:44:22)


Il vaut mieux montrer que raconter.

Hors ligne

#10 01-12-2021 17:04:56

moniroje
Membre
Lieu : Massy-les-flots
Distrib. : Debian-sid & Suse-Tumbleweed
(G)UI : KDE & xfce si KDE en panne
Inscription : 18-05-2008

Re : suite dist-upgrade, GRUB que Debian !! [RESOLU]

Comme j'aimerais bien que tu regardes, yikes, voilà:
pna4.png
on dirait que ça ne marche pas, j'essaye alors :
oj8n.png

alain@siderante:~$ su -
Mot de passe :
root@siderante:~# linux-boot-prober /dev/sda4
root@siderante:~#


et
oj8n.png
pna4.png

alain@Suson:~> su -
Mot de passe :
Suson:~ # linux-boot-prober /dev/sdb4
Suson:~ #


bloc à supprimer si la commande n’affiche rien


hou que c'est compliqué de mettre des images! !!
Bon, je continue:
je crois comprendre ce qui s'est passé: la dernière maj de mon système Debian a mis en priorité le Grub de Debian qui  ne voit rien d'autre que lui-même
alors que avant, c'était toujours le Grub de Suse qui démarrait avec le PC (et lui, il voyait lui-même et sa tite amie Debian-Sid)
Donc, fastoche, il me suffit de rebooter avec la touche F12 frénétique => dans le BIOS
et là, je remets en priorité 1 la Suse
et plus tard, je verrai à guérir le Grub de ma Sid


OpenSUSE-tumbleweed & Debian-sid
les deux habillées en KDE-Plasma avec xfce en cas de panne

Hors ligne

#11 01-12-2021 19:21:49

raleur
Membre
Inscription : 03-10-2014

Re : suite dist-upgrade, GRUB que Debian !! [RESOLU]

moniroje a écrit :

hou que c'est compliqué de mettre des images


En plus les images c'est plus lourd et moins pratique.que le texte. De toute façon ne j'ai pas demandé ce qu'affiche gparted ou yast, ça n'a aucun intérêt. J'ai simplement demandé la liste des fichiers de noyaux et le contenu du fichier grub.cfg d'openSUSE.

moniroje a écrit :

la dernière maj de mon système Debian a mis en priorité le Grub de Debian


C'est classique et normal. N'importe quelle autre distribution fait pareil en installant GRUB. Mais l'ordre de priorité peut se changer avec efibootmgr ou dans les réglages du firmware UEFI.


Il vaut mieux montrer que raconter.

Hors ligne

#12 02-12-2021 10:32:26

moniroje
Membre
Lieu : Massy-les-flots
Distrib. : Debian-sid & Suse-Tumbleweed
(G)UI : KDE & xfce si KDE en panne
Inscription : 18-05-2008

Re : suite dist-upgrade, GRUB que Debian !! [RESOLU]

OK, maintenant que je sais, je vais changer l'ordre des priorités et mettre OpenSUSE  en n°1
Merci pour ton aide...

OpenSUSE-tumbleweed & Debian-sid
les deux habillées en KDE-Plasma avec xfce en cas de panne

Hors ligne

#13 02-12-2021 19:21:50

raleur
Membre
Inscription : 03-10-2014

Re : suite dist-upgrade, GRUB que Debian !! [RESOLU]

J'aurais quand même bien aimé voir les noyaux et le grub.cfg d'openSUSE pour ma culture personnelle...

Il vaut mieux montrer que raconter.

Hors ligne

#14 04-12-2021 14:30:48

moniroje
Membre
Lieu : Massy-les-flots
Distrib. : Debian-sid & Suse-Tumbleweed
(G)UI : KDE & xfce si KDE en panne
Inscription : 18-05-2008

Re : suite dist-upgrade, GRUB que Debian !! [RESOLU]

OK, alors voilà :

alain@siderante:~$ uname -r
5.15.0-2-amd64
alain@siderante:~$
 


et pour Suse:

alain@Suson:~> uname -r
5.15.5-1-default
alain@Suson:~>


et son grub.cfg

Suson:~ # grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found theme: /boot/grub2/themes/openSUSE/theme.txt
Found linux image: /boot/vmlinuz-5.15.5-1-default
Found initrd image: /boot/initrd-5.15.5-1-default
Found linux image: /boot/vmlinuz-5.15.2-1-default
Found initrd image: /boot/initrd-5.15.2-1-default
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.
Found Debian GNU/Linux bookworm/sid on /dev/sdb2
Adding boot menu entry for UEFI Firmware Settings ...
done
Suson:~ #


Bon, voilà; je te laisse; là, j'ai un problème: j'ai installé Brave au lieu de Firefox et ...  quand je démarre, ya un site de femmes toutes nues!!! chais pas comment m'en débarrasser; ma légale, elle me tue si elle  ouvre Brave!!!


OpenSUSE-tumbleweed & Debian-sid
les deux habillées en KDE-Plasma avec xfce en cas de panne

Hors ligne

#15 04-12-2021 23:10:26

raleur
Membre
Inscription : 03-10-2014

Re : suite dist-upgrade, GRUB que Debian !! [RESOLU]

Et le contenu de grub.cfg ?

Il vaut mieux montrer que raconter.

Hors ligne

#16 05-12-2021 09:04:14

moniroje
Membre
Lieu : Massy-les-flots
Distrib. : Debian-sid & Suse-Tumbleweed
(G)UI : KDE & xfce si KDE en panne
Inscription : 18-05-2008

Re : suite dist-upgrade, GRUB que Debian !! [RESOLU]

ah bon ?? c'est vachement longs, ces trucs-là !! tu vas encore râler, vitupérer c'est joli ça.

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
set root='hd1,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  18e7327d-03ae-49c2-9c7f-12e98874e2f3
else
  search --no-floppy --fs-uuid --set=root 18e7327d-03ae-49c2-9c7f-12e98874e2f3
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=fr_FR
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=19
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=19
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_gpt
insmod ext2
set root='hd1,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  18e7327d-03ae-49c2-9c7f-12e98874e2f3
else
  search --no-floppy --fs-uuid --set=root 18e7327d-03ae-49c2-9c7f-12e98874e2f3
fi
insmod png
if background_image /usr/share/desktop-base/homeworld-theme/grub/grub-4x3.png; then
  set color_normal=white/black
  set color_highlight=black/white
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
  set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-18e7327d-03ae-49c2-9c7f-12e98874e2f3' {
  load_video
  insmod gzio
  if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  insmod part_gpt
  insmod ext2
  set root='hd1,gpt2'
  if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  18e7327d-03ae-49c2-9c7f-12e98874e2f3
  else
    search --no-floppy --fs-uuid --set=root 18e7327d-03ae-49c2-9c7f-12e98874e2f3
  fi
  echo  'Loading Linux 5.15.0-2-amd64 ...'
  linux /boot/vmlinuz-5.15.0-2-amd64 root=UUID=18e7327d-03ae-49c2-9c7f-12e98874e2f3 ro  quiet
  echo  'Loading initial ramdisk ...'
  initrd  /boot/initrd.img-5.15.0-2-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-18e7327d-03ae-49c2-9c7f-12e98874e2f3' {
  menuentry 'Debian GNU/Linux, with Linux 5.15.0-2-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.0-2-amd64-advanced-18e7327d-03ae-49c2-9c7f-12e98874e2f3' {
    load_video
    insmod gzio
    if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
    insmod part_gpt
    insmod ext2
    set root='hd1,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  18e7327d-03ae-49c2-9c7f-12e98874e2f3
    else
      search --no-floppy --fs-uuid --set=root 18e7327d-03ae-49c2-9c7f-12e98874e2f3
    fi
    echo  'Loading Linux 5.15.0-2-amd64 ...'
    linux /boot/vmlinuz-5.15.0-2-amd64 root=UUID=18e7327d-03ae-49c2-9c7f-12e98874e2f3 ro  quiet
    echo  'Loading initial ramdisk ...'
    initrd  /boot/initrd.img-5.15.0-2-amd64
  }
  menuentry 'Debian GNU/Linux, with Linux 5.15.0-2-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.0-2-amd64-recovery-18e7327d-03ae-49c2-9c7f-12e98874e2f3' {
    load_video
    insmod gzio
    if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
    insmod part_gpt
    insmod ext2
    set root='hd1,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  18e7327d-03ae-49c2-9c7f-12e98874e2f3
    else
      search --no-floppy --fs-uuid --set=root 18e7327d-03ae-49c2-9c7f-12e98874e2f3
    fi
    echo  'Loading Linux 5.15.0-2-amd64 ...'
    linux /boot/vmlinuz-5.15.0-2-amd64 root=UUID=18e7327d-03ae-49c2-9c7f-12e98874e2f3 ro single
    echo  'Loading initial ramdisk ...'
    initrd  /boot/initrd.img-5.15.0-2-amd64
  }
  menuentry 'Debian GNU/Linux, with Linux 5.14.0-4-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.14.0-4-amd64-advanced-18e7327d-03ae-49c2-9c7f-12e98874e2f3' {
    load_video
    insmod gzio
    if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
    insmod part_gpt
    insmod ext2
    set root='hd1,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  18e7327d-03ae-49c2-9c7f-12e98874e2f3
    else
      search --no-floppy --fs-uuid --set=root 18e7327d-03ae-49c2-9c7f-12e98874e2f3
    fi
    echo  'Loading Linux 5.14.0-4-amd64 ...'
    linux /boot/vmlinuz-5.14.0-4-amd64 root=UUID=18e7327d-03ae-49c2-9c7f-12e98874e2f3 ro  quiet
    echo  'Loading initial ramdisk ...'
    initrd  /boot/initrd.img-5.14.0-4-amd64
  }
  menuentry 'Debian GNU/Linux, with Linux 5.14.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.14.0-4-amd64-recovery-18e7327d-03ae-49c2-9c7f-12e98874e2f3' {
    load_video
    insmod gzio
    if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
    insmod part_gpt
    insmod ext2
    set root='hd1,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  18e7327d-03ae-49c2-9c7f-12e98874e2f3
    else
      search --no-floppy --fs-uuid --set=root 18e7327d-03ae-49c2-9c7f-12e98874e2f3
    fi
    echo  'Loading Linux 5.14.0-4-amd64 ...'
    linux /boot/vmlinuz-5.14.0-4-amd64 root=UUID=18e7327d-03ae-49c2-9c7f-12e98874e2f3 ro single
    echo  'Loading initial ramdisk ...'
    initrd  /boot/initrd.img-5.14.0-4-amd64
  }
  menuentry 'Debian GNU/Linux, with Linux 5.14.0-3-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.14.0-3-amd64-advanced-18e7327d-03ae-49c2-9c7f-12e98874e2f3' {
    load_video
    insmod gzio
    if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
    insmod part_gpt
    insmod ext2
    set root='hd1,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  18e7327d-03ae-49c2-9c7f-12e98874e2f3
    else
      search --no-floppy --fs-uuid --set=root 18e7327d-03ae-49c2-9c7f-12e98874e2f3
    fi
    echo  'Loading Linux 5.14.0-3-amd64 ...'
    linux /boot/vmlinuz-5.14.0-3-amd64 root=UUID=18e7327d-03ae-49c2-9c7f-12e98874e2f3 ro  quiet
    echo  'Loading initial ramdisk ...'
    initrd  /boot/initrd.img-5.14.0-3-amd64
  }
  menuentry 'Debian GNU/Linux, with Linux 5.14.0-3-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.14.0-3-amd64-recovery-18e7327d-03ae-49c2-9c7f-12e98874e2f3' {
    load_video
    insmod gzio
    if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
    insmod part_gpt
    insmod ext2
    set root='hd1,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  18e7327d-03ae-49c2-9c7f-12e98874e2f3
    else
      search --no-floppy --fs-uuid --set=root 18e7327d-03ae-49c2-9c7f-12e98874e2f3
    fi
    echo  'Loading Linux 5.14.0-3-amd64 ...'
    linux /boot/vmlinuz-5.14.0-3-amd64 root=UUID=18e7327d-03ae-49c2-9c7f-12e98874e2f3 ro single
    echo  'Loading initial ramdisk ...'
    initrd  /boot/initrd.img-5.14.0-3-amd64
  }
  menuentry 'Debian GNU/Linux, with Linux 5.14.0-2-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.14.0-2-amd64-advanced-18e7327d-03ae-49c2-9c7f-12e98874e2f3' {
    load_video
    insmod gzio
    if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
    insmod part_gpt
    insmod ext2
    set root='hd1,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  18e7327d-03ae-49c2-9c7f-12e98874e2f3
    else
      search --no-floppy --fs-uuid --set=root 18e7327d-03ae-49c2-9c7f-12e98874e2f3
    fi
    echo  'Loading Linux 5.14.0-2-amd64 ...'
    linux /boot/vmlinuz-5.14.0-2-amd64 root=UUID=18e7327d-03ae-49c2-9c7f-12e98874e2f3 ro  quiet
    echo  'Loading initial ramdisk ...'
    initrd  /boot/initrd.img-5.14.0-2-amd64
  }
  menuentry 'Debian GNU/Linux, with Linux 5.14.0-2-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.14.0-2-amd64-recovery-18e7327d-03ae-49c2-9c7f-12e98874e2f3' {
    load_video
    insmod gzio
    if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
    insmod part_gpt
    insmod ext2
    set root='hd1,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  18e7327d-03ae-49c2-9c7f-12e98874e2f3
    else
      search --no-floppy --fs-uuid --set=root 18e7327d-03ae-49c2-9c7f-12e98874e2f3
    fi
    echo  'Loading Linux 5.14.0-2-amd64 ...'
    linux /boot/vmlinuz-5.14.0-2-amd64 root=UUID=18e7327d-03ae-49c2-9c7f-12e98874e2f3 ro single
    echo  'Loading initial ramdisk ...'
    initrd  /boot/initrd.img-5.14.0-2-amd64
  }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###

### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
  fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###
 


et maintenant le grub.cfg de la Suse:

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -f ${config_directory}/grubenv ]; then
  load_env -f ${config_directory}/grubenv
elif [ -s $prefix/grubenv ]; then
  load_env
fi

if [ "${env_block}" ] ; then
  set env_block="(${root})${env_block}"
  export env_block
  load_env -f "${env_block}"
fi

if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   if [ "${env_block}" ] ; then
     save_env -f "${env_block}" next_entry
   fi
   set boot_once=true
else
   set default="${saved_entry}"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    if [ "${env_block}" ] ; then
      save_env -f "${env_block}" saved_entry
    else
      save_env saved_entry
    fi

  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
set root='hd1,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4  c5b2dc40-b324-4036-b477-3a7b0f68d479
else
  search --no-floppy --fs-uuid --set=root c5b2dc40-b324-4036-b477-3a7b0f68d479
fi
    font="/usr/share/grub2/unicode.pf2"
fi

if loadfont $font ; then
  if [ "${grub_platform}" = "efi" ]; then
    echo "Please press 't' to show the boot menu on this console"
  fi

  set gfxmode=auto
  load_video
  insmod gfxterm
fi
terminal_input console
terminal_output gfxterm
insmod part_gpt
insmod ext2
set root='hd1,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4  c5b2dc40-b324-4036-b477-3a7b0f68d479
else
  search --no-floppy --fs-uuid --set=root c5b2dc40-b324-4036-b477-3a7b0f68d479
fi
insmod gfxmenu
loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans-Bold14.pf2
loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans10.pf2
loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans12.pf2
loadfont ($root)/boot/grub2/themes/openSUSE/ascii.pf2
insmod png
set theme=($root)/boot/grub2/themes/openSUSE/theme.txt
export theme
if [ x${boot_once} = xtrue ]; then
  set timeout=0
elif [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=18
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=18
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/00_tuned ###
set tuned_params=""
set tuned_initrd=""
### END /etc/grub.d/00_tuned ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'openSUSE Tumbleweed'  --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-c5b2dc40-b324-4036-b477-3a7b0f68d479' {
  load_video
  set gfxpayload=keep
  insmod gzio
  insmod part_gpt
  insmod ext2
  set root='hd1,gpt4'
  if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4  c5b2dc40-b324-4036-b477-3a7b0f68d479
  else
    search --no-floppy --fs-uuid --set=root c5b2dc40-b324-4036-b477-3a7b0f68d479
  fi
  echo  'Loading Linux 5.15.5-1-default ...'
  linuxefi /boot/vmlinuz-5.15.5-1-default root=UUID=c5b2dc40-b324-4036-b477-3a7b0f68d479  splash=silent resume=/dev/disk/by-uuid/0cceeb36-ffd1-4e04-bddf-dfbb2316b97d mitigations=auto quiet
  echo  'Loading initial ramdisk ...'
  initrdefi /boot/initrd-5.15.5-1-default
}
submenu 'Advanced options for openSUSE Tumbleweed' --hotkey=1 $menuentry_id_option 'gnulinux-advanced-c5b2dc40-b324-4036-b477-3a7b0f68d479' {
  menuentry 'openSUSE Tumbleweed, with Linux 5.15.5-1-default' --hotkey=2 --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.5-1-default-advanced-c5b2dc40-b324-4036-b477-3a7b0f68d479' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_gpt
    insmod ext2
    set root='hd1,gpt4'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4  c5b2dc40-b324-4036-b477-3a7b0f68d479
    else
      search --no-floppy --fs-uuid --set=root c5b2dc40-b324-4036-b477-3a7b0f68d479
    fi
    echo  'Loading Linux 5.15.5-1-default ...'
    linuxefi /boot/vmlinuz-5.15.5-1-default root=UUID=c5b2dc40-b324-4036-b477-3a7b0f68d479  splash=silent resume=/dev/disk/by-uuid/0cceeb36-ffd1-4e04-bddf-dfbb2316b97d mitigations=auto quiet
    echo  'Loading initial ramdisk ...'
    initrdefi /boot/initrd-5.15.5-1-default
  }
  menuentry 'openSUSE Tumbleweed, with Linux 5.15.5-1-default (recovery mode)' --hotkey=3 --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.5-1-default-recovery-c5b2dc40-b324-4036-b477-3a7b0f68d479' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_gpt
    insmod ext2
    set root='hd1,gpt4'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4  c5b2dc40-b324-4036-b477-3a7b0f68d479
    else
      search --no-floppy --fs-uuid --set=root c5b2dc40-b324-4036-b477-3a7b0f68d479
    fi
    echo  'Loading Linux 5.15.5-1-default ...'
    linuxefi /boot/vmlinuz-5.15.5-1-default root=UUID=c5b2dc40-b324-4036-b477-3a7b0f68d479  
    echo  'Loading initial ramdisk ...'
    initrdefi /boot/initrd-5.15.5-1-default
  }
  menuentry 'openSUSE Tumbleweed, with Linux 5.15.2-1-default'  --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.2-1-default-advanced-c5b2dc40-b324-4036-b477-3a7b0f68d479' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_gpt
    insmod ext2
    set root='hd1,gpt4'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4  c5b2dc40-b324-4036-b477-3a7b0f68d479
    else
      search --no-floppy --fs-uuid --set=root c5b2dc40-b324-4036-b477-3a7b0f68d479
    fi
    echo  'Loading Linux 5.15.2-1-default ...'
    linuxefi /boot/vmlinuz-5.15.2-1-default root=UUID=c5b2dc40-b324-4036-b477-3a7b0f68d479  splash=silent resume=/dev/disk/by-uuid/0cceeb36-ffd1-4e04-bddf-dfbb2316b97d mitigations=auto quiet
    echo  'Loading initial ramdisk ...'
    initrdefi /boot/initrd-5.15.2-1-default
  }
  menuentry 'openSUSE Tumbleweed, with Linux 5.15.2-1-default (recovery mode)' --hotkey=1 --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.2-1-default-recovery-c5b2dc40-b324-4036-b477-3a7b0f68d479' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_gpt
    insmod ext2
    set root='hd1,gpt4'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4  c5b2dc40-b324-4036-b477-3a7b0f68d479
    else
      search --no-floppy --fs-uuid --set=root c5b2dc40-b324-4036-b477-3a7b0f68d479
    fi
    echo  'Loading Linux 5.15.2-1-default ...'
    linuxefi /boot/vmlinuz-5.15.2-1-default root=UUID=c5b2dc40-b324-4036-b477-3a7b0f68d479  
    echo  'Loading initial ramdisk ...'
    initrdefi /boot/initrd-5.15.2-1-default
  }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Debian GNU/Linux bookworm/sid (on /dev/sdb2)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-18e7327d-03ae-49c2-9c7f-12e98874e2f3' {
  insmod part_gpt
  insmod ext2
  set root='hd1,gpt2'
  if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  18e7327d-03ae-49c2-9c7f-12e98874e2f3
  else
    search --no-floppy --fs-uuid --set=root 18e7327d-03ae-49c2-9c7f-12e98874e2f3
  fi
  linuxefi /boot/vmlinuz-5.15.0-2-amd64 root=UUID=18e7327d-03ae-49c2-9c7f-12e98874e2f3 ro quiet
  initrdefi /boot/initrd.img-5.15.0-2-amd64
}
submenu 'Advanced options for Debian GNU/Linux bookworm/sid (on /dev/sdb2)' $menuentry_id_option 'osprober-gnulinux-advanced-18e7327d-03ae-49c2-9c7f-12e98874e2f3' {
  menuentry 'Debian GNU/Linux (on /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.15.0-2-amd64--18e7327d-03ae-49c2-9c7f-12e98874e2f3' {
    insmod part_gpt
    insmod ext2
    set root='hd1,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  18e7327d-03ae-49c2-9c7f-12e98874e2f3
    else
      search --no-floppy --fs-uuid --set=root 18e7327d-03ae-49c2-9c7f-12e98874e2f3
    fi
    linuxefi /boot/vmlinuz-5.15.0-2-amd64 root=UUID=18e7327d-03ae-49c2-9c7f-12e98874e2f3 ro quiet
    initrdefi /boot/initrd.img-5.15.0-2-amd64
  }
  menuentry 'Debian GNU/Linux, with Linux 5.15.0-2-amd64 (on /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.15.0-2-amd64--18e7327d-03ae-49c2-9c7f-12e98874e2f3' {
    insmod part_gpt
    insmod ext2
    set root='hd1,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  18e7327d-03ae-49c2-9c7f-12e98874e2f3
    else
      search --no-floppy --fs-uuid --set=root 18e7327d-03ae-49c2-9c7f-12e98874e2f3
    fi
    linuxefi /boot/vmlinuz-5.15.0-2-amd64 root=UUID=18e7327d-03ae-49c2-9c7f-12e98874e2f3 ro quiet
    initrdefi /boot/initrd.img-5.15.0-2-amd64
  }
  menuentry 'Debian GNU/Linux, with Linux 5.15.0-2-amd64 (recovery mode) (on /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.15.0-2-amd64-root=UUID=18e7327d-03ae-49c2-9c7f-12e98874e2f3 ro single-18e7327d-03ae-49c2-9c7f-12e98874e2f3' {
    insmod part_gpt
    insmod ext2
    set root='hd1,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  18e7327d-03ae-49c2-9c7f-12e98874e2f3
    else
      search --no-floppy --fs-uuid --set=root 18e7327d-03ae-49c2-9c7f-12e98874e2f3
    fi
    linuxefi /boot/vmlinuz-5.15.0-2-amd64 root=UUID=18e7327d-03ae-49c2-9c7f-12e98874e2f3 ro single
    initrdefi /boot/initrd.img-5.15.0-2-amd64
  }
  menuentry 'Debian GNU/Linux, with Linux 5.14.0-4-amd64 (on /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.14.0-4-amd64--18e7327d-03ae-49c2-9c7f-12e98874e2f3' {
    insmod part_gpt
    insmod ext2
    set root='hd1,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  18e7327d-03ae-49c2-9c7f-12e98874e2f3
    else
      search --no-floppy --fs-uuid --set=root 18e7327d-03ae-49c2-9c7f-12e98874e2f3
    fi
    linuxefi /boot/vmlinuz-5.14.0-4-amd64 root=UUID=18e7327d-03ae-49c2-9c7f-12e98874e2f3 ro quiet
    initrdefi /boot/initrd.img-5.14.0-4-amd64
  }
  menuentry 'Debian GNU/Linux, with Linux 5.14.0-4-amd64 (recovery mode) (on /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.14.0-4-amd64-root=UUID=18e7327d-03ae-49c2-9c7f-12e98874e2f3 ro single-18e7327d-03ae-49c2-9c7f-12e98874e2f3' {
    insmod part_gpt
    insmod ext2
    set root='hd1,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  18e7327d-03ae-49c2-9c7f-12e98874e2f3
    else
      search --no-floppy --fs-uuid --set=root 18e7327d-03ae-49c2-9c7f-12e98874e2f3
    fi
    linuxefi /boot/vmlinuz-5.14.0-4-amd64 root=UUID=18e7327d-03ae-49c2-9c7f-12e98874e2f3 ro single
    initrdefi /boot/initrd.img-5.14.0-4-amd64
  }
  menuentry 'Debian GNU/Linux, with Linux 5.14.0-3-amd64 (on /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.14.0-3-amd64--18e7327d-03ae-49c2-9c7f-12e98874e2f3' {
    insmod part_gpt
    insmod ext2
    set root='hd1,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  18e7327d-03ae-49c2-9c7f-12e98874e2f3
    else
      search --no-floppy --fs-uuid --set=root 18e7327d-03ae-49c2-9c7f-12e98874e2f3
    fi
    linuxefi /boot/vmlinuz-5.14.0-3-amd64 root=UUID=18e7327d-03ae-49c2-9c7f-12e98874e2f3 ro quiet
    initrdefi /boot/initrd.img-5.14.0-3-amd64
  }
  menuentry 'Debian GNU/Linux, with Linux 5.14.0-3-amd64 (recovery mode) (on /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.14.0-3-amd64-root=UUID=18e7327d-03ae-49c2-9c7f-12e98874e2f3 ro single-18e7327d-03ae-49c2-9c7f-12e98874e2f3' {
    insmod part_gpt
    insmod ext2
    set root='hd1,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  18e7327d-03ae-49c2-9c7f-12e98874e2f3
    else
      search --no-floppy --fs-uuid --set=root 18e7327d-03ae-49c2-9c7f-12e98874e2f3
    fi
    linuxefi /boot/vmlinuz-5.14.0-3-amd64 root=UUID=18e7327d-03ae-49c2-9c7f-12e98874e2f3 ro single
    initrdefi /boot/initrd.img-5.14.0-3-amd64
  }
  menuentry 'Debian GNU/Linux, with Linux 5.14.0-2-amd64 (on /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.14.0-2-amd64--18e7327d-03ae-49c2-9c7f-12e98874e2f3' {
    insmod part_gpt
    insmod ext2
    set root='hd1,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  18e7327d-03ae-49c2-9c7f-12e98874e2f3
    else
      search --no-floppy --fs-uuid --set=root 18e7327d-03ae-49c2-9c7f-12e98874e2f3
    fi
    linuxefi /boot/vmlinuz-5.14.0-2-amd64 root=UUID=18e7327d-03ae-49c2-9c7f-12e98874e2f3 ro quiet
    initrdefi /boot/initrd.img-5.14.0-2-amd64
  }
  menuentry 'Debian GNU/Linux, with Linux 5.14.0-2-amd64 (recovery mode) (on /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.14.0-2-amd64-root=UUID=18e7327d-03ae-49c2-9c7f-12e98874e2f3 ro single-18e7327d-03ae-49c2-9c7f-12e98874e2f3' {
    insmod part_gpt
    insmod ext2
    set root='hd1,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  18e7327d-03ae-49c2-9c7f-12e98874e2f3
    else
      search --no-floppy --fs-uuid --set=root 18e7327d-03ae-49c2-9c7f-12e98874e2f3
    fi
    linuxefi /boot/vmlinuz-5.14.0-2-amd64 root=UUID=18e7327d-03ae-49c2-9c7f-12e98874e2f3 ro single
    initrdefi /boot/initrd.img-5.14.0-2-amd64
  }
}

### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
  fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/35_fwupd ###
### END /etc/grub.d/35_fwupd ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###

### BEGIN /etc/grub.d/90_persistent ###
### END /etc/grub.d/90_persistent ###

### BEGIN /etc/grub.d/95_textmode ###
if [ "${grub_platform}" = "efi" ]; then
  # On EFI systems we can only have graphics *or* serial, so allow the user
  # to switch between the two
  hiddenentry 'Text mode' --hotkey 't' {
    set textmode=true
    terminal_output console
  }
fi
### END /etc/grub.d/95_textmode ###
 


OpenSUSE-tumbleweed & Debian-sid
les deux habillées en KDE-Plasma avec xfce en cas de panne

Hors ligne

#17 05-12-2021 12:15:31

raleur
Membre
Inscription : 03-10-2014

Re : suite dist-upgrade, GRUB que Debian !! [RESOLU]

Je ne demandais que le grub.cfg d'openSUSE, c'est lui que je souçonnais de poser problème.

Je pense que le problème vient de ce que le fichier grub.cfg d'openSUSE utilise les commandes "linuxefi" et "initrdefi" pour charger le noyau et l'initramfs au lieu des commandes "linux" et "initrd", et que linux-boot-prober (programme d'os-prober appelé pour détecter les noyaux d'un système) de Debian ne les reconnaît pas. La description de la différence entre ces deux variantes dans /usr/share/doc/grub-common/changelog.Debian.gz est assez obscure pour moi, mais apparemment en pratique le GRUB de Debian peut indifféremment utiliser l'une ou l'autre pour l'amorçage EFI.

En fait le correctif est assez simple : il suffit d'éditer /usr/lib/linux-boot-probes/mounted/40grub2 et de modifier deux lignes :

linux)
initrd)


en

linux|linuxefi)
initrd|initrdefi)


ensuite

linux-boot-prober /dev/sda4 # à adapter selon le nommage du disque


devrait bien détecter les noyaux d'openSUSE et update-grub devrait les ajouter au grub.cfg de Debian.

Dernière modification par raleur (05-12-2021 14:50:33)


Il vaut mieux montrer que raconter.

Hors ligne

#18 05-12-2021 13:43:48

moniroje
Membre
Lieu : Massy-les-flots
Distrib. : Debian-sid & Suse-Tumbleweed
(G)UI : KDE & xfce si KDE en panne
Inscription : 18-05-2008

Re : suite dist-upgrade, GRUB que Debian !! [RESOLU]

Ça serait trop bien que ma Siderante ait un grub aussi bien que celui de ma Suson!!
Je suppose que ce que je dois éditer c'est celui de ma Debian .
L'ennui, c'est que j'ai pas tout à fait ce que tu dis.
45ms.png

OpenSUSE-tumbleweed & Debian-sid
les deux habillées en KDE-Plasma avec xfce en cas de panne

Hors ligne

#19 05-12-2021 13:54:26

raleur
Membre
Inscription : 03-10-2014

Re : suite dist-upgrade, GRUB que Debian !! [RESOLU]

Il faut descendre, c'est plus bas. Et les deux lignes ne sont pas consécutives.
Et stp évite de balancer une capture d'écran graphique pour montrer le contenu d'un fichier texte, c'est absurde.

Dernière modification par raleur (05-12-2021 13:57:16)


Il vaut mieux montrer que raconter.

Hors ligne

#20 05-12-2021 14:32:04

Debian Alain
Membre
Lieu : Bretagne
Distrib. : sid (unstable) / bullseye (stable)
Noyau : Linux sid 6.4.0-3-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

Re : suite dist-upgrade, GRUB que Debian !! [RESOLU]

bonjour à tous   smile  smile  smile

je viens de regarder le post #10

normal tout cet imbroglio entre /home et racines et aussi /boot uefi  ?

j'ai l'impression que c'est un peu la pagaille sur les disques de moniroje ?

non ?

amicalement ,

alain.

coyotus.png

Hors ligne

#21 05-12-2021 14:57:45

raleur
Membre
Inscription : 03-10-2014

Re : suite dist-upgrade, GRUB que Debian !! [RESOLU]

Je ne vois aucun imbroglio. Il y a deux systèmes Debian et openSUSE qui ont chacun leur /, /home et partition EFI. D'autre part il y a deux disques sda et sdb qui changent de nom entre les deux captures d'écran, ce qui n'est pas anormal compte tenu du nommage non persistant de ces disques.

Il vaut mieux montrer que raconter.

Hors ligne

#22 05-12-2021 15:51:42

moniroje
Membre
Lieu : Massy-les-flots
Distrib. : Debian-sid & Suse-Tumbleweed
(G)UI : KDE & xfce si KDE en panne
Inscription : 18-05-2008

Re : suite dist-upgrade, GRUB que Debian !! [RESOLU]

pfff, la pagaille!!  là, c'est rien, c'est calme, tout marche.   c'est quand j'ai envie de connaître un autre nouveau GNU/Linux que des fois, ça tourne au rodéo...
imbroglio, imbroglio ...woohoo.gif

OpenSUSE-tumbleweed & Debian-sid
les deux habillées en KDE-Plasma avec xfce en cas de panne

Hors ligne

#23 05-12-2021 15:57:40

raleur
Membre
Inscription : 03-10-2014

Re : suite dist-upgrade, GRUB que Debian !! [RESOLU]

Les distributions Linux entre elles ne valent guère mieux que Windows : elles se reformatent le swap, écrasent le GRUB ou changent la priorité dans l'ordre de boot...
Si tu fais la modification d'os-prober de Debian que j'ai suggérée, tu pourras me dire si elle permet la détection des noyaux d'openSUSE ?

Il vaut mieux montrer que raconter.

Hors ligne

#24 05-12-2021 16:56:34

moniroje
Membre
Lieu : Massy-les-flots
Distrib. : Debian-sid & Suse-Tumbleweed
(G)UI : KDE & xfce si KDE en panne
Inscription : 18-05-2008

Re : suite dist-upgrade, GRUB que Debian !! [RESOLU]

ah!! voilà ! j'ai trouvé et j'ai modifié comme t'as dit:

                                        log "Skipping entry '$title':"
                                        log "appears to be an automatic referen>
                                        ignore_item=1
                                fi
                        ;;
                        linux|linuxefi)
                                # Hack alert: sed off any (hdn,n) but
                                # assume the kernel is on the same
                                # partition.
                                kernel="
$(echo "$2" | sed 's/(.*)//')"
                                shift 2
                                parameters="
$@"
                                # Systems with a separate /boot will not have
                                # the path to the kernel in grub.cfg.
                                if [ "
$partition" != "$bootpart" ]; then
                                        kernel="
/boot$kernel"
                                fi
                        ;;
                        initrd|initrdefi)


bloc à supprimer si la commande n’affiche rien


naouw, houla ! tu dis:

linux-boot-prober /dev/sda4 # à adapter selon le nommage du disque


mais comme je viens de modifier le le 40grub2 de Debian, je suppose que c'est le sda de Debian que je dois prober; alors je fais:

alain@siderante:~$ df
df: /run/user/1000/doc: Opération non permise
Sys. de fichiers blocs de 1K  Utilisé Disponible Uti% Monté sur
udev                 3974376        0    3974376   0% /dev
tmpfs                 800480     1636     798844   1% /run
/dev/sda2           20702784 10909536    8718552  56% /
tmpfs                4002396      272    4002124   1% /dev/shm
tmpfs                   5120        8       5112   1% /run/lock
/dev/sda4           19964128  8044772   10882232  43% /Suson
/dev/sda5             857432    15568     841864   2% /boot/efi
/dev/sdb1            7289552  1976372    4923124  29% /home
/dev/sdb2           50523352 28261668   19672272  59% /mesdocs
/dev/sdb3            8535684  2088344    5990680  26% /homeSuse
tmpfs                 800476      148     800328   1% /run/user/1000
alain@siderante:~$
 


bloc à supprimer si la commande n’affiche rien


il s'agit donc de sda2:

root@siderante:~# linux-boot-prober /dev/sda2
root@siderante:~#


Voilà, voilà ...
je vais essayer le reboot; ah oui, c'est vrai, auparavant un update-grub2
Go !!


OpenSUSE-tumbleweed & Debian-sid
les deux habillées en KDE-Plasma avec xfce en cas de panne

Hors ligne

#25 05-12-2021 17:36:51

raleur
Membre
Inscription : 03-10-2014

Re : suite dist-upgrade, GRUB que Debian !! [RESOLU]

moniroje a écrit :

je suppose que c'est le sda de Debian que je dois prober


C'est la partition racine d'openSUSE qu'il faut mettre, quel que soit son nom actuel (/dev/sda4 d'après le dernier df). os-prober te l'affichera.

Dernière modification par raleur (05-12-2021 17:38:36)


Il vaut mieux montrer que raconter.

Hors ligne

Pied de page des forums