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 9, 2023
1 parent b9ad7dd commit 0962aea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions stages/org.osbuild.kickstart
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ SCHEMA = r"""
"type": "boolean"
}
}
},
"text": {
"type": "boolean",
"description": "Perform the Kickstart installation in text mode"
}
}
"""
Expand Down Expand Up @@ -301,6 +305,9 @@ def main(tree, options):
clearpart = make_clearpart(options)
if clearpart:
config += [clearpart]
text = options.get("text")
if text:
config += ["text"]

target = os.path.join(tree, path)
base = os.path.dirname(target)
Expand Down
1 change: 1 addition & 0 deletions stages/test/test_kickstart.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
},
"lang en_US.UTF-8\nkeyboard us\ntimezone UTC\nzerombr\nclearpart --all --drives=sd*|hd*|vda,/dev/vdc",
),
({"text": True}, "text"),
])
def test_kickstart(tmp_path, test_input, expected):
ks_stage_path = os.path.join(os.path.dirname(__file__), "../org.osbuild.kickstart")
Expand Down

0 comments on commit 0962aea

Please sign in to comment.