diff --git a/stages/org.osbuild.kickstart b/stages/org.osbuild.kickstart index 3994aa0429..b4a9d10034 100755 --- a/stages/org.osbuild.kickstart +++ b/stages/org.osbuild.kickstart @@ -198,6 +198,10 @@ SCHEMA = r""" } } }] + }, + "text": { + "type": "boolean", + "description": "Perform the Kickstart installation in text mode" } } """ @@ -342,6 +346,9 @@ def main(tree, options): clearpart = make_clearpart(options) if clearpart: config += [clearpart] + text = options.get("text") + if text: + config += ["text"] reboot = make_reboot(options) if reboot: diff --git a/stages/test/test_kickstart.py b/stages/test/test_kickstart.py index 60c31fda6a..6e714e9a23 100644 --- a/stages/test/test_kickstart.py +++ b/stages/test/test_kickstart.py @@ -98,14 +98,14 @@ }, "lang en_US.UTF-8\nkeyboard us\ntimezone UTC\nzerombr\nclearpart --all --drives=sd*|hd*|vda,/dev/vdc", ), - # no reboot for an empty dict ({"reboot": True}, "reboot"), ({"reboot": {"eject": False}}, "reboot"), ({"reboot": {"eject": True}}, "reboot --eject"), ({"reboot": {"kexec": False}}, "reboot"), ({"reboot": {"kexec": True}}, "reboot --kexec"), ({"reboot": {"eject": True, "kexec": True}}, "reboot --eject --kexec"), -] + ({"text": True}, "text"), +]) def schema_validate_kickstart_stage(test_data):