• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[gelöst] Leap 15.1 started neuerdings nur mit Grub

MiPl

Hacker
Hallo,

vor ein paar Tagen habe ich bei meinem Rechner einen Neustart ausgelöst. Beim Start habe ich übersehen, dass ich noch einen USB-Stick eingesteckt hatte. Da auf dem Stick kein ausführbares System ist landete ich bei Grub - Kein Problem, so dachte ich. Erneuter Neustart mit entferntem Stick löste das Problem zu meiner Überraschung nicht.

Wenn ich beim Grub-Prompt "exit" eingebe komme ich zu einem Auswahlmenü auf "Dos-Basis". An erster Position steht ein Ubuntu-System. An zweiter Pos. Leap 15.1. Ubuntu hatte ich auf diesem Computer noch nie installiert. Ist für mich egal, wie es zu diesem "Fremdsystem" kommt, ich möchte eigentlich nur wieder automatisch Leap 15.1 starten lassen.

Hat jemand eine Idee wie das zu bewerkstelligen ist?

Danke für die Hilfe im Voraus.

Gruß Michael
 

susejunky

Moderator
Teammitglied
Hallo MiPl,
MiPl schrieb:
... Wenn ich beim Grub-Prompt "exit" eingebe komme ich zu einem Auswahlmenü auf "Dos-Basis". An erster Position steht ein Ubuntu-System. An zweiter Pos. Leap 15.1. Ubuntu hatte ich auf diesem Computer noch nie installiert. Ist für mich egal, wie es zu diesem "Fremdsystem" kommt, ich möchte eigentlich nur wieder automatisch Leap 15.1 starten lassen.
Startet Dein System im UEFI- oder im MBR-Modus (aka CSM)?

Befinden sich außer openSUSE Leap 15.1 noch weitere Betriebssysteme auf diesem Rechner (z.B.: dual boot mit MS Windows 10)?

Falls Dein System im UEFI-Modus startet, zeige bitte das Ergebnis von
Code:
# efibootmgr -v

Ansonsten wäre auch noch das Ergebnis von
Code:
# parted -l
und
Code:
# lsblk -f
sowie der Inhalt der Datei /etc/boot/grub2/grub.cfg hilfreich.

Alle Befehl als Administrator in einer Konsole ausführen. Ergebnis immer inkl. der Befehlseingabe und der nachfolgenden Eingabeaufforderung zeigen.

Viele Grüße

susejunky
 
OP
M

MiPl

Hacker
Hallo und danke für die Reaktion.

Der Startmodus des Systems ist mir nicht bekannt. Anhand der nachfolgenden Ausgaben würde ich sagen "UEFI". Es handelt sich um eine Standard-Iso-Installation vom OpenSuse-Server.
Es befindet sich nur Leap 15.1 auf dem Rechner.

Code:
sudo efibootmgr -v
[sudo] Passwort für root: 
BootCurrent: 0003
Timeout: 0 seconds
BootOrder: 0005,0002,0003,2003,0004,0001,0000,2001,2002
Boot0000* Realtek PXE B01 D00   BBS(128,Realtek PXE B01 D00,0x0).......................................................................
Boot0001* HL-DT-ST DVDRAM GUE0N                 BBS(CDROM,HL-DT-ST DVDRAM GUE0N           ,0x500)................-...........A.......................................o..
Boot0002* ubuntu        HD(1,GPT,d8c3e46c-0554-41fa-98c2-32646d5d0b8a,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)RC
Boot0003* openSUSE      HD(1,GPT,d8c3e46c-0554-41fa-98c2-32646d5d0b8a,0x800,0x100000)/File(\EFI\opensuse\grubx64.efi)RC
Boot0004* HFS256G3BTND-N210A    BBS(HD,HFS256G3BTND-N210A,0x0)....................................n...............................o..
Boot0005* opensuse-secureboot   HD(1,GPT,d8c3e46c-0554-41fa-98c2-32646d5d0b8a,0x800,0x100000)/File(\EFI\opensuse\shim.efi)
Boot0006* EFI Network 0 for IPv4 (54-E1-AD-D6-63-6B)    PciRoot(0x0)/Pci(0x1c,0x0)/Pci(0x0,0x0)/MAC(54e1add6636b,0)/IPv4(0.0.0.00.0.0.0,0,0)RC
Boot0007* EFI Network 0 for IPv6 (54-E1-AD-D6-63-6B)    PciRoot(0x0)/Pci(0x1c,0x0)/Pci(0x0,0x0)/MAC(54e1add6636b,0)/IPv6([::]:<->[::]:,0,0)RC
Boot2001* EFI USB Device        RC
Boot2002* EFI DVD/CDROM RC
Boot2003* EFI Network   RC

