Merge pull request #1161 from dbungert/udi-fixes

Fix two bug reports from ubuntu-desktop-installer
This commit is contained in:
Dan Bungert 2022-01-13 13:31:10 -07:00 committed by GitHub
commit b312a24468
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -15,6 +15,7 @@
import datetime
import functools
import logging
import os
import shutil
import tempfile
@ -29,6 +30,8 @@ from subiquitycore.utils import arun_command
from subiquity.server.curtin import run_curtin_command
log = logging.getLogger('subiquity.server.apt')
class _MountBase:
@ -75,7 +78,7 @@ def _lowerdir_for_mnt(mnt):
def _lowerdir_for_ovmnt(ovmnt):
# One cannot indefinitely stack overlayfses so construct an
# explicit list of the layers of the overlayfs.
return lowerdir_for(ovmnt.lowers + [ovmnt.upperdir])
return lowerdir_for([ovmnt.lowers, ovmnt.upperdir])
@lowerdir_for.register(list)

View File

@ -134,7 +134,7 @@ class MirrorController(SubiquityController):
async def _apply_apt_config(self):
if self.apt_configurer is not None:
self.apt_configurer.cleanup()
await self.apt_configurer.cleanup()
self.apt_configurer = get_apt_configurer(
self.app, self.app.controllers.Source.source_path)
await self.apt_configurer.apply_apt_config(self.context)