]> err.no Git - systemd/commitdiff
Stop installing lib-init-rw (auto)mount units
authorMichael Biebl <biebl@debian.org>
Sat, 11 Feb 2012 09:38:58 +0000 (10:38 +0100)
committerTollef Fog Heen <tfheen@err.no>
Mon, 27 Feb 2012 21:49:13 +0000 (22:49 +0100)
and try to cleanup /lib/init/rw in postinst. Bump dependency on
initscripts accordingly. Closes: #643699

debian/changelog
debian/control
debian/lib-init-rw.automount [deleted file]
debian/lib-init-rw.mount [deleted file]
debian/systemd.install
debian/systemd.postinst

index 2e077aca319a8dcd3f0abe22aa94c5a46365c563..836f04b7fe45f047ddae0b1bdc959bde4d3036be 100644 (file)
@@ -28,6 +28,9 @@ systemd (43-1) unstable; urgency=low
   * Avoid error messages from systemctl in postinst if systemd is not running
     by checking for /sys/fs/cgroup/systemd before executing systemctl.
     Closes: #642749
+  * Stop installing lib-init-rw (auto)mount units and try to cleanup
+    /lib/init/rw in postinst. Bump dependency on initscripts accordingly.
+    Closes: #643699
 
  -- Tollef Fog Heen <tfheen@debian.org>  Tue, 07 Feb 2012 21:36:34 +0100
 
index 91cd1ea870b1d1fbe93bc2d53bbdf065d1732c25..6364f6bade3cf9b4df27aa16747d93e37ce26385 100644 (file)
@@ -39,7 +39,7 @@ Section: admin
 Priority: extra
 Recommends: libpam-systemd
 Suggests: systemd-gui, python
-Depends: ${shlibs:Depends}, ${misc:Depends}, util-linux (>= 2.19.1-2), initscripts (>= 2.88dsf-13.3), udev
+Depends: ${shlibs:Depends}, ${misc:Depends}, util-linux (>= 2.19.1-2), initscripts (>= 2.88dsf-17), udev
 Breaks: lvm2 (<< 2.02.84-1)
 Conflicts: klogd
 Description: system and service manager
diff --git a/debian/lib-init-rw.automount b/debian/lib-init-rw.automount
deleted file mode 100644 (file)
index f32a921..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#  This file is part of systemd.
-#
-#  systemd is free software; you can redistribute it and/or modify it
-#  under the terms of the GNU General Public License as published by
-#  the Free Software Foundation; either version 2 of the License, or
-#  (at your option) any later version.
-
-[Unit]
-Description=Debian early rw Automount Point
-DefaultDependencies=no
-Before=basic.target
-ConditionPathIsDirectory=/lib/init/rw
-
-[Automount]
-Where=/lib/init/rw
diff --git a/debian/lib-init-rw.mount b/debian/lib-init-rw.mount
deleted file mode 100644 (file)
index f3650d2..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-[Unit]
-Description=Debian early rw mount
-DefaultDependencies=no
-ConditionPathIsDirectory=/lib/init/rw
-
-[Mount]
-What=tmpfs
-Where=/lib/init/rw
-Type=tmpfs
-Options=mode=0755,nosuid
index 36465a1b98c1065b15b54f88b2e704f457c55705..922564052b25469a6b0bb0ee7234bdee81ed1da7 100644 (file)
@@ -39,7 +39,5 @@ usr/lib/sysctl.d
 usr/lib/systemd
 usr/lib/tmpfiles.d
 debian/init-functions lib/lsb
-debian/lib-init-rw.automount lib/systemd/system/
-debian/lib-init-rw.mount lib/systemd/system/
 debian/debian-fixup lib/systemd/
 debian/debian-fixup.service lib/systemd/system
index 56f508a79e494bad61849ccf140c6f22f5d2378f..a0cfab0f40fcab602415c80ed7f1d4953d1a5d17 100644 (file)
@@ -40,6 +40,13 @@ EOF
     fi
 fi
 
+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
+fi
+
 systemd-machine-id-setup
 
 dpkg-maintscript-helper rm_conffile /etc/lsb-base-logging.sh 20-1 systemd -- "$@"