Code:
sudo parted -l
Modell: ATA HFS256G3BTND-N21 (scsi)
Festplatte  /dev/sda:  256GB
Sektorgröße (logisch/physisch): 512B/512B
Partitionstabelle: gpt
Disk-Flags: 

Nummer  Anfang  Ende    Größe   Dateisystem     Name                  Flags
 1      1049kB  538MB   537MB   fat32           EFI System Partition  boot, esp
 2      538MB   2698MB  2160MB  linux-swap(v1)  primary               msftdata
 3      2698MB  45,7GB  43,0GB  btrfs           primary               msftdata
 4      45,7GB  256GB   210GB   xfs             primary               msftdata

Code:
sudo lsblk -f
NAME   FSTYPE LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINT
sda                                                                     
├─sda1 vfat         0855-94CA                             502,9M     2% /boot/efi
├─sda2 swap         09260a8f-9b6a-4bb5-8fb4-a525b97dd4cb                [SWAP]
├─sda3 btrfs        09695789-c878-4641-8cd9-3079fdd60da6   10,3G    73% /
└─sda4 xfs          53b1a5d1-e617-4d1c-9f04-16370602fca9   86,1G    56% /home

Die Grub-Konfigdatei liegt bei mir nicht unter /etc/boot/grub2/, sondern unter /boot/grub2/:

Code:
sudo more grub.cfg
#
# 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 ###
set btrfs_relative_path="y"
export btrfs_relative_path
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 btrfs
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  09695789-c878-4641-8cd9-3079fdd60da6
else
  search --no-floppy --fs-uuid --set=root 09695789-c878-4641-8cd9-3079fdd60da6
fi
    font="/usr/share/grub2/unicode.pf2"
fi

if loadfont $font ; then
echo "Please press t to show the boot menu on this console"
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=de_DE
  insmod gettext
fi
terminal_output gfxterm
insmod part_gpt
insmod btrfs
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  09695789-c878-4641-8cd9-3079fdd60da6
else
  search --no-floppy --fs-uuid --set=root 09695789-c878-4641-8cd9-3079fdd60da6
fi
insmod gfxmenu
loadfont ($root)/boot/grub2/themes/openSUSE/ascii.pf2
loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans10.pf2
loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans12.pf2
loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans-Bold14.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=8
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=8
fi
if [ -n "$extra_cmdline" ]; then
  menuentry "Help on bootable snapshot #$snapshot_num" {
    echo "Select the default entry of the snapshot boot menu."
    echo "Examine the snapshot, and if it's OK,"
    echo "   run 'snapper rollback' and reboot."
    echo "See 'System Rollback by Booting from Snapshots'"
    echo "   in the manual for more information."
    echo "  ** Hit Any Key to return to boot menu **  "
    read
  }
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 Leap 15.1'  --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-09695789-c878-4641-8cd9-3079fdd60da6' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_gpt
        insmod btrfs
        set root='hd0,gpt3'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  09695789-c878-4641-8cd9-3079fdd60da6
        else
          search --no-floppy --fs-uuid --set=root 09695789-c878-4641-8cd9-3079fdd60da6
        fi
        echo    'Linux 4.12.14-lp151.28.52-default wird geladen …'
        linuxefi /boot/vmlinuz-4.12.14-lp151.28.52-default root=UUID=09695789-c878-4641-8cd9-3079fdd60da6  ${extra_cmdline} resume=/dev/sda2 splash=silent quiet showopts resume=/dev/sda2 splash=silent quiet showopts
        echo    'Initiale Ramdisk wird geladen …'
        initrdefi /boot/initrd-4.12.14-lp151.28.52-default
}
submenu 'Erweiterte Optionen für openSUSE Leap 15.1' --hotkey=1 $menuentry_id_option 'gnulinux-advanced-09695789-c878-4641-8cd9-3079fdd60da6' {
        menuentry 'openSUSE Leap 15.1, mit Linux 4.12.14-lp151.28.52-default' --hotkey=2 --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.12.14-lp151.28.52-default-advanced-09695789
-c878-4641-8cd9-3079fdd60da6' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod btrfs
                set root='hd0,gpt3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  09695789-c878-4641-8cd9-3079fdd60da6
                else
                  search --no-floppy --fs-uuid --set=root 09695789-c878-4641-8cd9-3079fdd60da6
                fi
                echo    'Linux 4.12.14-lp151.28.52-default wird geladen …'
                linuxefi /boot/vmlinuz-4.12.14-lp151.28.52-default root=UUID=09695789-c878-4641-8cd9-3079fdd60da6  ${extra_cmdline} resume=/dev/sda2 splash=silent quiet showopts resume=/dev/sda2 splash=silent quiet showopts
                echo    'Initiale Ramdisk wird geladen …'
                initrdefi /boot/initrd-4.12.14-lp151.28.52-default
        }
        menuentry 'openSUSE Leap 15.1, mit Linux 4.12.14-lp151.28.52-default (Wiederherstellungsmodus)' --hotkey=3 --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.12.14-lp151.28.52
