stages/dracut.conf: configuration_files → config
Rename the `configuration_files` key to `config` key.
This commit is contained in:
parent
f259b4e5ca
commit
0becf66454
3 changed files with 5 additions and 5 deletions
|
|
@ -2,7 +2,7 @@
|
|||
"""
|
||||
Configure dracut.
|
||||
|
||||
'configuration_files' option allows to create dracut configuration files under
|
||||
The 'config' option allows to create dracut configuration files under
|
||||
`/usr/lib/dracut/dracut.conf.d/`. Only a subset of configuration options is
|
||||
supported, with the intention to provide functional parity with
|
||||
`org.osbuild.dracut` stage.
|
||||
|
|
@ -39,7 +39,7 @@ import osbuild.api
|
|||
SCHEMA = r"""
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"configuration_files": {
|
||||
"config": {
|
||||
"additionalProperties": false,
|
||||
"type": "object",
|
||||
"description": "dracut configuration files.",
|
||||
|
|
@ -188,7 +188,7 @@ def create_configuration_file(tree, filename, options):
|
|||
|
||||
|
||||
def main(tree, options):
|
||||
configuration_files_options = options.get("configuration_files", {})
|
||||
configuration_files_options = options.get("config", {})
|
||||
|
||||
for configuration_file, configuration_options in configuration_files_options.items():
|
||||
create_configuration_file(tree, configuration_file, configuration_options)
|
||||
|
|
|
|||
|
|
@ -457,7 +457,7 @@
|
|||
{
|
||||
"name": "org.osbuild.dracut.conf",
|
||||
"options": {
|
||||
"configuration_files": {
|
||||
"config": {
|
||||
"sgdisk.conf": {
|
||||
"install_items": [
|
||||
"sgdisk"
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
{
|
||||
"name": "org.osbuild.dracut.conf",
|
||||
"options": {
|
||||
"configuration_files": {
|
||||
"config": {
|
||||
"sgdisk.conf": {
|
||||
"install_items": [
|
||||
"sgdisk"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue