Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 May 2011 11:03:10 -0700
From:      Devin Teske <dteske@vicor.com>
To:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Cc:        mwm@mired.org, Mike Meyer , Warner Losh , Freddie Cash , Alexander Leidinger , Olivier SMEDTS , Warren Block , Doug Barton , Artem Belevich , Artem Belevich , Dieter BSD , Jason Hellenthal , Jason Hellenthal , Devin Teske , Damien Fleuriot , Zhihao Yuan , Paul Schenkeveld , Mehmet Erol Sanliturk , Dave Robison
Subject:   [UPDATE] New Boot-Loader Menu -- version 1.1
Message-ID:  <9B387DE4-6866-4208-A8FC-6516D651F6A5@vicor.com>
Resent-Message-ID: <201105022023.p42KN0cq021781@SCSFISLTC02>

next in thread | raw e-mail | index | archive | help
NOTE: Apologies if this comes through multiple times. I'm having problems g=
etting this e-mail to appear on the list.

Hi again, fellow hackers,

First, I'd like to thank all of you for the input and suggestions that you =
provided.

Things are moving fast and nimble here. With over 1,000 lines of code chang=
ed (in one single 24-hour period), I'd like to announce an update to my adv=
anced boot-loader menu. This version (1.1) attempts to address all communit=
y requests.

You can grab the updated code here:
http://druidbsd.sourceforge.net/
	or
http://druidbsd.sourceforge.net/download/loader_menu-1.1.tgz

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D

Below is an itemized list of things addressed in this latest release (compl=
ete with attribution to the person(s) whom made the request):

Mike Meyer: Individual menuitem hotkeys have been implemented. (ENTER =3D b=
oot, a =3D ACPI, v =3D verbose, s =3D single-user, m =3D safe-mode, esc =3D=
 escape to loader prompt).

Paul Schenkeveld, Damien Fleuriot, Zhihao Yuan, and Warner Losh: Both numbe=
rs and hotkeys are supported.

Freddie Cash: Customize beastie logo with loader.conf(5) variables (see bel=
ow -- also documented in package description).

Alexander Leidinger: When loader_color is enabled (see loader.conf(5) varia=
bles below -- also documented in package description), the hotkeys/mnemonic=
s are bolded (sorry, underline is currently not implemented correctly in lo=
ader(8)). When loader_color is disabled (the default), the hotkeys/mnemonic=
s appear in [square-brackets] (e.g. [ENTER], [A], [V], [M], [S], and [Esc])=
. Also, when loader_color is enabled, the numerical prefixes are also made =
bold (when loader_color is disabled, the numerical prefixes are displayed n=
ormally -- without square-brackets).

Olivier SMEDTS: All loader.conf(5) variables that are supported by the curr=
ent loader are now supported, including `loader_logo' and many many more (s=
ee loader.conf(5) variables below -- also documented in package description=
).

Warren Block and Doug Barton: With respect to ANSI underline being a more s=
tandard UI choice for hotkey/mnemonics... sorry, ANSI underline is currentl=
y not implemented correctly in loader(8) as of RELENG_8 that I've tried. Go=
ing with ANSI bold when loader_color is enabled and square-brackets by defa=
ult.

Artem Belevich: The default layout should meet all VT100 requirements (that=
 is to explain, that "out of the box" with no additional customizations in =
loader.conf(5), the menu should meet VT100 standards).

Dieter BSD: In the "out of box" configuration (assuming the user doesn't ha=
ve any existing customizations in loader.conf(5)), all of your previously-m=
entioned decrees have been met (no graphics, no color, no assumptions, etc.=
 etc.). The only requirements are that you have an 80x24 screen and a basic=
 keyboard with either letters 1-7 or A-Z+ENTER (or both).

Jason Hellenthal (aka jhell): The ability to display the loader version at =
the bottom-right edge of the screen (right-justified) is enabled. However, =
currently the loader does not export the "loader_version" environment varia=
ble, and thus nothing will be displayed until then. Though, to test this fe=
ature, you can simply add a line to loader.conf(5) (see the loader.conf(5) =
variables below -- also documented in the package description).

All: The initial delay introduced before loading the menu can be disabled/c=
ustomized (see loader.conf(5) variables below -- also documented in package=
 description).

Mehmet Erol Sanliturk: You can customize the default 10-second menu timeout=
 by adding `loader_menu_timeout' to loader.conf(5) (see the loader.conf(5) =
variables below -- also documented in the package description). You had sta=
ted a desire to increase the timeout to 255. Minor note: due to limited scr=
een real-estate, the countdown timer will continue to display "9 seconds" u=
ntil the internal timer gets to a number that is below 9 (however, this sho=
uld still meet your needs of dramatically increasing the timeout delay).

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D

Here's the package description (+DESC: attainable via either `tar zxfO load=
er_menu-X.Y.tgz +DESC | less' or `pkg_info -dx loader_menu | less'):

