[scripts] clean /var/run (/run) and /var/lock

systemd mounts them as tmpfs anyway
This commit is contained in:
Fabio Erculiani
2013-11-15 16:09:45 +01:00
parent e86f9464ba
commit a43bcbd4d1
5 changed files with 25 additions and 0 deletions
@@ -119,4 +119,9 @@ rm -f /etc/entropy/.hw.hash
# remove entropy pid file
rm -f /var/run/entropy/entropy.lock
# remove /run/* and /var/lock/*
# systemd mounts them using tmpfs
rm -rf /run/*
rm -rf /var/lock/*
exit 0
@@ -104,4 +104,9 @@ rm -f /etc/entropy/.hw.hash
# remove entropy pid file
rm -f /var/run/entropy/entropy.lock
# remove /run/* and /var/lock/*
# systemd mounts them using tmpfs
rm -rf /run/*
rm -rf /var/lock/*
exit 0
+5
View File
@@ -224,4 +224,9 @@ rm -f /var/run/entropy/entropy.lock
rm -f /var/lib/entropy/entropy.pid
rm -f /var/lib/entropy/entropy.lock # old?
# remove /run/* and /var/lock/*
# systemd mounts them using tmpfs
rm -rf /run/*
rm -rf /var/lock/*
exit 0
+5
View File
@@ -23,4 +23,9 @@ rm -f "${CHROOT_DIR}"/etc/entropy/.hw.hash
# remove entropy pid file
rm -f "${CHROOT_DIR}"/var/run/entropy/entropy.lock
# remove /run/* and /var/lock/*
# systemd mounts them using tmpfs
rm -rf "${CHROOT_DIR}"/run/*
rm -rf "${CHROOT_DIR}"/var/lock/*
# do not exit!! this file is sourced!
@@ -67,4 +67,9 @@ rm -f /etc/entropy/.hw.hash
# remove entropy pid file
rm -f /var/run/entropy/entropy.lock
# remove /run/* and /var/lock/*
# systemd mounts them using tmpfs
rm -rf /run/*
rm -rf /var/lock/*
exit 0