stages/dracut.conf: configuration_files → config

Rename the `configuration_files` key to `config` key.
This commit is contained in:
Christian Kellner 2021-07-21 08:15:27 +00:00
parent f259b4e5ca
commit 0becf66454
3 changed files with 5 additions and 5 deletions

View file

@ -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)

View file

@ -457,7 +457,7 @@
{
"name": "org.osbuild.dracut.conf",
"options": {
"configuration_files": {
"config": {
"sgdisk.conf": {
"install_items": [
"sgdisk"

View file

@ -32,7 +32,7 @@
{
"name": "org.osbuild.dracut.conf",
"options": {
"configuration_files": {
"config": {
"sgdisk.conf": {
"install_items": [
"sgdisk"