mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 22:51:03 +02:00
fix(catalyst): Cleanup temporary files.
Catalyst doesn't clean up the temporary root directories even though we don't have seedcache enabled. So lets wipe that mess up.
This commit is contained in:
parent
a1a1ed830c
commit
505107c48d
@ -59,7 +59,7 @@ cat <<EOF
|
|||||||
contents="auto"
|
contents="auto"
|
||||||
digests="md5 sha1 sha512 whirlpool"
|
digests="md5 sha1 sha512 whirlpool"
|
||||||
hash_function="crc32"
|
hash_function="crc32"
|
||||||
options="autoresume ccache kerncache pkgcache"
|
options="autoresume ccache pkgcache"
|
||||||
sharedir="/usr/lib/catalyst"
|
sharedir="/usr/lib/catalyst"
|
||||||
storedir="$CATALYST_ROOT"
|
storedir="$CATALYST_ROOT"
|
||||||
distdir="$DISTDIR"
|
distdir="$DISTDIR"
|
||||||
@ -261,6 +261,8 @@ build_stage() {
|
|||||||
-c "$TEMPDIR/catalyst.conf" \
|
-c "$TEMPDIR/catalyst.conf" \
|
||||||
-f "$TEMPDIR/${stage}.spec" \
|
-f "$TEMPDIR/${stage}.spec" \
|
||||||
-C "source_subpath=$srcpath"
|
-C "source_subpath=$srcpath"
|
||||||
|
# Catalyst doesn't clean up after itself...
|
||||||
|
rm -rf "$TEMPDIR/$stage-${ARCH}-${FLAGS_version}"
|
||||||
ln -sf "$stage-${ARCH}-${FLAGS_version}.tar.bz2" \
|
ln -sf "$stage-${ARCH}-${FLAGS_version}.tar.bz2" \
|
||||||
"$BUILDS/$stage-${ARCH}-latest.tar.bz2"
|
"$BUILDS/$stage-${ARCH}-latest.tar.bz2"
|
||||||
info "Finished building $target_tarball"
|
info "Finished building $target_tarball"
|
||||||
@ -313,4 +315,7 @@ catalyst_build() {
|
|||||||
build_stage stage4 "$SEED"
|
build_stage stage4 "$SEED"
|
||||||
used_seed=1
|
used_seed=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Cleanup snapshots, we don't use them
|
||||||
|
rm -rf "$CATALYST_ROOT/snapshots/portage-${FLAGS_version}.tar.bz2"*
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user