From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JuksA-0001Ei-HF for garchives@archives.gentoo.org; Sat, 10 May 2008 08:56:06 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CBC7EE05C8; Sat, 10 May 2008 08:56:04 +0000 (UTC) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by pigeon.gentoo.org (Postfix) with ESMTP id 88CC4E05C8 for ; Sat, 10 May 2008 08:56:04 +0000 (UTC) Received: by ug-out-1314.google.com with SMTP id z27so332952ugc.49 for ; Sat, 10 May 2008 01:56:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; bh=j6ySXz7yH2bGz+nOiJj4g2CBkGdPG1QJikM0lUQ9t8U=; b=nVZvgp+eV+6fmrBNnJtp11xPkpxIF6PLoWJgK8AdAqna3S8BCHeaxvqGVmDiLCAu1CFJzoZkYy4SXeq6EBM3yxiu059rG8xrEg1wUn6wA5mxhlzud3l1PaUIUGRSdFurQkjXAMU+8Hlis/t8KChFlXHsa8byIswtadjU++w+qIU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=j3CWkwJrkQAECclHRvUIn4EXXHaKD39yMLNSoKFvPbd16p4PCzLa+dm5ld+IyX9IjAysw13LZUkZtmeB0pRo667uhVc+0ZIT4ssxWRvlXKEdDK59bdXqvh+apZNdt5QkcRQFGP7ZJpqQzQEn8DAjD8UhNy0P+ngAo0YmuCZHKvc= Received: by 10.67.101.17 with SMTP id d17mr2270911ugm.46.1210409763073; Sat, 10 May 2008 01:56:03 -0700 (PDT) Received: from ?10.0.0.4? ( [41.243.199.220]) by mx.google.com with ESMTPS id p39sm1368372ugd.7.2008.05.10.01.56.00 (version=SSLv3 cipher=RC4-MD5); Sat, 10 May 2008 01:56:02 -0700 (PDT) From: Alan McKinnon 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 User-Agent: KMail/1.9.9 References: <12c639a20805091232l43b239e1o8189c3a023157d5d@mail.gmail.com> <20080509224116.719eda25@loonquawl.digimed.co.uk> <5bdc1c8b0805091451ud1e4c6bm92ba1e30b095f174@mail.gmail.com> In-Reply-To: <5bdc1c8b0805091451ud1e4c6bm92ba1e30b095f174@mail.gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200805101055.44286.alan.mckinnon@gmail.com> X-Archives-Salt: 16d49a11-2fdb-4995-ba5b-2828aee72df5 X-Archives-Hash: 2961e8897a477d54ba2a48b2efa996e0 On Friday 09 May 2008, Mark Knecht wrote: > On Fri, May 9, 2008 at 2:41 PM, Neil Bothwick 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