Re: grub-install --root-directory=/mnt /dev/sda1 fails

2009-07-08 Thread Felix Zielcke
Am Samstag, den 04.07.2009, 22:09 +0200 schrieb Robert Millan: > On Wed, Jul 01, 2009 at 04:33:25PM +0200, Felix Zielcke wrote: > > Am Montag, den 01.06.2009, 21:39 +0200 schrieb Felix Zielcke: > > > Am Mittwoch, den 06.05.2009, 17:12 +0200 schrieb Vladimir 'phcoder' > > > Serbinenko: > > > > Don't

Re: grub-install --root-directory=/mnt /dev/sda1 fails

2009-07-04 Thread Robert Millan
On Wed, Jul 01, 2009 at 04:33:25PM +0200, Felix Zielcke wrote: > Am Montag, den 01.06.2009, 21:39 +0200 schrieb Felix Zielcke: > > Am Mittwoch, den 06.05.2009, 17:12 +0200 schrieb Vladimir 'phcoder' > > Serbinenko: > > > Don't we already have a function which transforms host directory into > > > gr

Re: grub-install --root-directory=/mnt /dev/sda1 fails

2009-07-01 Thread Felix Zielcke
Am Montag, den 01.06.2009, 21:39 +0200 schrieb Felix Zielcke: > Am Mittwoch, den 06.05.2009, 17:12 +0200 schrieb Vladimir 'phcoder' > Serbinenko: > > Don't we already have a function which transforms host directory into > > grub > > directory? AFAIR we have. > > There's just the shell function in

Re: [PATCH] Re: grub-install --root-directory=/mnt /dev/sda1 fails

2009-06-12 Thread Felix Zielcke
Am Freitag, den 12.06.2009, 12:21 -0400 schrieb Pavel Roskin: > On Fri, 2009-06-12 at 12:28 +0200, Felix Zielcke wrote: > > > Ok here's a new one which compiles without warnings. > > I suggest that whenever a patch is published, it comes with a detailed > description. Surely, it could be gathere

Re: [PATCH] Re: grub-install --root-directory=/mnt /dev/sda1 fails

2009-06-12 Thread Pavel Roskin
On Fri, 2009-06-12 at 12:28 +0200, Felix Zielcke wrote: > Ok here's a new one which compiles without warnings. I suggest that whenever a patch is published, it comes with a detailed description. Surely, it could be gathered by rereading the thread, but I think it's not sufficient for two reasons

Re: [PATCH] Re: grub-install --root-directory=/mnt /dev/sda1 fails

2009-06-12 Thread Felix Zielcke
Am Freitag, den 12.06.2009, 01:25 +0200 schrieb Felix Zielcke: > Am Freitag, den 12.06.2009, 01:21 +0200 schrieb Felix Zielcke: > > Am Donnerstag, den 11.06.2009, 01:00 +0200 schrieb Felix Zielcke: > > > Am Dienstag, den 09.06.2009, 23:51 +0200 schrieb Vladimir 'phcoder' > > > Serbinenko: > > > >

Re: [PATCH] Re: grub-install --root-directory=/mnt /dev/sda1 fails

2009-06-11 Thread Felix Zielcke
Am Freitag, den 12.06.2009, 01:21 +0200 schrieb Felix Zielcke: > Am Donnerstag, den 11.06.2009, 01:00 +0200 schrieb Felix Zielcke: > > Am Dienstag, den 09.06.2009, 23:51 +0200 schrieb Vladimir 'phcoder' > > Serbinenko: > > > > > + > > > +char *grub_make_system_path_relative_to_its_root (char *path

Re: [PATCH] Re: grub-install --root-directory=/mnt /dev/sda1 fails

2009-06-11 Thread Felix Zielcke
Am Donnerstag, den 11.06.2009, 01:00 +0200 schrieb Felix Zielcke: > Am Dienstag, den 09.06.2009, 23:51 +0200 schrieb Vladimir 'phcoder' > Serbinenko: > > > + > > +char *grub_make_system_path_relative_to_its_root (char *path) > > +{ > > + > > + struct stat st; > > + char buf[500], buf2[500]; > >

Re: [PATCH] Re: grub-install --root-directory=/mnt /dev/sda1 fails

2009-06-10 Thread Felix Zielcke
Am Dienstag, den 09.06.2009, 23:51 +0200 schrieb Vladimir 'phcoder' Serbinenko: > + > +char *grub_make_system_path_relative_to_its_root (char *path) > +{ > + > + struct stat st; > + char buf[500], buf2[500]; > Use malloc instead of static allocation Changed. > + p = strrchr (buf, '/'); >

Re: [PATCH] Re: grub-install --root-directory=/mnt /dev/sda1 fails

2009-06-09 Thread Vladimir 'phcoder' Serbinenko
2009-06-08 Felix Zielcke * include/grub/util/hostdisk.c (grub_make_system_path_relative_to_its_root): New function prototype. * util/hostdisk.c (grub_make_system_path_relative_to_its_root): New function. * util/i386/pc/grub

[PATCH] Re: grub-install --root-directory=/mnt /dev/sda1 fails

2009-06-08 Thread Felix Zielcke
Am Montag, den 01.06.2009, 21:39 +0200 schrieb Felix Zielcke: > Am Mittwoch, den 06.05.2009, 17:12 +0200 schrieb Vladimir 'phcoder' > Serbinenko: > > Don't we already have a function which transforms host directory into > > grub > > directory? AFAIR we have. > > There's just the shell function in

Re: grub-install --root-directory=/mnt /dev/sda1 fails

2009-06-01 Thread Felix Zielcke
Am Mittwoch, den 06.05.2009, 17:12 +0200 schrieb Vladimir 'phcoder' Serbinenko: > Don't we already have a function which transforms host directory into > grub > directory? AFAIR we have. There's just the shell function in grub-mkconfig_lib.in Here's now a patch wich implements it in util/hostdisk.

Re: grub-install --root-directory=/mnt /dev/sda1 fails

2009-05-06 Thread Vladimir 'phcoder' Serbinenko
On Wed, May 6, 2009 at 4:31 PM, Felix Zielcke wrote: > Hello list, > > grub-install with some --root-directory option and a partition given as > setup device and not a whole disk doestn't work, i.e. blocklists are > used. > grub-setup fails that it can't find the core.img. > > The problem are the

Re: grub-install --root-directory

2005-11-25 Thread Yoshinori K. Okuji
On Wednesday 23 November 2005 04:55 am, Hollis Blanchard wrote: > Upon further inspection, this part of grub-install is identical to the > x86 grub-install behavior. On both architectures, > grub-install --root-directory /foo > will install *.mod, *.lst, and the output of grub-mkimage into >

Re: grub-install --root-directory

2005-11-22 Thread Hollis Blanchard
On Nov 16, 2005, at 10:17 PM, Mike Small wrote: 2. The script seems to assume that /boot/grub/ will be where my boot partition is mounted. This was mentioned in the original mail, and I could set things up this way, but in my opinion it would be more natural to be able to specify the install di