Summary: | The grub2 settng in kde setting does not allow display of all kernel installed | ||
---|---|---|---|
Product: | [Applications] systemsettings | Reporter: | Daniel Moyne <daniel.moyne> |
Component: | kcm_grub2 | Assignee: | Konstantinos Smanis <konstantinos.smanis> |
Status: | RESOLVED UPSTREAM | ||
Severity: | wishlist | CC: | cfeck, konstantinos.smanis |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Daniel Moyne
2012-04-08 15:45:41 UTC
I would say this is an upstream feature request. The recent versions of grub2 indeed hide the older kernel versions in a submenu (only the most recent kernel version is shown in the boot menu), but to my knowledge there isn't any configuration variable that could show all entries in the boot menu (something like GRUB_EXPAND_SUBMENUS). Modifying the 10_linux is not a viable solution as I see it: it's a bash script, probably edited by the user/distribution; you can't automate this procedure, these scripts are meant to be manually edited. In order to illustrate my point I quote the snippets that should be commented out in two different distributions (Kubuntu 11.10 & Gentoo). For Kubuntu it is: if [ "$list" ] && ! $in_submenu; then echo "submenu \"Previous Linux versions\" {" in_submenu=: fi For Gentoo it is: if [ "x$is_first_entry" = xtrue ]; then linux_entry "${OS}" "${version}" simple \ "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" submenu_indentation="\t" if [ -z "$boot_device_id" ]; then boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")" fi # TRANSLATORS: %s is replaced with an OS name echo "submenu '$(gettext_printf "Advanced options for %s" "${OS}" | grub_quote)' \$menuentry_id_option 'gnulinux-advanced-$boot_device_id' {" fi What do you mean here : - modifying "10_linux" file by commenting for Kubuntu distibution the following lines in the script ? : if [ "$list" ] && ! $in_submenu; then echo "submenu \"Previous Linux versions\" {" in_submenu=: fi These lines being present in my 10_linux" file. Can you confirm. Thanks If you comment out the above lines (that is, put a # at the start of the line), you will see all your entries, ie. no submenus. But this only applies for (K)ubuntu 11.10. Other distributions (I brought Gentoo as an example) have different scripts and therefore you have to do other modifications. I don't think it's possible to automate this procedure unless an upstream configuration variable is created (as explained above). Thanks Konstantinos ; I confirm that your proposed fix works for Kubuntu 12.04 ; I am very surprised of the complexity of grub where you have to comment lines in a complex script to get what was proposed long time ago as default in previous version. In my case as I have a separate partion for "/boot" of small size I have to control the space left in it and therefore the number ofvoluminous kernels installed and that become obsoletes ; the best being remembered at boot time what is available. I understood that the way grub is designed now you cannot simply parameter this in /etc/default/grub ! I reported the feature request upstream: https://savannah.gnu.org/bugs/index.php?36850 The feature has been implemented and released in upstream master: http://git.savannah.gnu.org/cgit/grub.git/commit/?id=323de05ba27594861c75eec0b39cb01049a023c9 |