grub-devel
[Top][All Lists]
Advanced

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

[PATCH] Increase flexibility of kernel naming, allow non-versioned kerne


From: Mike Gilbert
Subject: [PATCH] Increase flexibility of kernel naming, allow non-versioned kernels.
Date: Sun, 29 Apr 2012 00:46:24 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120422 Thunderbird/11.0.1

I am relaying a patch by Robin Johnson, one of the core infrastructure
staff at Gentoo Linux. In the process of building some Gentoo servers
utilizing GRUB 2, he has made some changes to 10_linux that should make
grub-mkconfig "out of the box" for additional users.

I did a little work to clean up the indentation and wrote a proper
changelog. Credit should go to him.

Here is his description:

Increase flexibility of kernel naming, allow non-versioned kernels.

The block that tried to find the kernels was getting unweidly long, as
was not
easily customizable by users or distributors. Refactor to introduce a new
variable, GRUB_KERNEL_GLOB, that allows complete control over the naming
used
to search for kernel binaries.

Add 'bzImage' to the list of default names to support more distribution
naming
variants.

Adjust the default set of globs to look for unversioned kernels before
versioned kernels, to find symlinked kernel names.

Also apply similar logic to to initramfs.

Signed-off-by: Robin H. Johnson <address@hidden>

--
Take 2: Added initramfs logic.

Attachment: grub-2.00-kernel-naming-flexibility.patch
Description: Text Data

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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