Add contest WiFi connection

This commit is contained in:
Jan Schär 2024-05-13 22:59:31 +02:00
parent a60638d63b
commit aab293ac19
7 changed files with 33 additions and 2 deletions

View file

@ -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'