[scripts] clean /var/run (/run) and /var/lock
systemd mounts them as tmpfs anyway
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user