grub-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] improve error messages in grub-setup


From: Pavel Roskin
Subject: Re: [PATCH] improve error messages in grub-setup
Date: Sun, 03 May 2009 17:02:33 -0400

On Sun, 2009-05-03 at 22:54 +0200, Robert Millan wrote:
> On Sun, May 03, 2009 at 01:04:33PM -0400, Pavel Roskin wrote:
> > On Sun, 2009-05-03 at 18:55 +0200, Robert Millan wrote:
> > 
> > > Agreed.  It's no harm to add --force for users who are stuck in such 
> > > layouts.
> > > 
> > > Here's a new patch.
> > 
> > I don't see the "force" variable affecting anything in setup() other
> > than output.
> 
> There is, see:
> 
> +  grub_util_warn ("Embedding is not possible.  GRUB can only be installed in 
> this "
> +                 "setup by using blocklists.  However, blocklists are 
> UNRELIABLE and "
> +                 "its use is discouraged.");
> +  if (! force)
> +    grub_util_error ("If you really want blocklists, use --force.");
> 
> The first is always displayed, the latter only when we don't have --force

Sorry, I missed the side effect of grub_util_error().  Never mind.

> > grub_util_warn() doesn't set any flag that there have been
> > warnings.
> 
> That's an option, too.  But it would preclude the possibility of issuing
> warnings for which we don't want to require --force (i.e. lesser evils).
> I wonder if that would be a problem?

We can decide it when we know what the lesser evils are.  I'm fine with
your patch.

-- 
Regards,
Pavel Roskin




reply via email to

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