Bug 137671 - [patch][request] enhance beastie.4th: possibility to display message, possibility to choose serial console
Summary: [patch][request] enhance beastie.4th: possibility to display message, possibi...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2009-08-11 15:10 UTC by Michael Leun
Modified: 2022-10-17 12:37 UTC (History)
0 users

See Also:


Attachments
file.diff (1.41 KB, patch)
2009-08-11 15:10 UTC, Michael Leun
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>