File config.sh of Package transparent_aws-cli

#!/bin/bash

set -ex

# host runtime has reduced data, provisioned from host later
for profile in ${kiwi_profiles//,/ }; do
    if [ "${profile}" = "runtime_host" ]; then
        # drop python311 stack which we want to take from the host
        rpm -qal --noghost python311* > /systemfiles
        for package in $(rpm -qa python311*);do
            rpm -e --nodeps "${package}"
        done

        # drop package database
        rm -rf /usr/lib/sysimage/rpm
        rm -rf /var/log
    fi
done
openSUSE Build Service is sponsored by