Blame config.sh

9811ed
#!/bin/sh
9811ed
# SPDX-License-Identifier: MIT
Bernhard M. Wiedemann 738104
# SPDX-FileCopyrightText: (c) 2022-2024 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
b19999
9811ed
sed -i 's|/bin/bash|/bin/sh|' /etc/passwd
b19999
# Will be recreated by the next rpm(1) run as root user
b19999
rm -v /usr/lib/sysimage/rpm/Index.db
b19999
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
49adf7
rm -rf /var/log/{lastlog,tallylog,zypper.log,zypp/history,YaST2}
9811ed
9811ed
exit 0