kickstart: add lang,keyboard,timezone to the supported options
This commit adds support for the following kickstart options: - lang - keyboard - timezone
This commit is contained in:
parent
15c3c0a27e
commit
a5ebd9a06f
1 changed files with 22 additions and 0 deletions
|
|
@ -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)"
|
||||
}
|
||||
}
|
||||
"""
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue