allow answers to override the channel subiquity is refreshed from

This commit is contained in:
Michael Hudson-Doyle 2019-04-10 14:31:22 +12:00
parent 23b246caf1
commit 901b5bdd76
1 changed files with 2 additions and 1 deletions

View File

@ -69,7 +69,8 @@ class RefreshController(BaseController):
def get_refresh_channel(self):
"""Return the channel we should refresh subiquity to."""
if 'channel' in self.answers:
return self.answers['channel']
with open('/proc/cmdline') as fp:
cmdline = fp.read()
prefix = "subquity-channel="