Project

General

Profile

Feature #7839

uts: implement boot environment support

Added by Toomas Soome about 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
kernel
Start date:
2017-02-03
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

Check if the boot loader is providing its environment as module, if so, prepare the property processing.

We need to take care of properties in two locations/cases. First, the early boot (dboot/boot) needs to access properties to perform the early boot tasks. For second, the fakebop.c should pick up the properties provided by boot loader and prepare them for being populated as kernel properties. In both cases, we always prefer command line properties (-B name=value) over environment.

As the boot loader environment is also used for boot loader purposes, there are always names only meaningful for boot loader, or only early boot and we do not necessarily want to translate such names to kernel properties. For such reason, the blacklist mechanism is needed, so we can exclude the known cases and import anything else.

History

#1

Updated by Electric Monk almost 3 years ago

  • % Done changed from 90 to 100
  • Status changed from In Progress to Closed

git commit f289ce6eb03db0584699ec4fed88ef795a33dd79

commit  f289ce6eb03db0584699ec4fed88ef795a33dd79
Author: Toomas Soome <tsoome@me.com>
Date:   2017-04-22T03:09:35.000Z

    7839 uts: implement boot environment support
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Reviewed by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
    Approved by: Joshua M. Clulow <josh@sysmgr.org>

Also available in: Atom PDF