-default-recovery-09695789-c878-4641-8cd9-3079fdd60da6' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod btrfs
                set root='hd0,gpt3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  09695789-c878-4641-8cd9-3079fdd60da6
                else
                  search --no-floppy --fs-uuid --set=root 09695789-c878-4641-8cd9-3079fdd60da6
                fi
                echo    'Linux 4.12.14-lp151.28.52-default wird geladen …'
                linuxefi /boot/vmlinuz-4.12.14-lp151.28.52-default root=UUID=09695789-c878-4641-8cd9-3079fdd60da6  ${extra_cmdline} 
                echo    'Initiale Ramdisk wird geladen …'
                initrdefi /boot/initrd-4.12.14-lp151.28.52-default
        }
        menuentry 'openSUSE Leap 15.1, mit Linux 4.12.14-lp151.28.48-default'  --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.12.14-lp151.28.48-default-advanced-09695789-c878-4641
-8cd9-3079fdd60da6' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod btrfs
                set root='hd0,gpt3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  09695789-c878-4641-8cd9-3079fdd60da6
                else
                  search --no-floppy --fs-uuid --set=root 09695789-c878-4641-8cd9-3079fdd60da6
                fi
                echo    'Linux 4.12.14-lp151.28.48-default wird geladen …'
                linuxefi /boot/vmlinuz-4.12.14-lp151.28.48-default root=UUID=09695789-c878-4641-8cd9-3079fdd60da6  ${extra_cmdline} resume=/dev/sda2 splash=silent quiet showopts resume=/dev/sda2 splash=silent quiet showopts
                echo    'Initiale Ramdisk wird geladen …'
                initrdefi /boot/initrd-4.12.14-lp151.28.48-default
        }
        menuentry 'openSUSE Leap 15.1, mit Linux 4.12.14-lp151.28.48-default (Wiederherstellungsmodus)' --hotkey=1 --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.12.14-lp151.28.48
-default-recovery-09695789-c878-4641-8cd9-3079fdd60da6' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod btrfs
                set root='hd0,gpt3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  09695789-c878-4641-8cd9-3079fdd60da6
                else
                  search --no-floppy --fs-uuid --set=root 09695789-c878-4641-8cd9-3079fdd60da6
                fi
                echo    'Linux 4.12.14-lp151.28.48-default wird geladen …'
                linuxefi /boot/vmlinuz-4.12.14-lp151.28.48-default root=UUID=09695789-c878-4641-8cd9-3079fdd60da6  ${extra_cmdline} 
                echo    'Initiale Ramdisk wird geladen …'
                initrdefi /boot/initrd-4.12.14-lp151.28.48-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 ###
### END /etc/grub.d/30_os-prober ###

### 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/80_suse_btrfs_snapshot ###
btrfs-mount-subvol ($root) /.snapshots @/.snapshots
if [ -f "/.snapshots/grub-snapshot.cfg" ]; then
  source "/.snapshots/grub-snapshot.cfg"
fi
### END /etc/grub.d/80_suse_btrfs_snapshot ###

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

### BEGIN /etc/grub.d/95_textmode ###

    # 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
    }
### END /etc/grub.d/95_textmode ###

Grüße
Michael
 

susejunky

