Project

General

Profile

Feature #7838

loader: pass loader environment to kernel as module

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

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

To simplify dealing with properties, we can just pack the loader environment as virtual module an pass it to kernel as name=value pairs. To identify the module, we set the name and type for module as:

name=environment
type=environment

so the kernel can recognize this module and use it. For property processing, the properties passed on kernel command line via -B, will always take precedence over values in environment. This way the operator can always override the values in environment.

To simplify the distinction, if the environment module is supported or not, we do implement it only via multiboot2 protocol.

#1

Updated by Electric Monk almost 4 years ago

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

git commit 76608ff7a54afda798e7fdc98681fb6d37322109

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

    7838 loader: pass loader environment to kernel as module
    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