grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] grub-probe -t prefix, fix update-grub_lib for Cygwin


From: Robert Millan
Subject: Re: [PATCH] grub-probe -t prefix, fix update-grub_lib for Cygwin
Date: Tue, 22 Jul 2008 23:52:00 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

On Sun, Jul 20, 2008 at 02:40:14PM +0200, Christian Franke wrote:
> The shell function make_system_path_relative_to_its_root() does not work 
> on Cygwin due to path mapping (e.g. /boot/grub/ is actually 
> /cygwin/boot/grub).
> 
> This patch adds '-t prefix' to grub-probe. It prints result from 
> grub_get_prefix() which is already extended for Cygwin (svn rev 1584).
> The result is used in make_system_path_relative_to_its_root(). This 
> keeps the platform dependent code in getroot.c.
> 
> Christian
> 
> 2008-07-20    Christian Franke  <address@hidden>
> 
>       * util/grub-probe.c (enum): Add PRINT PREFIX.
>       (probe): Add PRINT_PREFIX, prints result of
>       grub_get_prefix ().
>       (usage): Add `prefix' to `-t' usage text.
>       Add some '\n' to avoid excess long lines.
>       (main): Add check for `-t prefix' option.

This is different than the usual grub-probe usage in that it doesn't operate
on a device.  Perhaps it would make sense to add the functionality you want in
a separate utility?

I have an increasing feeling that grub-probe is becoming bloated (though I
admit, this is mostly my fault)

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What good is a phone call… if you are unable to speak?
(as seen on /.)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]