File config-host-overlay.sh of Package delta_basepython_aws-cli

#!/bin/bash

set -ex

# Create example flake config to be displayed with:
# flake-ctl podman register --container aws-cli-basepython --info
cat >./aws-cli-basepython.yaml <<-EOF
include:
  tar: ~
container:
  name: aws-cli-basepython
  target_app_path: /usr/bin/aws
  host_app_path: /usr/share/flakes/bin/aws
  base_container: suse-apps/basesystem
  layers:
    - "suse-apps/basepython"
  runtime:
    runas: root
    resume: true
    attach: false
    podman:
      - "-ti"
EOF

# Data which is unwanted in the delta container
#
# Please be aware that arbitrary data deletion is
# detected by KIWI and put into the /removed file
# Some paths are excluded from this detection,
# the location of the rpm database is one of them
#
# Thus deletions of files in delta containers should
# be handled with care and avoided when possible.
# Reason for the deletion here is saving space
rm -rf ./usr/lib/sysimage/rpm
rm -rf ./var/log
openSUSE Build Service is sponsored by