updates = f"deb {state.config.mirror} {state.config.release}-updates {' '.join(repos)}"
state.root.joinpath(f"etc/apt/sources.list.d/{state.config.release}-updates.list").write_text(f"{updates}\n")
- # Security updates repos are never mirrored
- security = f"deb http://security.ubuntu.com/ubuntu/ {state.config.release}-security {' '.join(repos)}"
+ # Security updates repos are never mirrored. But !x86 are on the ports server.
+ if state.config.architecture in ["x86", "x86_64"]:
+ security = f"deb http://security.ubuntu.com/ubuntu/ {state.config.release}-security {' '.join(repos)}"
+ else:
+ security = f"deb http://ports.ubuntu.com/ {state.config.release}-security {' '.join(repos)}"
state.root.joinpath(f"etc/apt/sources.list.d/{state.config.release}-security.list").write_text(f"{security}\n")