systemd-speed-hacks: remove some (re)mount tasks that aren't needed yet in OE built...
authorKoen Kooi <koen@dominion.thruhere.net>
Wed, 12 Oct 2011 12:45:57 +0000 (14:45 +0200)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:15:40 +0000 (08:15 -0800)
(From meta-openembedded rev: bae44233bb4b9e8df9d06767e30cc1d739e1ee35)

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-openembedded/meta-oe/recipes-core/systemd/systemd-speed-hacks.bb [new file with mode: 0644]

diff --git a/meta-openembedded/meta-oe/recipes-core/systemd/systemd-speed-hacks.bb b/meta-openembedded/meta-oe/recipes-core/systemd/systemd-speed-hacks.bb
new file mode 100644 (file)
index 0000000..c2dc7ea
--- /dev/null
@@ -0,0 +1,17 @@
+DESCRIPTION = "Collection of hacks to speed up systemd boot"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
+
+inherit allarch
+
+ALLOW_EMPTY_${PN} = "1"
+
+pkg_postinst_${PN} () {
+#!/bin/sh
+# I can run offline
+rm -f $D/lib/systemd/system/local-fs.target.wants/remount-rootfs.service
+rm -f $D/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup.service
+
+rm -f $D/lib/systemd/system/sysinit.target.wants/sys-fs-fuse-connections.mount
+rm -f $D/lib/systemd/system/sysinit.target.wants/sys-kernel-debug.mount
+}