All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Roskin <proski@gnu.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] Support FreeBSD in osdetect.lua
Date: Tue, 21 Jul 2009 12:02:59 -0400	[thread overview]
Message-ID: <1248192179.27068.18.camel@mj> (raw)
In-Reply-To: <d7ead6de0907210645g58c9b157t1e16dc4b94e96b31@mail.gmail.com>

On Tue, 2009-07-21 at 15:45 +0200, Vladimir 'phcoder' Serbinenko wrote:
> Support FreeBSD on both UFS and ZFS. Requires my zfs.mod for zfs and
> my ufs uuid patch for UFS

> +     grub.add_menu (header .. normal .. footer, title)
> +     grub.add_menu (header .. " single" .. normal .. footer,
> +                   title .. " (single)")
> +     grub.add_menu (header .. " verbose" .. normal .. footer,
> +                   title .. " (verbose)")
> +     grub.add_menu (header .. noacpi .. footer,
> +                   title .. " (without ACPI)")
> +     grub.add_menu (header .. noacpi .. safe .. footer,
> +                   title .. " (safe mode)")

I hate to be "Mister No", but I think this change is not suitable for
the generic osdetect.lua.  Most users don't have problems with FreeBSD
not working on their hardware.  Getting five menu entries for different
options is too much.  It may be OK for a FreeBSD installer, but not for
the generic script that also detects other OSes.

A reasonable middle ground would be to have one entry called "safe mode"
to would lead to a menu offering single mode, disabling ACPI, disabling
whatever else is potentially problematic.  I think all entries under
"safe mode" can enable extra verbosity.

The implementation could remove the original menu, or it could insert
entries immediately below "safe mode".  I don't know if it's possible,
but it could be useful.

Actually, I don't want osdetect.lua to be overengineered and overloaded
with intimate knowledge of different OSes.  It's an example for others
to extend, not a complete solution.

-- 
Regards,
Pavel Roskin



  reply	other threads:[~2009-07-21 16:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-21 13:45 [PATCH] Support FreeBSD in osdetect.lua Vladimir 'phcoder' Serbinenko
2009-07-21 16:02 ` Pavel Roskin [this message]
2009-07-21 20:17   ` Vladimir 'phcoder' Serbinenko
2009-07-21 21:25     ` Pavel Roskin
2009-07-21 21:50       ` Vladimir 'phcoder' Serbinenko
2009-07-22 17:51         ` Robert Millan
2009-07-22 18:02           ` Vladimir 'phcoder' Serbinenko
2009-07-25 16:10             ` Robert Millan
2009-07-25 16:46               ` Vladimir 'phcoder' Serbinenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1248192179.27068.18.camel@mj \
    --to=proski@gnu.org \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.