From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1K8fLf-0003ne-W1 for mharc-grub-devel@gnu.org; Tue, 17 Jun 2008 13:52:04 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K8fLd-0003nK-3y for grub-devel@gnu.org; Tue, 17 Jun 2008 13:52:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K8fLa-0003n4-JN for grub-devel@gnu.org; Tue, 17 Jun 2008 13:51:59 -0400 Received: from [199.232.76.173] (port=40456 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8fLa-0003n1-EV for grub-devel@gnu.org; Tue, 17 Jun 2008 13:51:58 -0400 Received: from gateway08.websitewelcome.com ([69.56.184.28]:42364) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1K8fLZ-0007dI-SQ for grub-devel@gnu.org; Tue, 17 Jun 2008 13:51:58 -0400 Received: (qmail 10271 invoked from network); 17 Jun 2008 18:00:13 -0000 Received: from gator297.hostgator.com (74.53.228.114) by gateway08.websitewelcome.com with SMTP; 17 Jun 2008 18:00:13 -0000 Received: from c-67-185-142-228.hsd1.wa.comcast.net ([67.185.142.228]:42422 helo=localhost) by gator297.hostgator.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1K8fLS-00053B-FT for grub-devel@gnu.org; Tue, 17 Jun 2008 12:51:50 -0500 Date: Tue, 17 Jun 2008 10:51:23 -0700 From: Colin D Bennett To: grub-devel@gnu.org Message-ID: <20080617105123.6547c227@gibibit.com> X-Mailer: Claws Mail 3.4.0 (GTK+ 2.12.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/LMMlUVjsuv7GqrYICMXuooL" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator297.hostgator.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gibibit.com X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Subject: [PATCH] Fix grub-install to use prefix for modules dir 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: Tue, 17 Jun 2008 17:52:01 -0000 --MP_/LMMlUVjsuv7GqrYICMXuooL Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline I fixed ``grub-install`` so it can function when installed to a prefix other than ``/usr/local``. This simply meant adding --directory="${pkglibdir} to the command line arguments for grub_mkimage. Regards, Colin --MP_/LMMlUVjsuv7GqrYICMXuooL Content-Type: text/x-patch; name=grub_install_pkglibdir_fix_2008-06-17.patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=grub_install_pkglibdir_fix_2008-06-17.patch === modified file 'util/i386/pc/grub-install.in' --- util/i386/pc/grub-install.in 2008-06-14 19:04:44 +0000 +++ util/i386/pc/grub-install.in 2008-06-17 17:07:08 +0000 @@ -234,7 +234,10 @@ # The order in this list is critical. Be careful when modifiing it. modules="$modules $fs_module $partmap_module biosdisk $devabstraction_module" -$grub_mkimage --output=${grubdir}/core.img --prefix=`make_system_path_relative_to_its_root ${grubdir}`/ $modules || exit 1 +$grub_mkimage --output=${grubdir}/core.img \ + --directory="${pkglibdir}" \ + --prefix=`make_system_path_relative_to_its_root ${grubdir}`/ \ + $modules || exit 1 # Now perform the installation. $grub_setup --directory=${grubdir} --device-map=${device_map} \ --MP_/LMMlUVjsuv7GqrYICMXuooL--