Add contest WiFi connection
This commit is contained in:
parent
a60638d63b
commit
aab293ac19
7 changed files with 33 additions and 2 deletions
|
|
@ -174,6 +174,9 @@ def main():
|
|||
mkdir("config/includes.chroot/root/.ssh")
|
||||
run(["cp", f"{script_dir}/config/contestant_authorized_keys", "config/includes.chroot/root/.ssh/authorized_keys"])
|
||||
|
||||
edit_file("config/includes.chroot/etc/NetworkManager/system-connections/contest.nmconnection",
|
||||
lambda s: s.replace("@wifi_password@", config["contestant_wifi_password"]))
|
||||
|
||||
# Configure boot options.
|
||||
grub_boot_options = '\n'.join(
|
||||
f'menuentry "{option["label"]}" {{\n'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue