Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MTLmI-0002vS-TM for mharc-grub-devel@gnu.org; Tue, 21 Jul 2009 16:17:34 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MTLmI-0002u4-1j for grub-devel@gnu.org; Tue, 21 Jul 2009 16:17:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MTLmD-0002fB-Gq for grub-devel@gnu.org; Tue, 21 Jul 2009 16:17:33 -0400 Received: from [199.232.76.173] (port=52703 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MTLmD-0002ez-EA for grub-devel@gnu.org; Tue, 21 Jul 2009 16:17:29 -0400 Received: from mail-bw0-f219.google.com ([209.85.218.219]:54126) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MTLmC-0008K6-U0 for grub-devel@gnu.org; Tue, 21 Jul 2009 16:17:29 -0400 Received: by bwz19 with SMTP id 19so3519950bwz.42 for ; Tue, 21 Jul 2009 13:17:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=tu7yUSBFbKw+YFMMIlYGyak3CBZXLb6UTm0643b4uoo=; b=LKDuRuDH2cMNir5PfwTlRYW6yW4vUUxWBPtP8MwWowE54m09UinIAlYdPx7B2QutVf 1Or/doX127MO9MjWV6+LxMDOKr4R2ghC5JLYEex7UnVENUJ24seFxM7Vj+VhU/x6PSB9 nXzxGHnYWgdEoWD13s3S8EaCwNZEiAmDrEZjY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=dJKmF9VwW0PpQPOtsr2T8gVrcn3t03gfo4sihVJkbiCBICrTPecCQvs7rK9HBb6MeR lmc1JZN0BuUAsXtYOBPDKnjJM4D7JYwEImXxCdMGpaqpQHUFui8oflH1a/WdfQ4KZ5U4 Bvf45r3YF2VYeYijX7EPJL9N06PtEz2bfrcIA= MIME-Version: 1.0 Received: by 10.204.103.209 with SMTP id l17mr53268bko.152.1248207445172; Tue, 21 Jul 2009 13:17:25 -0700 (PDT) In-Reply-To: <1248192179.27068.18.camel@mj> References: <1248192179.27068.18.camel@mj> Date: Tue, 21 Jul 2009 22:17:24 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] Support FreeBSD in osdetect.lua X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jul 2009 20:17:34 -0000 On Tue, Jul 21, 2009 at 6:02 PM, Pavel Roskin wrote: > 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 > >> + =A0 =A0 grub.add_menu (header .. normal .. footer, title) >> + =A0 =A0 grub.add_menu (header .. " single" .. normal .. footer, >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 title .. " (single)") >> + =A0 =A0 grub.add_menu (header .. " verbose" .. normal .. footer, >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 title .. " (verbose)") >> + =A0 =A0 grub.add_menu (header .. noacpi .. footer, >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 title .. " (without ACPI)") >> + =A0 =A0 grub.add_menu (header .. noacpi .. safe .. footer, >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 title .. " (safe mode)") > > I hate to be "Mister No", but I think this change is not suitable for > the generic osdetect.lua. =A0Most users don't have problems with FreeBSD > not working on their hardware. =A0Getting five menu entries for different > options is too much. =A0It 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. =A0I think all entries under > "safe mode" can enable extra verbosity. > Actually this menu is done to match the default one of FreeBSD loader. I'm not a FreeBSD expert so I prefered to stick to the same menu as default bootloader. > The implementation could remove the original menu, or it could insert > entries immediately below "safe mode". =A0I don't know if it's possible, > but it could be useful. > Bean proposed something like this but I don't know his progress > Actually, I don't want osdetect.lua to be overengineered and overloaded > with intimate knowledge of different OSes. =A0It's an example for others > to extend, not a complete solution. We put it into our repository this means that we accept improvements. I also think that there will be distributions similar to Super GRUB Disk and other recovery tools based on osdetect.lua. Unless we provide a good reference osdetect.lua there will be a bitrot between such distributions every one neglecting some OSes > > -- > Regards, > Pavel Roskin > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > --=20 Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git