Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359365 - sys-boot/grub-1.98 doesn't install defaults file
Summary: sys-boot/grub-1.98 doesn't install defaults file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 364763 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-03-18 13:49 UTC by john
Modified: 2011-04-25 20:31 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description john 2011-03-18 13:49:22 UTC
grub2 should install a defaults file in /etc/default/grub (or alternatively taking into account the gentoo filesystem, /etc/conf.d. The problem is that this file is not installed, and there is no example for how this file should look. It is needed for configuring default options passed to the kernel at boot time for example, customizing kernel command line.
I bumped into this when trying to set up hibernation, for which I need to add a resume= option to my kernel commandline

Reproducible: Always

Steps to Reproduce:
1. emerge =sys-boot/grub-1.98
2. try customizing the kernel command-line generated by grub-mkconfig using /etc/default/grub
Actual Results:  
the file doesn't exist and so it is difficult to know what options exist, what their names are.

Expected Results:  
/etc/default/grub exists and has the defaults in it

i think debian has a good example file if it is not in the grub upstream distribution.
Comment 1 john 2011-03-24 23:35:53 UTC
The wiki has interesting information about this: http://en.gentoo-wiki.com/wiki/Grub2#Using_variables
Comment 2 SpanKY gentoo-dev 2011-04-03 18:10:10 UTC
the grub info page explains the file

/etc/conf.d/ is only for init.d scripts which this is not

grub-9999 now installs a simple /etc/defaults/grub file with pointers to different pieces of documentation
Comment 3 SpanKY gentoo-dev 2011-04-25 20:31:39 UTC
*** Bug 364763 has been marked as a duplicate of this bug. ***