summaryrefslogtreecommitdiff
path: root/scripts/build-vyos-image
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2022-10-11 17:07:06 +0200
committersarthurdev <965089+sarthurdev@users.noreply.github.com>2022-10-11 18:37:55 +0200
commitbe065d568b03f838d97a76c8cac80e6a8be6c01f (patch)
tree903c969bf8e7d364df017f233194f22968f01c43 /scripts/build-vyos-image
parentfbe8ee6e1992d28795aee315f490f85da21297f1 (diff)
downloadvyos-build-be065d568b03f838d97a76c8cac80e6a8be6c01f.tar.gz
vyos-build-be065d568b03f838d97a76c8cac80e6a8be6c01f.zip
build: T3664: Fix apt pinning file issue and use defaults for paths
Diffstat (limited to 'scripts/build-vyos-image')
-rwxr-xr-xscripts/build-vyos-image4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/build-vyos-image b/scripts/build-vyos-image
index 3d387a15..5d0248a0 100755
--- a/scripts/build-vyos-image
+++ b/scripts/build-vyos-image
@@ -460,7 +460,7 @@ Pin: release n={build_config['release_train']}
Pin-Priority: 600
"""
- with open(f'../data/live-build-config/archives/vyos.pref.chroot', 'w') as f:
+ with open(defaults.VYOS_PIN_FILE, 'w') as f:
f.write(apt_pin)
print("I: Configuring live-build")
@@ -483,7 +483,7 @@ Pin-Priority: 600
local_packages = glob.glob('../packages/*.deb')
if local_packages:
for f in local_packages:
- shutil.copy(f, 'config/packages.chroot/' + os.path.basename(f))
+ shutil.copy(f, os.path.join(defaults.LOCAL_PACKAGES_PATH, os.path.basename(f)))
## Build the image
print("I: Starting image build")