2023-07-06 13:35:24 +02:00
|
|
|
#!/bin/bash
|
|
|
|
# SPDX-License-Identifier: MIT
|
2024-01-02 09:29:54 +01:00
|
|
|
# SPDX-FileCopyrightText: (c) 2022-2024 SUSE LLC
|
2023-07-06 13:35:24 +02:00
|
|
|
|
|
|
|
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-04-12 14:15:39 +02:00
|
|
|
rm -rf /var/log/{lastlog,tallylog,zypper.log,zypp/history,YaST2}
|
2023-07-06 13:35:24 +02:00
|
|
|
|
|
|
|
exit 0
|