Commit c8b9df6d authored by Michael Biebl's avatar Michael Biebl
Browse files

Do not fail on purge if /var/lib/systemd is empty and has been removed by dpkg.

parent 18f7c299
......@@ -4,6 +4,8 @@ systemd (44-11) UNRELEASED; urgency=low
files aren't nuked by systemd-tmpfiles.
* The mountoverflowtmp SysV init script no longer exists so remove that
from remount-rootfs.service to avoid an unnecessary diff to upstream.
* Do not fail on purge if /var/lib/systemd is empty and has been removed
by dpkg.
-- Michael Biebl <biebl@debian.org> Wed, 13 Mar 2013 07:53:25 +0100
......
......@@ -3,8 +3,8 @@
set -e
# Clean up the mess we created
if [ "$1" = "purge" ]; then
statedir=/var/lib/systemd
statedir=/var/lib/systemd
if [ "$1" = "purge" ] && [ -d $statedir ]; then
find $statedir -name "*.symlinks" | while read file ; do
while read symlink ; do
rm -f "$symlink"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment