filesystem: fix snapd label lookup
This commit is contained in:
parent
0d4119070c
commit
925d3e0a40
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue