]> err.no Git - systemd/commitdiff
Only rmdir /lib/init/rw if it exists.
authorTollef Fog Heen <tfheen@err.no>
Fri, 9 Mar 2012 13:10:49 +0000 (14:10 +0100)
committerTollef Fog Heen <tfheen@err.no>
Fri, 9 Mar 2012 13:10:49 +0000 (14:10 +0100)
debian/changelog
debian/systemd.postinst

index 10689cb65d20a4fd550f94a196db275834aeb34e..a5e0633b942098049f83a33e5775989493b34edb 100644 (file)
@@ -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
 
index b6f83d5409a10b453d6e51cee28a9a138a27860c..97ff835f4e6c0c44566a5aba69b4a0611ff4628f 100644 (file)
@@ -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