1 |
On Friday 09 May 2008, Mark Knecht wrote: |
2 |
> On Fri, May 9, 2008 at 2:41 PM, Neil Bothwick <neil@××××××××××.uk> |
3 |
wrote: |
4 |
> > On Fri, 9 May 2008 21:50:09 +0200, Alex Schuster wrote: |
5 |
> >> Check for /boot/grub/menu.lst, this is an alternate (and maybe |
6 |
> >> empty) config file which grub seems to prefer over grub.conf. |
7 |
> > |
8 |
> > menu.lst has been the preferred config file for some years, it seem |
9 |
> > that GRUB is a little more strict about this nowadays. |
10 |
> |
11 |
> I tried to read the ebuild but failed. |
12 |
|
13 |
For reference: |
14 |
|
15 |
It's this bit from the ebuild: |
16 |
|
17 |
setup_boot_dir() { |
18 |
local boot_dir=$1 |
19 |
local dir=${boot_dir} |
20 |
|
21 |
[[ ! -e ${dir} ]] && die "${dir} does not exist!" |
22 |
[[ ! -L ${dir}/boot ]] && ln -s . "${dir}/boot" |
23 |
dir="${dir}/grub" |
24 |
if [[ ! -e ${dir} ]] ; then |
25 |
mkdir "${dir}" || die "${dir} does not exist!" |
26 |
fi |
27 |
|
28 |
# change menu.lst to grub.conf |
29 |
if [[ ! -e ${dir}/grub.conf ]] && [[ -e ${dir}/menu.lst ]] ; |
30 |
then |
31 |
mv -f "${dir}"/menu.lst "${dir}"/grub.conf |
32 |
ewarn |
33 |
ewarn "*** IMPORTANT NOTE: menu.lst has been renamed to |
34 |
grub.conf" |
35 |
ewarn |
36 |
fi |
37 |
|
38 |
|
39 |
it's called essentially this way in post_inst(): |
40 |
|
41 |
setup_boot_dir /boot |
42 |
|
43 |
what it does is in essence: |
44 |
|
45 |
1. fail if /boot does not exist |
46 |
2. create /boot/boot as a link to /boot |
47 |
3. create /boot/grub |
48 |
4. if you don't have a grub.conf and do have a menu.lst then rename it |
49 |
to grub.conf |
50 |
|
51 |
|
52 |
|
53 |
-- |
54 |
Alan McKinnon |
55 |
alan dot mckinnon at gmail dot com |
56 |
|
57 |
-- |
58 |
gentoo-user@l.g.o mailing list |