loader: pass loader environment to kernel as module
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:
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.
Updated by Electric Monk over 5 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
commit 76608ff7a54afda798e7fdc98681fb6d37322109 Author: Toomas Soome <firstname.lastname@example.org> Date: 2017-04-22T03:09:34.000Z 7838 loader: pass loader environment to kernel as module Reviewed by: Robert Mustacchi <email@example.com> Reviewed by: Hans Rosenfeld <firstname.lastname@example.org> Approved by: Joshua M. Clulow <email@example.com>