diskimage-builder/diskimage_builder/elements/dib-python/cleanup.d/50-dib-python
Paul Belanger 3e17ee3f48 Clean up dib-python symlink
We only need dib-python when we build the image, no need to leak it to
the final product.  Remove it in cleanup.d outside the chroot so
nothing can be using it.

Change-Id: I1e229caad7968fb3ab8e44ecdda427e174088d2d
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-04-12 14:33:57 +10:00

13 lines
267 B
Bash
Executable File

#!/bin/bash
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
# Remove dib-python wrapper. Nothing else should be running in chroot
# and required this any more.
sudo unlink $TARGET_ROOT/usr/local/bin/dib-python # dib-lint: safe_sudo