aboutsummaryrefslogtreecommitdiff
path: root/mkrootfs.sh
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2019-12-10 08:59:42 +0300
committerCem Keylan <cem@ckyln.com>2019-12-10 08:59:42 +0300
commitc4690252c714f8d3122ac3a46f411b347033138c (patch)
tree92f90a498d69d54494c304b03d63760b4b790b56 /mkrootfs.sh
parent92ac5880e134362d7663dd50d22fa13cc87bc672 (diff)
downloadmkrootfs-c4690252c714f8d3122ac3a46f411b347033138c.tar.gz
change package cache
Diffstat (limited to 'mkrootfs.sh')
-rwxr-xr-xmkrootfs.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/mkrootfs.sh b/mkrootfs.sh
index fefb2b3..4dd93ac 100755
--- a/mkrootfs.sh
+++ b/mkrootfs.sh
@@ -83,6 +83,11 @@ msg "Package build complete, starting package installation"
kiss i $PKGS
msg "Installation Complete, starting custombuild procedure if there is one"
postinstall
+
+# Remove junk from the rootfs
+msg "Cleaning package cache"
+rm -rf "$MNTDIR/root/.cache"
+
msg "Generating rootfs to $BASEDIR"
cd "$MNTDIR" || die "Could not change directory to $MNTDIR"
tar -cpvJf "$BASEDIR/carbs-rootfs-$(date +%Y%m%d).tar.xz" .