windvn/path/make-base
2022-05-10 12:50:10 +02:00

8 lines
283 B
Bash
Executable File

#!/usr/bin/env bash
if [ -d "$OPUS_OUTPUT/base" ]; then
rm -rf "$OPUS_OUTPUT/base"
fi
mkdir "$OPUS_OUTPUT/base"
debootstrap --arch="$OPUS_ARCH" "$OPUS_DIST" "$OPUS_OUTPUT/base" "$OPUS_URL"
fchroot "$OPUS_OUTPUT/base" apt -y autoclean
find "$OPUS_OUTPUT/base/var/log" -type f -delete