Skip to content

Commit

Permalink
Add missing location to use the base url in bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
kmoore134 committed Nov 9, 2024
1 parent f197352 commit 045f977
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scale_build/bootstrap/bootstrapdir.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def setup_impl(self):
self.add_trusted_apt_key()
apt_repos = get_manifest()['apt-repos']
apt_base_url = get_apt_base_url()
logger.info('Using apt base url (%s)', apt_base_url)
self.debootstrap_debian()
self.setup_mounts()

Expand Down Expand Up @@ -149,11 +148,12 @@ def cache_filename(self):

def debootstrap_debian(self):
manifest = get_manifest()
apt_base_url = get_apt_base_url()
run(
['debootstrap'] + self.deopts + [
'--foreign', '--keyring', '/etc/apt/trusted.gpg.d/debian-archive-truenas-automatic.gpg',
manifest['debian_release'],
self.chroot_basedir, manifest['apt-repos']['url']
self.chroot_basedir, apt_base_url + manifest['apt-repos']['url']
]
)
for reference_file in REFERENCE_FILES:
Expand Down

0 comments on commit 045f977

Please sign in to comment.