On Friday 09 May 2008, Mark Knecht wrote:
> On Fri, May 9, 2008 at 2:41 PM, Neil Bothwick <[EMAIL PROTECTED]>
wrote:
> > On Fri, 9 May 2008 21:50:09 +0200, Alex Schuster wrote:
> >> Check for /boot/grub/menu.lst, this is an alternate (and maybe
> >> empty) config file which grub seems to prefer over grub.conf.
> >
> > menu.lst has been the preferred config file for some years, it seem
> > that GRUB is a little more strict about this nowadays.
>
> I tried to read the ebuild but failed.
For reference:
It's this bit from the ebuild:
setup_boot_dir() {
local boot_dir=$1
local dir=${boot_dir}
[[ ! -e ${dir} ]] && die "${dir} does not exist!"
[[ ! -L ${dir}/boot ]] && ln -s . "${dir}/boot"
dir="${dir}/grub"
if [[ ! -e ${dir} ]] ; then
mkdir "${dir}" || die "${dir} does not exist!"
fi
# change menu.lst to grub.conf
if [[ ! -e ${dir}/grub.conf ]] && [[ -e ${dir}/menu.lst ]] ;
then
mv -f "${dir}"/menu.lst "${dir}"/grub.conf
ewarn
ewarn "*** IMPORTANT NOTE: menu.lst has been renamed to
grub.conf"
ewarn
fi
it's called essentially this way in post_inst():
setup_boot_dir /boot
what it does is in essence:
1. fail if /boot does not exist
2. create /boot/boot as a link to /boot
3. create /boot/grub
4. if you don't have a grub.conf and do have a menu.lst then rename it
to grub.conf
--
Alan McKinnon
alan dot mckinnon at gmail dot com
--
[email protected] mailing list