Set supported and current variant for WSL

Co-authored-by: Didier Roche <didrocks@ubuntu.com>
This commit is contained in:
Jean-Baptiste Lallement 2021-09-01 10:44:37 +02:00
parent 1556163d87
commit da5c83d4f1
2 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,8 @@ class SystemSetupClient(SubiquityClient):
snapd_socket_path = None
variant = "wsl_setup"
controllers = [
"Welcome",
"WSLIdentity",
@ -44,6 +46,7 @@ class SystemSetupClient(SubiquityClient):
# 3. provide an API for this for the flutter UI to know about it
# 4. Add Configuration Base page before Advanced
# 5. Add language page
# self.variant = "wsl_configuration"
if opts.reconfigure:
self.controllers = [
"Welcome",

View File

@ -34,6 +34,8 @@ class SystemSetupServer(SubiquityServer):
"SetupShutdown",
]
supported_variants = ["wsl_setup", "wsl_configuration"]
def make_model(self):
root = '/'
if self.opts.dry_run: