diff --git a/config.sh b/config.sh new file mode 100644 index 0000000..a44c6b3 --- /dev/null +++ b/config.sh @@ -0,0 +1,30 @@ +#!/bin/bash +# SPDX-License-Identifier: MIT +# SPDX-FileCopyrightText: (c) 2022 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 /var/log/zypp + +exit 0 diff --git a/minimal-image.changes b/minimal-image.changes index 473a0f4..307df62 100644 --- a/minimal-image.changes +++ b/minimal-image.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Apr 28 10:15:45 UTC 2022 - Dan Čermák + +- Ensure that /var/log/zypp is not present in the image