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:
parent
ec9067d195
commit
2846eeb43e
30
config.sh
Normal file
30
config.sh
Normal 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
|
@ -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
|
Loading…
Reference in New Issue
Block a user