This commit adds support for the extra_boot_params install value. The
extra_boot_params install value provides a mechanism to pass custom boot
arguments into the main sysroot disk kernel options. The intent is to
allow for custom, hardware-specific boot option(s) for a given subcloud.
Note: these extra options are only applied for the post-miniboot boot,
i.e., when booting into the main ostree-based installation. The boot
arguments are NOT applied during the initial miniboot ISO boot.
Multiple boot arguments can be provided by separating each argument by a
single comma. Spaces are not allowed. Example install value (yaml snippet):
extra_boot_params: arg1=val1,arg2=val2
The extra_boot_params value is included in the miniboot ISO boot
parameters in the form of 'extra_boot_params=arg1=val1,arg2=val2'.
When the subcloud boots, the miniboot kickstart translates
this parameter into proper grub/syslinux kernel options to be applied
for subsequent ostree-based boots.
Test Plan
PASS:
- Verify the extra_boot_params install value is translated into a boot
parameter for initial miniboot ISO boots.
- Verify that any spaces in the extra_boot_params value are detected and
an error is raised, aborting the subcloud installation.
- Verify an empty extra_boot_params value is ignored
- Verify that functionality is not affected if the extra_boot_params
value is not provided
- Tested values:
- Success:
extra_boot_params: arg1=val1,arg2=val2
extra_boot_params: arg1=val1
extra_boot_params: arg1
# extra_boot_params: arg1=val1,arg2=val2
- Fail:
extra_boot_params:
extra_boot_params: arg1=val1, arg2=val2
Partial-Bug: 2023407
Change-Id: I183e07fbdef67cf5bac0da363b7f31d230e95bf5
Signed-off-by: Kyle MacLeod <kyle.macleod@windriver.com>