From owner-freebsd-current@FreeBSD.ORG Tue Nov 5 17:53:52 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D37428C1; Tue, 5 Nov 2013 17:53:52 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3FBF729EB; Tue, 5 Nov 2013 17:53:51 +0000 (UTC) Received: from smtp.fisglobal.com ([10.132.206.17]) by ltcfislmsgpa02.fnfis.com (8.14.5/8.14.5) with ESMTP id rA5Hro3l024490 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Tue, 5 Nov 2013 11:53:50 -0600 Received: from LTCFISWMSGMB21.FNFIS.com ([169.254.1.152]) by LTCFISWMSGHT06.FNFIS.com ([10.132.206.17]) with mapi id 14.03.0158.001; Tue, 5 Nov 2013 11:53:49 -0600 From: "Teske, Devin" To: Nathan Whitehorn Subject: Re: [CFT] Kernel-Selection Enhancemnt to Boot Menu Thread-Topic: [CFT] Kernel-Selection Enhancemnt to Boot Menu Thread-Index: AQHO15puDLYKYE3XWU64lusTqAzYBQ== Date: Tue, 5 Nov 2013 17:53:48 +0000 Message-ID: <0060B581-2639-4B84-A0E1-84B13EAD7ABF@fisglobal.com> References: <62E3FA11-E6E1-4072-9226-993FF83EBC0D@fisglobal.com> <5279258F.8030000@pix.net> <52792AD9.2010200@freebsd.org> In-Reply-To: <52792AD9.2010200@freebsd.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [10.132.253.120] Content-Type: multipart/signed; boundary="Apple-Mail=_83DC9512-BA9A-4650-A06B-FDB259A6D728"; protocol="application/pgp-signature"; micalg=pgp-sha512 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.10.8794, 1.0.431, 0.0.0000 definitions=2013-11-05_07:2013-11-05,2013-11-05,1970-01-01 signatures=0 Cc: Devin Teske , " Current" , "Teske, Devin" , Kurt Lidl X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Devin Teske List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Nov 2013 17:53:53 -0000 --Apple-Mail=_83DC9512-BA9A-4650-A06B-FDB259A6D728 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On Nov 5, 2013, at 9:28 AM, Nathan Whitehorn wrote: > On 11/05/13 11:06, Kurt Lidl wrote: >> >>> You can try enabling the beastie menu on sparc64 by editing >>> /boot/loader.rc: >>> >>> === Change #1 in /boot/loader.rc to enable beastie menu === >>> >>> Find: >>> \ Reads and processes loader.conf variables >>> \ NOTE: Change to `initialize' if you enable the below boot menu >>> start >>> >>> Change "start" to "initialize" as shown below: >>> \ Reads and processes loader.conf variables >>> \ NOTE: Change to `initialize' if you enable the below boot menu >>> initialize >>> >>> === Change #2 in [same file] to enable beastie menu === >>> >>> Find: >>> \ Uncomment to enable boot menu >>> \ include /boot/beastie.4th >>> \ beastie-start >>> >>> Uncomment "beastie-start" as shown below: >>> \ Uncomment to enable boot menu >>> \ include /boot/beastie.4th >>> beastie-start >>> >>> ====== >>> >>> If you find that making those two trivial changes, that you are able >>> to load >>> the menu... then maybe it's time for us to start thinking about >>> enabling the >>> beastie menu by-default for the sparc64 architecture. >> >> Seems to work just fine. I tested by booting, toggling through the >> different kernel choices (/boot/kernel/kernel /boot/kernel.old/kernel) >> and both worked correctly. >> >> (Although I uncommented the "include /boot/beastie.4th" line too.) >> >>> Does anybody else have any thoughts on enabling it for sparc64? >> >> Well, I'd probably be in support of this change - it sure beats having >> to interrupt the normal boot sequence and typing: >> unload >> load /boot/kernel.old/kernel >> load /boot/kernel.old/opensolaris.ko >> load /boot/kernel.old/zfs.ko >> boot >> When I need to get back to the prior version of the kernel. > > Is there a way to make this work even without the beastie menu? A way to > interrupt the boot before kernel load (even holding down a key) would be > really valuable, even on systems that do not support fancy terminals > with colors and such. Nathan, Can you drop into your /boot/loader.conf: loader_delay=3 And reboot? I'm trying to think how we could use that to our advantage. I'm interested in creative applications thereof. For more skinny on what that does... "man delay.4th", it spills the beans on a "delayed command execution" module that I added a few years ago. For example... Here's my idea of making things easier on the user that wants to load a different kernel, but *without* using a menu... 1. We have loader_delay default to 3 2. Dots are displayed for 3 seconds before we do anything (like load a kernel) 3. User presses ENTER during those 3 seconds, and the delay is truncated 4. User presses Ctrl-C during those 3 seconds (or ESC) and they get a prompt (before the kernel has loaded). Then here's what I would do (as to not have to load separate modules)... set kernel=kernel.old boot + The forth code figures out that the kernel is in /boot + If loader.conf had opensolaris_load=YES and + zfs_load=YES then the forth code also loads those from kernel.old But let's say loader.conf was bare, you could do: set kernel=kernel.old set opensolaris_load=YES set zfs_load=YES boot NB: The reason this works is because you would not call "start" in your loader.rc (which actually loads things), but instead "initialize" (which only loads loader.conf et. al.) followed by dc_execute to fire off "autoboot" in 3 seconds (with the aforementioned allowed interrupt ability). Is that what you were thinking? Will that work? Bonus: It would be extremely trivial to implement. -- Devin _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. --Apple-Mail=_83DC9512-BA9A-4650-A06B-FDB259A6D728 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJSeTCrAAoJEKrMn5R9npq5aJsIAMbTgiS3JvLpB5NGPDS7yFeg A/6rA9/KpGGqMPe6tm2W0sFH8Xm0Vi+mAZrgYa/nqeak/fZyoYedjYwawZg39Kdz Htq85fNJ40Y6+E6+ePYZtLbb72AYn2hFQQMlA9ysicpNC8B5Y/5UAcR4skE8pbl7 HaPJpL0KEvMuPlHag+nuKfRDhZKvgyfAehFRfGpj5igPuToRnjN+soWvDEI9o0TR 4fC3uhVU0wrGrUtKNsd/HNm2YG45nDnlnOqvSu3lhCu7IVLHbeAfQbQ6YJigXLW/ GgU7sHP830lb95X2Gx1wH7GeaiB1q0OI2jD306QhNAe4VRgbSi0kcBVWNe5SIM8= =mN10 -----END PGP SIGNATURE----- --Apple-Mail=_83DC9512-BA9A-4650-A06B-FDB259A6D728--