Also ihr macht mir ja richtig Mut.
Kennt jemand ein SDB worin die vorgehensweise unter OpenSuSe beschrieben ist?
Ins Besondere möchte ich die neue SystemRescue 9.00 so auf meinem System hinzufügen.
Die Vorschläge die ich im Netz so finden kann, weichen sehr Stark von dem was ich in der GRUB.cfg lesen kann.
Hier mal der Eintrag vom derzeitig startenden Kernel:
Code
### BEGIN /etc/grub.d/10_linux ###
menuentry 'openSUSE Leap 15.3' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-6ae8174d-b603-49a3-93a1-24437143467b' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 --hint='hd0,gpt2' 6ae8174d-b603-49a3-93a1-24437143467b
else
search --no-floppy --fs-uuid --set=root 6ae8174d-b603-49a3-93a1-24437143467b
fi
echo 'Loading Linux 5.3.18-59.37-default ...'
linux /boot/vmlinuz-5.3.18-59.37-default root=UUID=6ae8174d-b603-49a3-93a1-24437143467b showopts loglevel=0 acpi_enforce_resources=lax intel_pstate=active nouveau.runpm=1 plymouth.enable=0
echo 'Loading initial ramdisk ...'
initrd /boot/initrd-5.3.18-59.37-default
}
submenu 'Advanced options for openSUSE Leap 15.3' --hotkey=1 $menuentry_id_option 'gnulinux-advanced-6ae8174d-b603-49a3-93a1-24437143467b' {
menuentry 'openSUSE Leap 15.3, with Linux 5.3.18-59.37-default' --hotkey=2 --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.3.18-59.37-default-advanced-6ae8174d-b603-49a3-93a1-24437143467b' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 --hint='hd0,gpt2' 6ae8174d-b603-49a3-93a1-24437143467b
else
search --no-floppy --fs-uuid --set=root 6ae8174d-b603-49a3-93a1-24437143467b
fi
echo 'Loading Linux 5.3.18-59.37-default ...'
linux /boot/vmlinuz-5.3.18-59.37-default root=UUID=6ae8174d-b603-49a3-93a1-24437143467b showopts loglevel=0 acpi_enforce_resources=lax intel_pstate=active nouveau.runpm=1 plymouth.enable=0
echo 'Loading initial ramdisk ...'
initrd /boot/initrd-5.3.18-59.37-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+ ###
menuentry 'openSUSE Leap 15.3 Memtest' --class opensuse --class memtest86 --class gnu --class tools $menuentry_id_option 'memtest-6ae8174d-b603-49a3-93a1-24437143467b' {
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 --hint='hd0,gpt2' 6ae8174d-b603-49a3-93a1-24437143467b
else
search --no-floppy --fs-uuid --set=root 6ae8174d-b603-49a3-93a1-24437143467b
fi
echo 'Loading memtest ...'
linux16 /boot/memtest.bin
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 7 (on /dev/sdb1)' --class windows --class os $menuentry_id_option 'osprober-chain-423A318E3A318049' {
insmod part_msdos
insmod ntfs
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd1,msdos1' 423A318E3A318049
else
search --no-floppy --fs-uuid --set=root 423A318E3A318049
fi
parttool ${root} hidden-
chainloader +1
}
### 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 ###
### 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 ###
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 ###
Alles anzeigen
Ich musste den Text doch um Einiges Kürzen, gibt aber immer noch das wichtigste wieder.
Wenn sich jemand die Mühe machen möchte, die Einträge sind so sehr abweichend von dem was ich so gefunden habe. Mit den meisten Einträgen kann ich so gar nichts anfangen.
Welcher Befehl ist der Richige?
update-Bootloader oder der mit Grub2-mkconfig -o
Ahoi von hier aus