diff options
-rw-r--r-- | meta-oe/recipes-core/systemd/systemd-speed-hacks.bb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/meta-oe/recipes-core/systemd/systemd-speed-hacks.bb b/meta-oe/recipes-core/systemd/systemd-speed-hacks.bb new file mode 100644 index 0000000000..c2dc7eacce --- /dev/null +++ b/meta-oe/recipes-core/systemd/systemd-speed-hacks.bb | |||
@@ -0,0 +1,17 @@ | |||
1 | DESCRIPTION = "Collection of hacks to speed up systemd boot" | ||
2 | LICENSE = "MIT" | ||
3 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58" | ||
4 | |||
5 | inherit allarch | ||
6 | |||
7 | ALLOW_EMPTY_${PN} = "1" | ||
8 | |||
9 | pkg_postinst_${PN} () { | ||
10 | #!/bin/sh | ||
11 | # I can run offline | ||
12 | rm -f $D/lib/systemd/system/local-fs.target.wants/remount-rootfs.service | ||
13 | rm -f $D/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup.service | ||
14 | |||
15 | rm -f $D/lib/systemd/system/sysinit.target.wants/sys-fs-fuse-connections.mount | ||
16 | rm -f $D/lib/systemd/system/sysinit.target.wants/sys-kernel-debug.mount | ||
17 | } | ||