1
0
forked from pool/minimal-image

Accepting request 973635 from home:dancermak:auto_update:TW

Ensure that /var/log/zypp is not present in the image

OBS-URL: https://build.opensuse.org/request/show/973635
OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/minimal-image?expand=0&rev=3
This commit is contained in:
Dirk Mueller 2022-05-02 07:39:05 +00:00 committed by Git OBS Bridge
parent ec9067d195
commit 2846eeb43e
2 changed files with 34 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 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

View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Thu Apr 28 10:15:45 UTC 2022 - Dan Čermák <dcermak@suse.com>
- Ensure that /var/log/zypp is not present in the image