diff --git a/stages/org.osbuild.systemd-logind b/stages/org.osbuild.systemd-logind index 5ac2e8fa..cfa634f2 100755 --- a/stages/org.osbuild.systemd-logind +++ b/stages/org.osbuild.systemd-logind @@ -2,7 +2,7 @@ """ Configure systemd-logind -The 'configuration_dropins' option allows to create systemd-logind configuration +The 'config' option allows to create one or more systemd-logind configuration drop-in files in `/usr/lib/systemd/logind.conf.d`. Value of this option is an dictionary with keys specifying the name od the `.conf` drop-in configuration file to create. The dictionary must have at least one `.conf` file defined. @@ -28,7 +28,7 @@ import osbuild.api SCHEMA = r""" "additionalProperties": false, "properties": { - "configuration_dropins": { + "config": { "additionalProperties": false, "type": "object", "description": "systemd-logind configuration drop-ins.", @@ -84,7 +84,7 @@ def create_configuration_dropins(tree, configuration_dropins_options): def main(tree, options): - configuration_dropins_options = options.get("configuration_dropins", {}) + configuration_dropins_options = options.get("config", {}) create_configuration_dropins(tree, configuration_dropins_options) diff --git a/test/data/stages/systemd-logind/b.json b/test/data/stages/systemd-logind/b.json index 3d1fb94a..960491d3 100644 --- a/test/data/stages/systemd-logind/b.json +++ b/test/data/stages/systemd-logind/b.json @@ -457,7 +457,7 @@ { "name": "org.osbuild.systemd-logind", "options": { - "configuration_dropins": { + "config": { "10-ec2-getty-fix.conf": { "Login": { "NAutoVTs": 0 diff --git a/test/data/stages/systemd-logind/b.mpp.json b/test/data/stages/systemd-logind/b.mpp.json index faa1f1ec..53011611 100644 --- a/test/data/stages/systemd-logind/b.mpp.json +++ b/test/data/stages/systemd-logind/b.mpp.json @@ -32,7 +32,7 @@ { "name": "org.osbuild.systemd-logind", "options": { - "configuration_dropins": { + "config": { "10-ec2-getty-fix.conf": { "Login": { "NAutoVTs": 0