2024-09-13 15:55:01 +02:00
|
|
|
#!/bin/bash
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
# SPDX-FileCopyrightText: (c) 2022-2024 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
|
|
|
|
|
2024-09-25 19:17:06 +02:00
|
|
|
rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}
|
2024-09-13 15:55:01 +02:00
|
|
|
|
|
|
|
exit 0
|