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 <email@example.com> Date: 2017-04-22T03:09:34.000Z 7838 loader: pass loader environment to kernel as module Reviewed by: Robert Mustacchi <firstname.lastname@example.org> Reviewed by: Hans Rosenfeld <email@example.com> Approved by: Joshua M. Clulow <firstname.lastname@example.org>