grub-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Support FreeBSD in osdetect.lua


From: Pavel Roskin
Subject: Re: [PATCH] Support FreeBSD in osdetect.lua
Date: Tue, 21 Jul 2009 12:02:59 -0400

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 via email to

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