summary refs log tree commit diff
path: root/mklive.sh.in
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2014-05-23 15:05:31 +0200
committerJuan RP <xtraeme@gmail.com>2014-05-23 15:05:31 +0200
commit07ce345ba6c6331b0d4edb9133509d43bfe51aad (patch)
treeae25f82a5a33b6412e87147212f4283ff162ad13 /mklive.sh.in
parent3b5b9cba6a69b191faccae4d8c798b5fc84dc704 (diff)
downloadhrmpf-07ce345ba6c6331b0d4edb9133509d43bfe51aad.tar.gz
hrmpf-07ce345ba6c6331b0d4edb9133509d43bfe51aad.tar.xz
hrmpf-07ce345ba6c6331b0d4edb9133509d43bfe51aad.zip
mklive: misc tweaks to generate a proper image with runit.
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() {