fix offline installs

This commit is contained in:
Michael Hudson-Doyle 2021-11-17 11:20:18 +13:00
parent 996a2125f2
commit be57dc9da0
2 changed files with 4 additions and 2 deletions

View File

@ -42,7 +42,7 @@ parts:
plugin: python plugin: python
source-type: git source-type: git
source: https://git.launchpad.net/curtin source: https://git.launchpad.net/curtin
source-commit: 809817fdac257de1769e385a42aeaf3d5bcc2c60 source-commit: f13edc1ac71dde678149b4918ee923b25a1b7039
build-packages: build-packages:
- shared-mime-info - shared-mime-info
- zlib1g-dev - zlib1g-dev

View File

@ -126,7 +126,9 @@ class AptConfigurer:
self.tpath('etc/apt/sources.list'), self.tpath('etc/apt/sources.list'),
self.tpath('etc/apt/sources.list.d/original.list')) self.tpath('etc/apt/sources.list.d/original.list'))
else: else:
os.unlink(self.tpath('etc/apt/apt.conf.d/90curtin-aptproxy')) proxy_path = self.tpath('etc/apt/apt.conf.d/90curtin-aptproxy')
if os.path.exists(proxy_path):
os.unlink(proxy_path)
await self.setup_overlay(self.tpath('var/lib/apt/lists')) await self.setup_overlay(self.tpath('var/lib/apt/lists'))
codename = lsb_release()['codename'] codename = lsb_release()['codename']