stages/dracut: write only one config file

Instead of supporting writing an arbitrary number of configuration
files, just write one. This makes the stage and its schema clearer
and simpler. If more than one config file is needed, the stage can
be repeated multiple times. It is also more flexible since we can
in the future specify additional options at the top level which
will then be per-file, like a top-level comment.
This commit is contained in:
Christian Kellner 2021-07-21 08:41:55 +00:00
parent a1703dc298
commit 0190c991ae
3 changed files with 99 additions and 116 deletions

View file

@ -457,12 +457,11 @@
{
"name": "org.osbuild.dracut.conf",
"options": {
"filename": "sgdisk.conf",
"config": {
"sgdisk.conf": {
"install_items": [
"sgdisk"
]
}
"install_items": [
"sgdisk"
]
}
}
}

View file

@ -32,12 +32,11 @@
{
"name": "org.osbuild.dracut.conf",
"options": {
"filename": "sgdisk.conf",
"config": {
"sgdisk.conf": {
"install_items": [
"sgdisk"
]
}
"install_items": [
"sgdisk"
]
}
}
}