[info=ab61b8bcc1da3e76f03626d57f9dcbab]

OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/trivy-image?expand=0&rev=175
This commit is contained in:
2025-01-01 14:19:42 +00:00
committed by Git OBS Bridge
commit c1c3842f81
7 changed files with 253 additions and 0 deletions

30
config.sh Normal file
View File

@@ -0,0 +1,30 @@
#!/bin/bash
# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: (c) 2022-2025 SUSE LLC
set -euo pipefail
test -f /.kconfig && . /.kconfig
test -f /.profile && . /.profile
echo "Configure image: [$kiwi_iname]..."
#============================================
# Import repositories' keys if rpm is present
#--------------------------------------------
if command -v rpm > /dev/null; then
suseImportBuildKey
fi
#=======================================
# Clean up after zypper if it is present
#---------------------------------------
if command -v zypper > /dev/null; then
zypper -n clean
fi
rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}
exit 0