summary refs log tree commit diff
path: root/mklive.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'mklive.sh.in')
-rw-r--r--mklive.sh.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/mklive.sh.in b/mklive.sh.in
index d47f611..e1cd209 100644
--- a/mklive.sh.in
+++ b/mklive.sh.in
@@ -123,6 +123,8 @@ install_packages() {
     else
         install -Dm755 /usr/sbin/void-installer $ROOTFS/usr/sbin/void-installer
     fi
+    # Cleanup and remove useless stuff.
+    rm -rf $ROOTFS/var/cache/* $ROOTFS/run/* $ROOTFS/var/run/*
 }
 
 copy_dracut_files() {