Commit 762ad44f authored by Tollef Fog Heen's avatar Tollef Fog Heen
Browse files

Only rmdir /lib/init/rw if it exists.

parent 29d07fd4
......@@ -2,6 +2,7 @@ systemd (43-2) UNRELEASED; urgency=low
* 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
......
......@@ -51,7 +51,9 @@ if dpkg --compare-versions "$2" lt "40-1"; then
# /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
......
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