loader_menu is a modern boot loader for the FreeBSD Operating System.

The following options can be added to loader.conf(5) to customize the behav=
ior
and/or appearance of the boot menu/process:

loader_color=3D"YES"

	Enables the use of color in the boot menu. Not all devices support the
	display of ANSI color codes, and so the default is to not use them.

loader_logo=3D"..."

	Selects which FreeBSD logo to display. Valid values are "beastie",
	"beastiebw", "fbsdbw", "orb", or "orbbw". An invalid value (such as
	"none") will disable the display of any logo. The logo is displayed to
	the right of the dynamic menu.

loader_logo_x=3D"N"
loader_logo_y=3D"N"

	Column (x) and row (y) placement of FreeBSD" mascot placed to the right
	of the dynamic menu. Defaults are 46 (x) and 4 (y).

loader_brand=3D"..."

	Selects the BSD brand to display. Valid values are "fbsd" (displays
	"FreeBSD") and "dbsd" (displays "DruidBSD"). An invalid value (such as
	"none") will disable the display of any brand. The brand is displayed
	above the dynamic menu. The default is "fbsd".

loader_brand_x=3D"N"
loader_brand_y=3D"N"

	Column (x) and row (y) placement of the brand text ("FreeBSD") placed
	above the dynamic menu. Defaults are 2 (x) and 1 (y).

loader_menu_timeout=3D"N"

	Timeout in seconds (N) until the menu aborts, causing the system to
	autoboot with the displayed options. Default is 10 seconds. Pressing
	any key during the duration will cancel the timeout.

	You can use values as high as you like, however due to limited screen
	real-estate (at a mere 24 rows x 80 columns for compatibility reasons)
	the counter will simply display "9 seconds" while counting down
	internally. Once the final countdown is upon you, the numbers will
	finally start to move. A future version could overcome this limitation.

loader_menu_timeout_x=3D"N"
loader_menu_timeout_y=3D"N"

	Column (x) and row (y) placement of the menu timeout count-down text.
	Defaults are 4 (x) and 23 (y).

loader_password=3D"..."

	Sets a password (up to 16 characters long) that is required to be
	entered before the system is allowed to boot. Default is to not ask
	for a password if unset or NULL.

loader_version=3D"..."

	Overrides the display of the loader's built-in version. Displays the
	text at the bottom-right edge of the screen (underneath beastie). The
	version text is right-justified when displayed.

	The current default is to not display any text. However, as-of
	RELENG_9, there may be plans to modify loader(8) to export this
	variable for display during the boot process, displaying the version
	of boot-loader for trouble-shooting purposes.

loader_version_x=3D"N"
loader_version_y=3D"N"

	Column (x) and row (y) placement of the loader's built-in version at
	the bottom-right edge of the screen. Defaults are 80 (x) and 24 (y).
	The version text is right-justified with the text ending at (x,y).

dc_seconds=3D"N"

	By default, loader_menu introduces a 2-second delay before launching
	the menu for improved debugging abilities. This option customizes the
	duration (setting it to zero disables the delay). However, it is worth
	noting that pressing ENTER anytime during the delay will preempt the
	duration, launching the menu immediately upon keypress.



WWW: http://druidbsd.sourceforge.net/

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D

Once again, you can grab the updated code here:
http://druidbsd.sourceforge.net/
	or
http://druidbsd.sourceforge.net/download/loader_menu-1.1.tgz

--=20
Cheers,
Devin Teske


-> LEGAL DISCLAIMER <-
This message  contains confidential  and proprietary  information
of the sender,  and is intended only for the person(s) to whom it
is addressed. Any use, distribution, copying or disclosure by any
other person  is strictly prohibited.  If you have  received this
message in error,  please notify  the e-mail sender  immediately,
and delete the original message without making a copy.

-> FUN STUFF <-
-----BEGIN GEEK CODE BLOCK-----
Version 3.12
GAT/CS/B/CC/E/IT/MC/M/MU/P/S/TW d+(++) s: a- C+++@$ UB++++$ P++++@$ L++++$ =
E-
W+++ N? o? K? w@ O M++$ V- PS+>++ PE@ Y+ PGP-> t(+) 5? X(+) R(-) tv+ b+>++ =
DI+
D+(++) G++ e>++++ h r+++ z+++
------END GEEK CODE BLOCK------
http://www.geekcode.com/

-> END TRANSMISSION <-

_____________

The information contained in this message is proprietary and/or confidentia=
l. If you are not the intended recipient, please: (i) delete the message an=
d all copies; (ii) do not disclose, distribute or use the message in any ma=
nner; and (iii) notify the sender immediately. In addition, please be aware=
 that any message addressed to our domain is subject to archiving and revie=
w by persons other than the intended recipient. Thank you.
_____________



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9B387DE4-6866-4208-A8FC-6516D651F6A5>