diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-07-23 22:21:35 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2011-07-24 10:24:50 -0400 |
commit | e6c21e612838581c53c7742eb6071697f2d9e5a3 (patch) | |
tree | d5dee48319db29f6578cbef21adc763f28607856 /functions | |
parent | 1f358f911a0237f4224169c4d225a9ae306e0853 (diff) | |
download | initscripts-e6c21e612838581c53c7742eb6071697f2d9e5a3.tar.xz |
arch-tmpfiles: add new script to handle volatile file control
This is the same concept as systemd's tmpfiles handling, slightly
simplified to avoid timed re-triggering of file cleaning. Most of our
current file cleaning that takes place in rc.single and rc.sysinit is
replaced by this, with the exception that we hold onto the /var/lock and
/var/run for finer control, since we still check for the possibility of
these directories being symlinks and adjust accordingly.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -420,16 +420,13 @@ mount_all() { remove_leftover() { stat_busy "Removing Leftover Files" - rm -rf /etc/{nologin,shutdownpid} /forcefsck /tmp/* /tmp/.[^.]* /tmp/..?* /var/run/daemons + # handle this separately until we declare the non-symlinks obsoleted [[ ! -L /var/lock ]] && rm -rf /var/lock/* if [[ ! -L /var/run && -d /var/run ]]; then find /var/run/ \! -type d -delete ln -s /run/daemons /var/run/daemons fi - install -Tm 0664 -o root -g utmp <(:) /var/run/utmp - # Keep {x,k,g}dm happy with xorg - mkdir -m 1777 /tmp/.{X11,ICE}-unix - stat_done + /usr/lib/initscripts/arch-tmpfiles && stat_done || stat_fail } bootlogd_stop() { |