Bug 137671

Summary: [patch][request] enhance beastie.4th: possibility to display message, possibility to choose serial console
Product: Base System Reporter: Michael Leun <michael.leun>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Only Me Keywords: patch
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Michael Leun 2009-08-11 15:10:02 UTC
I created an custom install disk which installs without any interaction. You do NOT want to boot this by error on a wrong machine.
So I wanted to
- turn off the 10 secs countdown to autoboot (easily done with autoboot_delay=NO)
- display a big fat warning message stating that this disk may shoot into your foot

Additionaly I wanted a simple possibility to boot with console=comconsole.

So I added:

- you may specify  beastie_message="something" e.g. in loader.conf
If this environment variable is defined, the text "Welcome to FreeBSD!" is displayed 2 lines up then the usual place leading to 2 lines room for an message.

The text in the environment variable is displayed between the greeting and the menue.

e.g. beastie_message="ESC[1;7mATTENTION! This CD will format disks andESC[7;4Hinstall without further interaction!ESC[1;0m" 

- you may specify beastie_offerserial=YES
If you do so, you get an additional menue entry which sets console=comconsole and boots.

Fix: patch attached

Patch attached with submission follows:
How-To-Repeat: not applicable
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:44 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 2 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:37:06 UTC
Keyword: 

    patch
or  patch-ready

– in lieu of summary line prefix: 

    [patch]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>