From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MteF9-0006ee-9Z for mharc-grub-devel@gnu.org; Fri, 02 Oct 2009 05:16:03 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MteF6-0006dy-MX for grub-devel@gnu.org; Fri, 02 Oct 2009 05:16:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MteF1-0006ce-LU for grub-devel@gnu.org; Fri, 02 Oct 2009 05:16:00 -0400 Received: from [199.232.76.173] (port=50682 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MteF1-0006cY-0J for grub-devel@gnu.org; Fri, 02 Oct 2009 05:15:55 -0400 Received: from moutng.kundenserver.de ([212.227.17.9]:61630) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MteF0-0001DD-HU for grub-devel@gnu.org; Fri, 02 Oct 2009 05:15:54 -0400 Received: from [85.180.9.127] (e180009127.adsl.alicedsl.de [85.180.9.127]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0MdWxQ-1MhV993XSe-00PJca; Fri, 02 Oct 2009 11:15:52 +0200 From: Felix Zielcke To: The development of GRUB 2 In-Reply-To: <4AC51F54.1000701@gmail.com> References: <4AC51F54.1000701@gmail.com> Content-Type: text/plain; charset="UTF-8" Date: Fri, 02 Oct 2009 11:15:50 +0200 Message-Id: <1254474950.5615.2.camel@fz.local> Mime-Version: 1.0 X-Mailer: Evolution 2.28.0 Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX18N7w0SmClmd+cE1Ae67RwDrjMszNbahnDhqOc ylE9lYP6Xt0ZICkvSduYkBDlxBDx+yD6ysIv+uKLg7yUeZZL3f IrfUas27hIiTRRPtx5e0g== X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: grub_prefix seems wrong for separate /boot partition X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Oct 2009 09:16:01 -0000 Am Donnerstag, den 01.10.2009, 23:29 +0200 schrieb Christoph Mathys: > Hello > > Not sure if I've come to the right place, but here is my story: > > Yesterday, my package manager (deb on testing) decided that the time has > come to switch to grub 1.97~beta3. Well, afterwards my system did not > boot anymore, it was stuck in the grub shell, no menu or anything. It > works again now and I quiet like the new grub shell (well, scrolling was > horribly slow). > > Anyway, my /boot-directory is on its own partition, which is only > mounted if I need to change something there. Now, one of the problems > why the update did not work was that I forgot to mount /boot and grub > could not find the kernels (my fault). > > After I've learned how to boot my system again and mounted /boot, grub > found the kernels. However, grub_prefix seems to be wrong, pointing to > /boot/grub instead of just /grub. I did not find a better way to fix it > than changing the variable in grub-install. After changing grub_prefix > to /grub and rerunning grub-install /dev/hda, everything is fine now. > > Maybe grub_prefix should be setable on the command line of grub-install? > Or some other bad mistake on my part because of scoping the amount of > documentation I read using google? It should be never needed to change grub-install to fix this. If /boot is a seperate partition then the prefix gets just /grub. If not then it's a bug. And in that case the generated grub.cfg has the same problem. This is actually impossible that only grub-install but not grub-mkconfig was affected in your case. They use both the same function to make it relative to the root. Did you run grub-install again after you mounted your /boot or did you just copy the files? -- Felix Zielcke Proud Debian Maintainer and GNU GRUB developer