From 93903743a30cd6565a42be6996a068cc6590914b Mon Sep 17 00:00:00 2001 From: Ivo Petrov Date: Fri, 25 Oct 2024 12:03:42 +0300 Subject: [PATCH] Manually create RPM cache directory (#595) * Manually create the rpm cache directory before pkg download * Append bug to release notes --- RELEASE_NOTES.md | 2 ++ pkg/rpm/resolver/templates/rpm-resolution.sh.tpl | 2 ++ 2 files changed, 4 insertions(+) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 91595d7b..20963113 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -12,6 +12,8 @@ ## Bug Fixes +* [#594](https://github.com/suse-edge/edge-image-builder/issues/594) - Package install breaks package resolution if packages is already installed on root OS + --- # v1.1.0 diff --git a/pkg/rpm/resolver/templates/rpm-resolution.sh.tpl b/pkg/rpm/resolver/templates/rpm-resolution.sh.tpl index c8097edc..ae1c9196 100644 --- a/pkg/rpm/resolver/templates/rpm-resolution.sh.tpl +++ b/pkg/rpm/resolver/templates/rpm-resolution.sh.tpl @@ -38,6 +38,8 @@ rpm --import {{ .LocalGPGList }} rpm -Kv {{ .LocalRPMList }} {{ end -}} +mkdir -p {{.CacheDir}} + zypper \ --pkg-cache-dir {{.CacheDir}} \ --gpg-auto-import-keys \