filesystem: fix snapd label lookup

This commit is contained in:
Dan Bungert 2023-05-10 09:14:55 -06:00
parent 0d4119070c
commit 925d3e0a40
1 changed files with 2 additions and 2 deletions

View File

@ -689,7 +689,7 @@ class FilesystemController(SubiquityController, FilesystemManipulator):
@with_context(description="configuring TPM-backed full disk encryption")
async def setup_encryption(self, context):
label = self.app.base_model.source.current.snapd_system_label
label = self._info.label
result = await snapdapi.post_and_wait(
self.app.snapdapi,
self.app.snapdapi.v2.systems[label].POST,
@ -708,7 +708,7 @@ class FilesystemController(SubiquityController, FilesystemManipulator):
@with_context(description="making system bootable")
async def finish_install(self, context):
label = self.app.base_model.source.current.snapd_system_label
label = self._info.label
await snapdapi.post_and_wait(
self.app.snapdapi,
self.app.snapdapi.v2.systems[label].POST,