openSUSE 13.2 64bit KDE 4.14
How do I delete a boot loader entry with YaST? Advice on the Internet tells me to select the item in YaST and click “Delete”. But I must be blind because I don’t see a “Delete” option.
Thanks in advance.
openSUSE 13.2 64bit KDE 4.14
How do I delete a boot loader entry with YaST? Advice on the Internet tells me to select the item in YaST and click “Delete”. But I must be blind because I don’t see a “Delete” option.
Thanks in advance.
If you are using “grub2”, then you are probably concerned with entries that are automatically added.
You cannot delete those.
Well, okay, you could edit “/boot/grub/grub.cfg”. But those entries are likely to be added back when the file is regenerated. There might be some changes that you can make in “/etc/grub.d” that affects how “grub.cfg” is generated.
If you merely want to remove some stale entries, then perhaps regenerating the file is sufficient. The “update-bootloader” command (as root) should take care of that.
It all depends on what entry you are referring to.
I take it you want a Grub menu entry removed?
Specifically, what is the entry you want to remove?
I need more details.
Grub2 is being used. sda1 is a bootable partition holding openSUSE 13.2 my current stable, everyday distro. sda2 holds an unstable LEAP 42.1 I have temporarily abandoned but do not want to delete. I want to remove the entry that boots sda2, and not to have it re-appear at the next grub update.
This is my grub.cfg…
# cat /boot/grub2/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 ###
if -f ${config_directory}/grubenv ]; then
load_env -f ${config_directory}/grubenv
elif -s $prefix/grubenv ]; then
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="${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}"
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_msdos
insmod ext2
set root='hd0,msdos1'
if x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 622063bb-2c18-4b6d-bf99-620f6e9850c7
else
search --no-floppy --fs-uuid --set=root 622063bb-2c18-4b6d-bf99-620f6e9850c7
fi
font="/usr/share/grub2/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=1024x768
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=POSIX
insmod gettext
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 622063bb-2c18-4b6d-bf99-620f6e9850c7
else
search --no-floppy --fs-uuid --set=root 622063bb-2c18-4b6d-bf99-620f6e9850c7
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=8
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=8
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'openSUSE 13.2' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-622063bb-2c18-4b6d-bf99-620f6e9850c7' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 622063bb-2c18-4b6d-bf99-620f6e9850c7
else
search --no-floppy --fs-uuid --set=root 622063bb-2c18-4b6d-bf99-620f6e9850c7
fi
echo 'Loading Linux 3.16.7-29-desktop ...'
linux /boot/vmlinuz-3.16.7-29-desktop root=UUID=622063bb-2c18-4b6d-bf99-620f6e9850c7 resume=/dev/disk/by-uuid/91c5cbe6-4693-432c-b49f-f2f8c388db25 splash=silent quiet showopts vga=792
echo 'Loading initial ramdisk ...'
initrd /boot/initrd-3.16.7-29-desktop
}
submenu 'Advanced options for openSUSE 13.2' $menuentry_id_option 'gnulinux-advanced-622063bb-2c18-4b6d-bf99-620f6e9850c7' {
menuentry 'openSUSE 13.2, with Linux 3.16.7-29-desktop' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.7-29-desktop-advanced-622063bb-2c18-4b6d-bf99-620f6e9850c7' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 622063bb-2c18-4b6d-bf99-620f6e9850c7
else
search --no-floppy --fs-uuid --set=root 622063bb-2c18-4b6d-bf99-620f6e9850c7
fi
echo 'Loading Linux 3.16.7-29-desktop ...'
linux /boot/vmlinuz-3.16.7-29-desktop root=UUID=622063bb-2c18-4b6d-bf99-620f6e9850c7 resume=/dev/disk/by-uuid/91c5cbe6-4693-432c-b49f-f2f8c388db25 splash=silent quiet showopts vga=792
echo 'Loading initial ramdisk ...'
initrd /boot/initrd-3.16.7-29-desktop
}
menuentry 'openSUSE 13.2, with Linux 3.16.7-29-desktop (recovery mode)' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.7-29-desktop-recovery-622063bb-2c18-4b6d-bf99-620f6e9850c7' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 622063bb-2c18-4b6d-bf99-620f6e9850c7
else
search --no-floppy --fs-uuid --set=root 622063bb-2c18-4b6d-bf99-620f6e9850c7
fi
echo 'Loading Linux 3.16.7-29-desktop ...'
linux /boot/vmlinuz-3.16.7-29-desktop root=UUID=622063bb-2c18-4b6d-bf99-620f6e9850c7 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe
echo 'Loading initial ramdisk ...'
initrd /boot/initrd-3.16.7-29-desktop
}
menuentry 'openSUSE 13.2, with Linux 3.16.7-7-desktop' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.7-7-desktop-advanced-622063bb-2c18-4b6d-bf99-620f6e9850c7' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 622063bb-2c18-4b6d-bf99-620f6e9850c7
else
search --no-floppy --fs-uuid --set=root 622063bb-2c18-4b6d-bf99-620f6e9850c7
fi
echo 'Loading Linux 3.16.7-7-desktop ...'
linux /boot/vmlinuz-3.16.7-7-desktop root=UUID=622063bb-2c18-4b6d-bf99-620f6e9850c7 resume=/dev/disk/by-uuid/91c5cbe6-4693-432c-b49f-f2f8c388db25 splash=silent quiet showopts vga=792
echo 'Loading initial ramdisk ...'
initrd /boot/initrd-3.16.7-7-desktop
}
menuentry 'openSUSE 13.2, with Linux 3.16.7-7-desktop (recovery mode)' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.7-7-desktop-recovery-622063bb-2c18-4b6d-bf99-620f6e9850c7' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 622063bb-2c18-4b6d-bf99-620f6e9850c7
else
search --no-floppy --fs-uuid --set=root 622063bb-2c18-4b6d-bf99-620f6e9850c7
fi
echo 'Loading Linux 3.16.7-7-desktop ...'
linux /boot/vmlinuz-3.16.7-7-desktop root=UUID=622063bb-2c18-4b6d-bf99-620f6e9850c7 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe
echo 'Loading initial ramdisk ...'
initrd /boot/initrd-3.16.7-7-desktop
}
}
### 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 'openSUSE 42.1 (x86_64) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-a802b574-ac6b-480c-977c-bde34db3ee93' {
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 --hint='hd0,msdos2' a802b574-ac6b-480c-977c-bde34db3ee93
else
search --no-floppy --fs-uuid --set=root a802b574-ac6b-480c-977c-bde34db3ee93
fi
linux /boot/vmlinuz-4.1.12-1-default root=UUID=a802b574-ac6b-480c-977c-bde34db3ee93 resume=/dev/disk/by-uuid/91c5cbe6-4693-432c-b49f-f2f8c388db25 splash=silent showopts vga=792
initrd /boot/initrd-4.1.12-1-default
}
submenu 'Advanced options for openSUSE 42.1 (x86_64) (on /dev/sda2)' $menuentry_id_option 'osprober-gnulinux-advanced-a802b574-ac6b-480c-977c-bde34db3ee93' {
menuentry 'openSUSE Leap 42.1 (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.1.12-1-default--a802b574-ac6b-480c-977c-bde34db3ee93' {
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 --hint='hd0,msdos2' a802b574-ac6b-480c-977c-bde34db3ee93
else
search --no-floppy --fs-uuid --set=root a802b574-ac6b-480c-977c-bde34db3ee93
fi
linux /boot/vmlinuz-4.1.12-1-default root=UUID=a802b574-ac6b-480c-977c-bde34db3ee93 resume=/dev/disk/by-uuid/91c5cbe6-4693-432c-b49f-f2f8c388db25 splash=silent showopts vga=792
initrd /boot/initrd-4.1.12-1-default
}
menuentry 'openSUSE Leap 42.1, with Linux 4.1.12-1-default (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.1.12-1-default--a802b574-ac6b-480c-977c-bde34db3ee93' {
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 --hint='hd0,msdos2' a802b574-ac6b-480c-977c-bde34db3ee93
else
search --no-floppy --fs-uuid --set=root a802b574-ac6b-480c-977c-bde34db3ee93
fi
linux /boot/vmlinuz-4.1.12-1-default root=UUID=a802b574-ac6b-480c-977c-bde34db3ee93 resume=/dev/disk/by-uuid/91c5cbe6-4693-432c-b49f-f2f8c388db25 splash=silent showopts vga=792
initrd /boot/initrd-4.1.12-1-default
}
}
### 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 ###
You can turn off the option: “Probe foreign OS” in Yast bootloader. Then it will only provide boot entries for your main system and for entries you add yourself such as in “/etc/grub.d/40_custom”.
It won’t find Windows entries, but I don’t think you have any.
I normally turn off that option when I don’t have Windows installed.
Thank you very much. A simple solution I should have seen, but I was looking elsewhere.
… the very thing I was going to suggest, but first wanted to be certain what you were trying to achieve. Glad nrickert jumped in and you are now (I presume) satisfied.