Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[initrd] Pass device-specific environment variables to initrd. JB#54875
The problem is unable to set device-specific environment variable
in both normal and recovery initrd environment
without edit droid-hal-device-img-boot.inc. To resolve
this issue we can use droid-hal-$DEVICE-img-boot.spec and define macro "initrd_env_vars"
for example
%define initrd_env_vars \
FOO=bar\
XYZ=123\
%{nil}
and then handle it in initrd spec to forward variables to /etc/sysconfig/init
Also we need to add /etc/sysconfig/init to allexport section of recovery-init
so that variables appeared in recovery environment.
Also we need to add allexport section to root-mount script for appear
variables in boot initrd environment.- Loading branch information
1 parent
17cf892
commit dc15604
Showing
3 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters