[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #40291] more configurable menu generation

From: Alex Efros
Subject: [bug #40291] more configurable menu generation
Date: Thu, 17 Oct 2013 16:22:38 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0


                 Summary: more configurable menu generation
                 Project: GNU GRUB
            Submitted by: powerman
            Submitted on: Чтв 17 Окт 2013 16:22:37
                Category: Configuration
                Severity: Major
                Priority: 5 - Normal
              Item Group: Feature Request
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: Bazaar - trunk
         Reproducibility: None
         Planned Release: None



I've developed a patch which implement few related features:
- ability to define which linux kernels and in which order will be shown in
top menu instead of one auto-detected latest kernel
- ability to show kernel version in simple menu items, to distinguish between
several items added by previous feature
- ability to use custom kernel command line parameters for some kernels

Here is my real use-case explaining needs in these features. I'm experimenting
with switching between proprietary nvidia driver and nouveau. My main kernel
is 3.10.1-hardened-r1 (for proprietary nvidia driver), and I've also compiled
experimental kernel with "_nouveau" local version:

First issue - auto-detect of latest kernel choose 3.10.1-hardened-r1_nouveau,
which is wrong for me, and only way to change this is add some fake local
version for main kernel just to make sure it will be sorted before "_nouveau"
Second issue - main kernel need "vga=" parameter, while nouveau kernel need
"video=" parameter, but there is no way to configure this.
Third issue - I'd like to have both normal and nouveau kernels in main menu,
in manually defined order.

Attached patch is for grub-2.00_p5107.

All these features configurable using /etc/default/grub using two new
variables (GRUB_SIMPLE_VERSION and GRUB_MENU_LINUX) and one user-defined
function (grub_cmdline_linux_custom). Example:

# Add kernel version to simple menu entries

# Manually define list of simple menu entries instead of auto-detecting
# latest kernel.

# Append parameters to the linux kernel command line for non-recovery entries

# Append parameters to the linux kernel command line for non-recovery entries
# for some kernels (instead of GRUB_CMDLINE_LINUX_DEFAULT)
function grub_cmdline_linux_custom {
        local -A CMDLINE


        echo ${CMDLINE[$1]}


File Attachments:

Date: Чтв 17 Окт 2013 16:22:37  Name: customize_menu.patch  Size: 5kB  
By: powerman



Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]