Moderator
Teammitglied
Hallo MiPl,
MiPl schrieb:
... Der Startmodus des Systems ist mir nicht bekannt. Anhand der nachfolgenden Ausgaben würde ich sagen "UEFI".
Korrekt.


MiPl schrieb:
... Es handelt sich um eine Standard-Iso-Installation vom OpenSuse-Server.
Es befindet sich nur Leap 15.1 auf dem Rechner.

Code:
sudo efibootmgr -v
[sudo] Passwort für root: 
BootCurrent: 0003
Timeout: 0 seconds
BootOrder: 0005,0002,0003,2003,0004,0001,0000,2001,2002
Boot0000* Realtek PXE B01 D00   BBS(128,Realtek PXE B01 D00,0x0).......................................................................
Boot0001* HL-DT-ST DVDRAM GUE0N                 BBS(CDROM,HL-DT-ST DVDRAM GUE0N           ,0x500)................-...........A.......................................o..
Boot0002* ubuntu        HD(1,GPT,d8c3e46c-0554-41fa-98c2-32646d5d0b8a,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)RC
Boot0003* openSUSE      HD(1,GPT,d8c3e46c-0554-41fa-98c2-32646d5d0b8a,0x800,0x100000)/File(\EFI\opensuse\grubx64.efi)RC
Boot0004* HFS256G3BTND-N210A    BBS(HD,HFS256G3BTND-N210A,0x0)....................................n...............................o..
Boot0005* opensuse-secureboot   HD(1,GPT,d8c3e46c-0554-41fa-98c2-32646d5d0b8a,0x800,0x100000)/File(\EFI\opensuse\shim.efi)
Boot0006* EFI Network 0 for IPv4 (54-E1-AD-D6-63-6B)    PciRoot(0x0)/Pci(0x1c,0x0)/Pci(0x0,0x0)/MAC(54e1add6636b,0)/IPv4(0.0.0.00.0.0.0,0,0)RC
Boot0007* EFI Network 0 for IPv6 (54-E1-AD-D6-63-6B)    PciRoot(0x0)/Pci(0x1c,0x0)/Pci(0x0,0x0)/MAC(54e1add6636b,0)/IPv6([::]:<->[::]:,0,0)RC
Boot2001* EFI USB Device        RC
Boot2002* EFI DVD/CDROM RC
Boot2003* EFI Network   RC
Der Eintrag Boot0002* ubuntu HD(1,GPT,... lässt vermuten, dass auch einmal Ubuntu auf diesem Rechner installiert war ...


MiPl schrieb:
...
Code:
sudo parted -l
Modell: ATA HFS256G3BTND-N21 (scsi)
Festplatte  /dev/sda:  256GB
Sektorgröße (logisch/physisch): 512B/512B
Partitionstabelle: gpt
Disk-Flags: 

Nummer  Anfang  Ende    Größe   Dateisystem     Name                  Flags
 1      1049kB  538MB   537MB   fat32           EFI System Partition  boot, esp
 2      538MB   2698MB  2160MB  linux-swap(v1)  primary               msftdata
 3      2698MB  45,7GB  43,0GB  btrfs           primary               msftdata
 4      45,7GB  256GB   210GB   xfs             primary               msftdata
Ich verwende weder btrfs noch xfs, daher kann ich Dir nur sehr eingeschränkt weiterhelfen.


MiPl schrieb:
...
Code:
sudo lsblk -f
NAME   FSTYPE LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINT
sda                                                                     
├─sda1 vfat         0855-94CA                             502,9M     2% /boot/efi
├─sda2 swap         09260a8f-9b6a-4bb5-8fb4-a525b97dd4cb                [SWAP]
├─sda3 btrfs        09695789-c878-4641-8cd9-3079fdd60da6   10,3G    73% /
└─sda4 xfs          53b1a5d1-e617-4d1c-9f04-16370602fca9   86,1G    56% /home

Die Grub-Konfigdatei liegt bei mir nicht unter /etc/boot/grub2/, sondern unter /boot/grub2/:

Code:
sudo more grub.cfg
#
# 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 ###
set btrfs_relative_path="y"
export btrfs_relative_path
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 btrfs
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  09695789-c878-4641-8cd9-3079fdd60da6
else
  search --no-floppy --fs-uuid --set=root 09695789-c878-4641-8cd9-3079fdd60da6
fi
    font="/usr/share/grub2/unicode.pf2"
fi

if loadfont $font ; then
echo "Please press t to show the boot menu on this console"
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=de_DE
  insmod gettext
fi
terminal_output gfxterm
insmod part_gpt
insmod btrfs
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  09695789-c878-4641-8cd9-3079fdd60da6
else
  search --no-floppy --fs-uuid --set=root 09695789-c878-4641-8cd9-3079fdd60da6
fi
insmod gfxmenu
loadfont ($root)/boot/grub2/themes/openSUSE/ascii.pf2
loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans10.pf2
loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans12.pf2
loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans-Bold14.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=8
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=8
fi
if [ -n "$extra_cmdline" ]; then
  menuentry "Help on bootable snapshot #$snapshot_num" {
    echo "Select the default entry of the snapshot boot menu."
    echo "Examine the snapshot, and if it's OK,"
    echo "   run 'snapper rollback' and reboot."
    echo "See 'System Rollback by Booting from Snapshots'"
    echo "   in the manual for more information."
    echo "  ** Hit Any Key to return to boot menu **  "
    read
  }
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 Leap 15.1'  --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-09695789-c878-4641-8cd9-3079fdd60da6' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_gpt
        insmod btrfs
        set root='hd0,gpt3'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  09695789-c878-4641-8cd9-3079fdd60da6
        else
          search --no-floppy --fs-uuid --set=root 09695789-c878-4641-8cd9-3079fdd60da6
        fi
        echo    'Linux 4.12.14-lp151.28.52-default wird geladen …'
        linuxefi /boot/vmlinuz-4.12.14-lp151.28.52-default root=UUID=09695789-c878-4641-8cd9-3079fdd60da6  ${extra_cmdline} resume=/dev/sda2 splash=silent quiet showopts resume=/dev/sda2 splash=silent quiet showopts
        echo    'Initiale Ramdisk wird geladen …'
        initrdefi /boot/initrd-4.12.14-lp151.28.52-default
}
submenu 'Erweiterte Optionen für openSUSE Leap 15.1' --hotkey=1 $menuentry_id_option 'gnulinux-advanced-09695789-c878-4641-8cd9-3079fdd60da6' {
        menuentry 'openSUSE Leap 15.1, mit Linux 4.12.14-lp151.28.52-default' --hotkey=2 --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.12.14-lp151.28.52-default-advanced-09695789
-c878-4641-8cd9-3079fdd60da6' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod btrfs
                set root='hd0,gpt3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  09695789-c878-4641-8cd9-3079fdd60da6
                else
                  search --no-floppy --fs-uuid --set=root 09695789-c878-4641-8cd9-3079fdd60da6
                fi
                echo    'Linux 4.12.14-lp151.28.52-default wird geladen …'
                linuxefi /boot/vmlinuz-4.12.14-lp151.28.52-default root=UUID=09695789-c878-4641-8cd9-3079fdd60da6  ${extra_cmdline} resume=/dev/sda2 splash=silent quiet showopts resume=/dev/sda2 splash=silent quiet showopts
                echo    'Initiale Ramdisk wird geladen …'
                initrdefi /boot/initrd-4.12.14-lp151.28.52-default
        }
        menuentry 'openSUSE Leap 15.1, mit Linux 4.12.14-lp151.28.52-default (Wiederherstellungsmodus)' --hotkey=3 --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.12.14-lp151.28.52
