Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 228677 - Some (minor) grub enhancements
Summary: Some (minor) grub enhancements
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-21 05:40 UTC by Chris Gianelloni (RETIRED)
Modified: 2008-07-05 09:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
grub ebuild patch (grub-ebuild-GRUB_ALT_INSTALLDIR.patch,1.11 KB, patch)
2008-06-21 05:42 UTC, Chris Gianelloni (RETIRED)
Details | Diff
grub.conf.gentoo patch (grub-conf-remove-deprecated-opts.patch,691 bytes, patch)
2008-06-21 05:43 UTC, Chris Gianelloni (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Gianelloni (RETIRED) gentoo-dev 2008-06-21 05:40:44 UTC
I have two minor enhancement patches that I would like to see added to grub in the tree.

The first is simply the ability to define a variable to tell the ebuild where to install grub when using emerge --config.  In the attached patch, I've used GRUB_ALT_INSTALLDIR as the variable.  It is currently setup to not do much error checking as all it does is check if the location exists, so it's probably not safe for use in make.conf or anything, but it makes the "emerge --config" non-interactive and scriptable.  This patch also changes the einfo in pkg_postinst to elog and changed the DONT_MOUNT_BOOT check so it still outputs the text, even if the user asked to skip mounting boot/installing grub.  I hope it isn't a problem that I added them all into one patch, but with how minor the changes are, I didn't think that anyone would mind.

The second is a patch to the grub.conf we install that has a genkernel example in it.  All that I did here was remove the init=/linuxrc, ramdisk=8192, and udev options.  Since genkernel no longer even supports building an initrd (as of 3.4.10_pre8, though initramfs has been the default much longer), the init=/linuxrc and ramdisk=8192 options aren't necessary, and are actually ignored (by genkernel, as ramdisk still works for setting the size different from the kernel's built-in).  The udev option has been removed from genkernel for quite some time now, as we've been using mdev from busybox since 3.4.0_pre4 in July of '06.
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2008-06-21 05:42:39 UTC
Created attachment 157847 [details, diff]
grub ebuild patch

This changes einfo -> elog, fixed DONT_MOUNT_BOOT check, and adds GRUB_ALT_INSTALLDIR support to pkg_config.
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2008-06-21 05:43:59 UTC
Created attachment 157849 [details, diff]
grub.conf.gentoo patch

This removes unused options from genkernel.
Comment 3 SpanKY gentoo-dev 2008-06-21 05:54:37 UTC
there's no need for the [-z] check as [-d] will fail on an empty string

so drop the -z, cuddle the "then", and then it should be fine for you to commit
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2008-06-28 09:15:26 UTC
Cuddle the "then"?
Comment 5 SpanKY gentoo-dev 2008-06-28 15:47:36 UTC
if moo
then

if moo ; then

cuddle!
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-07-05 09:59:22 UTC
incvs.