В Thu, 23 Jul 2015 13:41:08 -0500 "David C. Rankin" <drankinatty@suddenlinkmail.com> пишет:
On 07/22/2015 12:29 PM, Felix Miata wrote:
If you want to remove the most recently installed, simply boot into any of the installed older kernels, then remove the latest.
That's what I thought. I have been using the grub advanced options menu to get to the normal desktop kernel to boot (pain in the a$$ since you cannot choose and set a default kernel to boot in grub2).
Actually you can. Each menu entry generated by grub-mkconfig has unique ID which is built predictably and should remain constant across different grub-mkconfig invocations. It is preferred way to set default boot entry because it does not depend on relative order. menuentry 'openSUSE 13.2, with Linux 3.16.7-7-desktop' ... $menuentry_id_option 'gnulinux-3.16.7-7-desktop-advanced-bf08b064-2753-45b5-9af1-4fab01c9cca5' Here ID is gnulinux-3.16.7-7-desktop-advanced-bf08b064-2753-45b5-9af1-4fab01c9cca5 It becomes a bit more complicated with submenus, where default boot entry should be full "path" from the top. So for submenu 'Advanced options for openSUSE 13.2' $menuentry_id_option 'gnulinux-advanced-bf08b064-2753-45b5-9af1-4fab01c9cca5' { menuentry 'openSUSE 13.2, with Linux 3.16.7-21-desktop' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.7- 21-desktop-advanced-bf08b064-2753-45b5-9af1-4fab01c9cca5' { Default boot entry would be gnulinux-advanced-bf08b064-2753-45b5-9af1-4fab01c9cca5>gnulinux-3.16.7- 21-desktop-advanced-bf08b064-2753-45b5-9af1-4fab01c9cca5 (one line of course). List of IDs separated by '>'. It is highly recommended for any third-party program that creates grub menu to generate unique stable IDs as well. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org