[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Fix grub-install to use prefix for modules dir
From: |
Colin D Bennett |
Subject: |
Re: [PATCH] Fix grub-install to use prefix for modules dir |
Date: |
Tue, 17 Jun 2008 13:04:04 -0700 |
On Tue, 17 Jun 2008 15:46:12 -0400
Pavel Roskin <address@hidden> wrote:
> On Tue, 2008-06-17 at 10:51 -0700, Colin D Bennett wrote:
> > 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.
>
> The default is GRUB_LIBDIR, which is set to pkglibdir at the compile
> time. Your patch would have no effect if anything is compiled and
> installed properly.
>
> Maybe you are trying to change prefix during "make install"? That's
> not the best approach. DESTDIR should be used to install to a
> temporary location.
>
> Or maybe you have some other scenario in mind?
I'm not sure. All I know is that I did
./configure --prefix=/home/cdb/bin/grub && make && make install,
then I tried to do /home/cdb/bin/grub/bin/grub-install /media/sdc1 and
grub-mkimage was getting called with /usr/local/lib/something. Since I
specified --prefix to configure, I expect grub never ever to refer
to /usr/local. This patch fixed my problem.
Colin