-default-recovery-09695789-c878-4641-8cd9-3079fdd60da6' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod btrfs
                set root='hd0,gpt3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  09695789-c878-4641-8cd9-3079fdd60da6
                else
                  search --no-floppy --fs-uuid --set=root 09695789-c878-4641-8cd9-3079fdd60da6
                fi
                echo    'Linux 4.12.14-lp151.28.52-default wird geladen …'
                linuxefi /boot/vmlinuz-4.12.14-lp151.28.52-default root=UUID=09695789-c878-4641-8cd9-3079fdd60da6  ${extra_cmdline} 
                echo    'Initiale Ramdisk wird geladen …'
                initrdefi /boot/initrd-4.12.14-lp151.28.52-default
        }
        menuentry 'openSUSE Leap 15.1, mit Linux 4.12.14-lp151.28.48-default'  --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.12.14-lp151.28.48-default-advanced-09695789-c878-4641
-8cd9-3079fdd60da6' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod btrfs
                set root='hd0,gpt3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  09695789-c878-4641-8cd9-3079fdd60da6
                else
                  search --no-floppy --fs-uuid --set=root 09695789-c878-4641-8cd9-3079fdd60da6
                fi
                echo    'Linux 4.12.14-lp151.28.48-default wird geladen …'
                linuxefi /boot/vmlinuz-4.12.14-lp151.28.48-default root=UUID=09695789-c878-4641-8cd9-3079fdd60da6  ${extra_cmdline} resume=/dev/sda2 splash=silent quiet showopts resume=/dev/sda2 splash=silent quiet showopts
                echo    'Initiale Ramdisk wird geladen …'
                initrdefi /boot/initrd-4.12.14-lp151.28.48-default
        }
        menuentry 'openSUSE Leap 15.1, mit Linux 4.12.14-lp151.28.48-default (Wiederherstellungsmodus)' --hotkey=1 --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.12.14-lp151.28.48
