Skip to content

Commit

Permalink
stages(kickstart): implement "text" option
Browse files Browse the repository at this point in the history
  • Loading branch information
mvo5 committed Nov 10, 2023
1 parent a9da989 commit 063b82c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions stages/org.osbuild.kickstart
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ SCHEMA = r"""
}
}
}]
},
"text": {
"type": "boolean",
"description": "Perform the Kickstart installation in text mode"
}
}
"""
Expand Down Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions stages/test/test_kickstart.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 063b82c

Please sign in to comment.