* Output "reloading systemd message" to stderr, to prevent confusing
debconf.
+ * Only rmdir /lib/init/rw if it exists.
-- Tollef Fog Heen <tfheen@debian.org> Thu, 08 Mar 2012 15:16:10 +0100
# /lib/init/rw has been replaced by /run, so try to remove it on upgrades
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=643699
_systemctl stop lib-init-rw.automount lib-init-rw.mount || true
- rmdir --ignore-fail-on-non-empty /lib/init/rw || true
+ if [ -d /lib/init/rw ]; then
+ rmdir --ignore-fail-on-non-empty /lib/init/rw || true
+ fi
# Create /run/initctl → /dev/initctl compat symlink on upgrades
if [ -e /sys/fs/cgroup/systemd ]; then