snapshot_cache was removed from catalyst Apr 2020
* catalyst commit 6493f3bc534f97468c514a12035b10e3107c4ecf * --preclean would now fail as catalyst.conf is invalid Signed-off-by: Nic Boet <nic@boet.cc> Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
This commit is contained in:
parent
bdebb3c30e
commit
249185d427
1 changed files with 1 additions and 6 deletions
|
@ -329,14 +329,9 @@ run_catalyst_commands() {
|
||||||
if [[ ${preclean} == 1 ]]; then
|
if [[ ${preclean} == 1 ]]; then
|
||||||
rm -rf "${TMP_PATH:-/tmp}/catalyst-auto".*
|
rm -rf "${TMP_PATH:-/tmp}/catalyst-auto".*
|
||||||
|
|
||||||
snapshot_cache=$(catalyst_var snapshot_cache)
|
|
||||||
if [[ -z ${snapshot_cache} ]]; then
|
|
||||||
echo "error: snapshot_cache not set in config file"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
pushd "${BUILD_SRCDIR_BASE}" >/dev/null || exit 1
|
pushd "${BUILD_SRCDIR_BASE}" >/dev/null || exit 1
|
||||||
rm -rf --one-file-system \
|
rm -rf --one-file-system \
|
||||||
kerncache packages snapshots tmp "${snapshot_cache}"/*
|
kerncache packages snapshots tmp
|
||||||
popd >/dev/null
|
popd >/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue