Why can’t I delete obsolete boot choices or rename current ones from YaST2>System>Boot Loader>Boot Loader Options?
Thanks.
Why can’t I delete obsolete boot choices or rename current ones from YaST2>System>Boot Loader>Boot Loader Options?
Thanks.
Reinstalling grub should fix that
Nothing changed. Here is a portion of my /boot/grub2/grub.cfg showing the menu entries I want to delete or modify. They reference Tumbleweed boots. I want to retain only one with the date of its latest update and to delete the rest as I will never boot them. Any suggestions?
### BEGIN /etc/grub.d/30_os-prober
menuentry 'unknown Linux distribution (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-e4491ca1-7429-4b34-ba46-6aa620098866' {
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' e4491ca1-7429-4b34-ba46-6aa620098866
else
search --no-floppy --fs-uuid --set=root e4491ca1-7429-4b34-ba46-6aa620098866
fi
linux /boot/vmlinuz-4.7.3-1-default root=UUID=e4491ca1-7429-4b34-ba46-6aa620098866 quiet splash=silent resume=/dev/disk/by-uuid/0628ad79-480a-4dd3-8780-144fdd67abf1 splash=silent quiet showopts
initrd /boot/initrd-4.7.3-1-default
}
submenu 'Advanced options for unknown Linux distribution (on /dev/sda1)' $menuentry_id_option 'osprober-gnulinux-advanced-e4491ca1-7429-4b34-ba46-6aa620098866' {
menuentry 'openSUSE Tumbleweed (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.7.3-1-default--e4491ca1-7429-4b34-ba46-6aa620098866' {
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' e4491ca1-7429-4b34-ba46-6aa620098866
else
search --no-floppy --fs-uuid --set=root e4491ca1-7429-4b34-ba46-6aa620098866
fi
linux /boot/vmlinuz-4.7.3-1-default root=UUID=e4491ca1-7429-4b34-ba46-6aa620098866 quiet splash=silent resume=/dev/disk/by-uuid/0628ad79-480a-4dd3-8780-144fdd67abf1 splash=silent quiet showopts
initrd /boot/initrd-4.7.3-1-default
}
menuentry 'openSUSE Tumbleweed , with Linux 4.7.3-1-default (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.7.3-1-default--e4491ca1-7429-4b34-ba46-6aa620098866' {
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' e4491ca1-7429-4b34-ba46-6aa620098866
else
search --no-floppy --fs-uuid --set=root e4491ca1-7429-4b34-ba46-6aa620098866
fi
linux /boot/vmlinuz-4.7.3-1-default root=UUID=e4491ca1-7429-4b34-ba46-6aa620098866 quiet splash=silent resume=/dev/disk/by-uuid/0628ad79-480a-4dd3-8780-144fdd67abf1 splash=silent quiet showopts
initrd /boot/initrd-4.7.3-1-default
}
menuentry 'openSUSE Tumbleweed , with Linux 4.7.3-1-default (recovery mode) (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.7.3-1-default--e4491ca1-7429-4b34-ba46-6aa620098866' {
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' e4491ca1-7429-4b34-ba46-6aa620098866
else
search --no-floppy --fs-uuid --set=root e4491ca1-7429-4b34-ba46-6aa620098866
fi
linux /boot/vmlinuz-4.7.3-1-default root=UUID=e4491ca1-7429-4b34-ba46-6aa620098866
initrd /boot/initrd-4.7.3-1-default
}
menuentry 'openSUSE Tumbleweed , with Linux 4.6.4-1-default (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.6.4-1-default--e4491ca1-7429-4b34-ba46-6aa620098866' {
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' e4491ca1-7429-4b34-ba46-6aa620098866
else
search --no-floppy --fs-uuid --set=root e4491ca1-7429-4b34-ba46-6aa620098866
fi
linux /boot/vmlinuz-4.6.4-1-default root=UUID=e4491ca1-7429-4b34-ba46-6aa620098866 quiet splash=silent resume=/dev/disk/by-uuid/0628ad79-480a-4dd3-8780-144fdd67abf1 splash=silent quiet showopts
initrd /boot/initrd-4.6.4-1-default
}
menuentry 'openSUSE Tumbleweed , with Linux 4.6.4-1-default (recovery mode) (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.6.4-1-default--e4491ca1-7429-4b34-ba46-6aa620098866' {
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' e4491ca1-7429-4b34-ba46-6aa620098866
else
search --no-floppy --fs-uuid --set=root e4491ca1-7429-4b34-ba46-6aa620098866
fi
linux /boot/vmlinuz-4.6.4-1-default root=UUID=e4491ca1-7429-4b34-ba46-6aa620098866
initrd /boot/initrd-4.6.4-1-default
}
}
Hi
Run the purge kernels service;
systemctl status purge-kernels.service
systemctl start purge-kernels.service
systemctl status purge-kernels.service
Did that. Re-ran YaST2>System>Boot Loader>Boot Loader Options. Re-booted. Nothing changed. Yast2 shows exactly the same entries as before.
linux-h6uf:/home/ion # systemctl status purge-kernels.service
purge-kernels.service - Purge old kernels
Loaded: loaded (/usr/lib/systemd/system/purge-kernels.service; enabled)
Active: inactive (dead)
start condition failed at Sun 2016-09-18 12:40:37 CEST; 7h ago
ConditionPathExists=/boot/do_purge_kernels was not met
linux-h6uf:/home/ion # systemctl start purge-kernels.service
linux-h6uf:/home/ion # systemctl status purge-kernels.service
purge-kernels.service - Purge old kernels
Loaded: loaded (/usr/lib/systemd/system/purge-kernels.service; enabled)
Active: inactive (dead)
start condition failed at Sun 2016-09-18 20:01:45 CEST; 8s ago
ConditionPathExists=/boot/do_purge_kernels was not met
Sep 18 20:01:45 linux-h6uf systemd[1]: Started Purge old kernels.
linux-h6uf:/home/ion #