]> err.no Git - systemd/commitdiff
Use native mount, mask services done by systemd
authorTollef Fog Heen <tfheen@err.no>
Sun, 26 Dec 2010 19:31:33 +0000 (20:31 +0100)
committerTollef Fog Heen <tfheen@err.no>
Sun, 26 Dec 2010 19:31:33 +0000 (20:31 +0100)
debian/changelog
debian/rules
debian/systemd.links [new file with mode: 0644]

index f88a4971fcfb25a2832996214df30ee050c38de1..93e8f5d3b5d437c1fdffb4d0ff45b0c51e12bf9c 100644 (file)
@@ -22,6 +22,16 @@ systemd (15-1) experimental; urgency=low
     libcryptsetup dependency in a tainted build environment, as the library
     is currently installed in /usr/lib.
   * Remove autogenerated man pages and vala C sources, so they are rebuilt.
+  * Use native systemd mount support:
+    - Use MountAuto=yes and SwapAuto=yes (default) in system.conf
+    - Mask SysV init mount, check and cleanup scripts.
+    - Create an alias (symlink) for checkroot (→ remount-rootfs.service) as
+      synchronization point for SysV init scripts.
+  * Mask x11-common, rmnologin, hostname, bootmisc and bootlogd.
+  * Create an alias for procps (→ systemd-sysctl.service) and
+    urandom (→ systemd-random-seed-load.service).
+  * Create an alias for module-init-tools (→ systemd-modules-load.service) and
+    a symlink from /etc/modules-load.d/modules.conf → /etc/modules.
   * Install lsb-base hook which redirects calls to SysV init scripts to
     systemctl: /etc/init.d/<foo> <action> → systemctl <action> <foo.service>
   * Install a (auto)mount unit to mount /lib/init/rw early during boot.
index 8ce9c1e15cd857bdb45724d403a06e2d97a028ea..a9a891a629bc2f0a2c518caafab692564f376be3 100755 (executable)
@@ -18,11 +18,8 @@ override_dh_install:
        rm debian/tmp/usr/share/doc/systemd/LICENSE
        rm debian/tmp/lib/security/pam_systemd.la
        rm debian/tmp/lib/systemd/system/shutdown.target.wants/hwclock-save.service
-       rm debian/tmp/lib/systemd/system/local-fs.target.wants/remount-rootfs.service
        dh_install -O--parallel --fail-missing
        dh_install -plibpam-systemd debian/pam-configs /usr/share
-       sed -i 's/#\(Mount\|Swap\)Auto=yes/\1Auto=no/' debian/systemd/etc/systemd/system.conf
-       find ./debian/systemd/lib -name tmpwatch.\* -delete
 
 %:
        dh --parallel --with autoreconf $@
diff --git a/debian/systemd.links b/debian/systemd.links
new file mode 100644 (file)
index 0000000..f7b2e48
--- /dev/null
@@ -0,0 +1,42 @@
+# These are all services which have native implementations
+# So we mask them by linking against /dev/null or create an alias
+/lib/systemd/system/systemd-random-seed-load.service /lib/systemd/system/urandom.service
+/lib/systemd/system/systemd-sysctl.service /lib/systemd/system/procps.service
+
+/lib/systemd/system/systemd-modules-load.service /lib/systemd/system/module-init-tools.service
+/etc/modules /etc/modules-load.d/modules.conf
+
+/dev/null /lib/systemd/system/x11-common.service
+/dev/null /lib/systemd/system/hostname.service
+/dev/null /lib/systemd/system/rmnologin.service
+/dev/null /lib/systemd/system/bootmisc.service
+
+# Although bootloogd is disabled by default (via /etc/default/bootlogd)
+# by masking them we avoid spawning a shell uselessly thrice during boot.
+# Besides, bootlogd doesn't look particularly useful in a systemd world.
+/dev/null /lib/systemd/system/bootlogd.service
+/dev/null /lib/systemd/system/stop-bootlogd-single.service
+/dev/null /lib/systemd/system/stop-bootlogd.service
+
+# TODO: make hwclock a symlink to hwclock-load.service?
+# Before this can happen we need to ensure that the 85-hwclock.rules
+# udev rule is not triggered when running systemd.
+/dev/null /lib/systemd/system/hwclock.service
+/dev/null /lib/systemd/system/hwclockfirst.service
+
+# We use native mount support so mask those services
+# TODO: check if any sysv init script depends on those facilities
+/dev/null /lib/systemd/system/mountkernfs.service
+/dev/null /lib/systemd/system/mountdevsubfs.service
+/dev/null /lib/systemd/system/mountall.service
+/dev/null /lib/systemd/system/mountall-bootclean.service
+/dev/null /lib/systemd/system/mountnfs.service
+/dev/null /lib/systemd/system/mountnfs-bootclean.service
+/dev/null /lib/systemd/system/checkfs.service
+# We need checkroot as synchronisation point, so symlink it to remount-rootfs
+/lib/systemd/system/remount-rootfs.service /lib/systemd/system/checkroot.service
+
+# Mount /lib/init/rw during early startup
+/lib/systemd/system/lib-init-rw.automount /lib/systemd/system/local-fs.target.wants/lib-init-rw.automount
+
+# TODO: mtab/udev-mtab (symlink /etc/mtab to /proc/self/mounts in postinst)