-default-recovery-09695789-c878-4641-8cd9-3079fdd60da6' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod btrfs
                set root='hd0,gpt3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  09695789-c878-4641-8cd9-3079fdd60da6
                else
                  search --no-floppy --fs-uuid --set=root 09695789-c878-4641-8cd9-3079fdd60da6
                fi
                echo    'Linux 4.12.14-lp151.28.48-default wird geladen …'
                linuxefi /boot/vmlinuz-4.12.14-lp151.28.48-default root=UUID=09695789-c878-4641-8cd9-3079fdd60da6  ${extra_cmdline} 
                echo    'Initiale Ramdisk wird geladen …'
                initrdefi /boot/initrd-4.12.14-lp151.28.48-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 ###
### END /etc/grub.d/30_os-prober ###

### 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/80_suse_btrfs_snapshot ###
btrfs-mount-subvol ($root) /.snapshots @/.snapshots
if [ -f "/.snapshots/grub-snapshot.cfg" ]; then
  source "/.snapshots/grub-snapshot.cfg"
fi
### END /etc/grub.d/80_suse_btrfs_snapshot ###

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

### BEGIN /etc/grub.d/95_textmode ###

    # 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
    }
### END /etc/grub.d/95_textmode ###
Ooops, das war ein Freudsche Fehlleistung meinerseits: Natürlich war /boot/grub2/grub.cfg gemeint.

Auch wenn ich das nur sehr eingeschränkt bewerten kann: Für mich sieht das alles zunächst OK aus.

Bitte zeige noch den Inhalt von /boot/efi/EFI/opensuse/grub.cfg.

Viele Grüße

susejunky
 

josef-wien

Ultimate Guru
Standardmäßig startet das UEFI die Eintragung Boot0005 (also das Programm \EFI\opensuse\shim.efi). SHIM wiederum ruft GRUB2 auf, und in diesem Fall findet GRUB2 offenbar keine brauchbare Konfiguration.

Wenn Du dagegen im UEFI-Boot-Menü manuell die Eintragung Boot0003 (also das Programm \EFI\opensuse\grubx64.efi) auswählst, wird GRUB2 direkt gestartet, und in diesem Fall findet er eine brauchbare Konfiguration.

Du kannst im UEFI sicherstellen, daß das sogenannte "secure boot" aktiviert ist. Funktioniert es trotzdem nicht, kannst Du den Boot-Manager mittels YaST oder auf der Konsole neu einrichten (und zwar GRUB2 selbst und nicht nur seine Konfiguration). Mehr kann ich nicht sagen, da ich weder das sogenannte "secure boot" noch GRUB2 verwende.

Den Ubuntu-Eintrag kannst Du mit
Code:
efibootmgr -b 2 -B
löschen.
 
OP
M

MiPl

Hacker
Hallo,

ich werde die Anpassungen voraussichtlich morgen machen können.

Hier zunächst noch /boot/efi/EFI/opensuse/grub.cfg:

Code:
sudo more /boot/efi/EFI/opensuse/grub.cfg
[sudo] Passwort für root: 
set btrfs_relative_path="yes"
search --fs-uuid --set=root 09695789-c878-4641-8cd9-3079fdd60da6
set prefix=(${root})/boot/grub2
source "${prefix}/grub.cfg"
 
OP
M

MiPl

Hacker
Hi,

allein das Löschen des Ubuntu-Eintrages hat die Lösung gebracht. Vielen Dank für die Hilfe.

Grüße
Michael
 
Oben