Blame config.sh

9811ed
#!/bin/sh
9811ed
# SPDX-License-Identifier: MIT
9811ed
# SPDX-FileCopyrightText: (c) 2022 SUSE LLC
9811ed
9811ed
set -euo pipefail
9811ed
9811ed
test -f /.kconfig && . /.kconfig
9811ed
test -f /.profile && . /.profile
9811ed
9811ed
echo "Configure image: [$kiwi_iname]..."
9811ed
9811ed
#============================================
9811ed
# Import repositories' keys if rpm is present
9811ed
#--------------------------------------------
9811ed
if command -v rpm > /dev/null; then
9811ed
    suseImportBuildKey
9811ed
fi
9811ed
9811ed
sed -i 's|/bin/bash|/bin/sh|' /etc/passwd
9811ed
9811ed
#=======================================
9811ed
# Clean up after zypper if it is present
9811ed
#---------------------------------------
9811ed
if command -v zypper > /dev/null; then
9811ed
    zypper -n clean
9811ed
fi
9811ed
9811ed
rm -rf /var/log/zypp
9811ed
9811ed
exit 0