From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] booting to grub prompt, but config works
Date: Sat, 10 May 2008 10:55:44 +0200 [thread overview]
Message-ID: <200805101055.44286.alan.mckinnon@gmail.com> (raw)
In-Reply-To: <5bdc1c8b0805091451ud1e4c6bm92ba1e30b095f174@mail.gmail.com>
On Friday 09 May 2008, Mark Knecht wrote:
> On Fri, May 9, 2008 at 2:41 PM, Neil Bothwick <neil@digimed.co.uk>
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
--
gentoo-user@lists.gentoo.org mailing list
next prev parent reply other threads:[~2008-05-10 8:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-09 19:32 [gentoo-user] booting to grub prompt, but config works Travis Osterman
2008-05-09 19:50 ` Alex Schuster
2008-05-09 21:41 ` Neil Bothwick
2008-05-09 21:51 ` Mark Knecht
2008-05-10 8:55 ` Alan McKinnon [this message]
2008-05-10 17:29 ` Mark Knecht
2008-05-10 18:57 ` Alan McKinnon
2008-05-09 19:52 ` Mark Knecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200805101055.44286.alan.mckinnon@gmail.com \
--to=alan.mckinnon@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox