Skip to content

Commit

Permalink
kickstart: add lang,keyboard,timezone to the supported options
Browse files Browse the repository at this point in the history
This commit adds support for the following kickstart options:
- lang
- keyboard
- timezone
  • Loading branch information
mvo5 committed Nov 2, 2023
1 parent 15c3c0a commit 5a29759
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions stages/org.osbuild.kickstart
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,18 @@ SCHEMA = """
}
}
}
},
"lang": {
"type": "string",
"description": "The language code (e.g. en_US.UTF-8)"
},
"keyboard": {
"type": "string",
"description": "The keyboard map (e.g. us)"
},
"timezone": {
"type": "string",
"description": "The timezone (e.g. UTC)"
}
}
"""
Expand Down Expand Up @@ -212,6 +224,16 @@ def main(tree, options):
config += make_groups(options.get("groups", {}))
config += make_users(options.get("users", {}))

lang = options.get("lang")
if lang:
config += [f"lang {lang}"]
keyboard = options.get("keyboard")
if keyboard:
config += [f"keyboard {keyboard}"]
tz = options.get("timezone")
if tz:
config += [f"timezone {tz}"]

target = os.path.join(tree, path)
base = os.path.dirname(target)
os.makedirs(base, exist_ok=True)
Expand Down

0 comments on commit 5a29759

Please sign in to comment.