#!/bin/sh -e [ -L /proc/1/root ] || exit 0 rc=0 LC_ALL=C egrep -s '^/(lib|etc)/tmpfiles.d/.+\.conf' | sort -u | while read -r file; do if [ -f $file ]; then systemd-tmpfiles --create $file || rc=1 fi done exit $rc