diff options
Diffstat (limited to 'meta/recipes-core/systemd/systemd-conf_242.bb')
-rw-r--r-- | meta/recipes-core/systemd/systemd-conf_242.bb | 56 |
1 files changed, 20 insertions, 36 deletions
diff --git a/meta/recipes-core/systemd/systemd-conf_242.bb b/meta/recipes-core/systemd/systemd-conf_242.bb index 7fe2e1105b..96beea53a7 100644 --- a/meta/recipes-core/systemd/systemd-conf_242.bb +++ b/meta/recipes-core/systemd/systemd-conf_242.bb | |||
@@ -1,48 +1,32 @@ | |||
1 | require systemd.inc | ||
2 | |||
3 | SUMMARY = "Systemd system configuration" | 1 | SUMMARY = "Systemd system configuration" |
4 | DESCRIPTION = "Systemd may require slightly different configuration for \ | 2 | DESCRIPTION = "Systemd may require slightly different configuration for \ |
5 | different machines. For example, qemu machines require a longer \ | 3 | different machines. For example, qemu machines require a longer \ |
6 | DefaultTimeoutStartSec setting." | 4 | DefaultTimeoutStartSec setting." |
5 | LICENSE = "MIT" | ||
6 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
7 | 7 | ||
8 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 8 | SRC_URI = "\ |
9 | 9 | file://journald.conf \ | |
10 | CONFFILES_${PN} = "${sysconfdir}/systemd/coredump.conf \ | 10 | file://logind.conf \ |
11 | ${sysconfdir}/systemd/journald.conf \ | 11 | file://system.conf \ |
12 | ${sysconfdir}/systemd/logind.conf \ | 12 | file://system.conf-qemuall \ |
13 | ${sysconfdir}/systemd/system.conf \ | 13 | " |
14 | ${sysconfdir}/systemd/user.conf" | ||
15 | |||
16 | FILES_${PN} = "${sysconfdir}/systemd" | ||
17 | |||
18 | do_configure[noexec] = '1' | ||
19 | do_compile[noexec] = '1' | ||
20 | 14 | ||
21 | do_install() { | 15 | do_install() { |
22 | rm -rf ${D}/${sysconfdir}/systemd | 16 | install -D -m0644 ${WORKDIR}/journald.conf ${D}${systemd_unitdir}/journald.conf.d/00-${PN}.conf |
23 | install -d ${D}/${sysconfdir}/systemd | 17 | install -D -m0644 ${WORKDIR}/logind.conf ${D}${systemd_unitdir}/logind.conf.d/00-${PN}.conf |
24 | 18 | install -D -m0644 ${WORKDIR}/system.conf ${D}${systemd_unitdir}/system.conf.d/00-${PN}.conf | |
25 | install -m 0644 ${S}/src/coredump/coredump.conf ${D}${sysconfdir}/systemd/coredump.conf | ||
26 | |||
27 | install -m 0644 ${S}/src/journal/journald.conf ${D}${sysconfdir}/systemd/journald.conf | ||
28 | # Enable journal to forward message to syslog daemon | ||
29 | sed -i -e 's/.*ForwardToSyslog.*/ForwardToSyslog=yes/' ${D}${sysconfdir}/systemd/journald.conf | ||
30 | # Set the maximium size of runtime journal to 64M as default | ||
31 | sed -i -e 's/.*RuntimeMaxUse.*/RuntimeMaxUse=64M/' ${D}${sysconfdir}/systemd/journald.conf | ||
32 | |||
33 | install -m 0644 ${S}/src/login/logind.conf.in ${D}${sysconfdir}/systemd/logind.conf | ||
34 | # Set KILL_USER_PROCESSES to yes | ||
35 | sed -i -e 's/@KILL_USER_PROCESSES@/yes/' ${D}${sysconfdir}/systemd/logind.conf | ||
36 | |||
37 | install -m 0644 ${S}/src/core/system.conf.in ${D}${sysconfdir}/systemd/system.conf | ||
38 | # Set MEMORY_ACCOUNTING_DEFAULT to yes | ||
39 | sed -i -e 's/@MEMORY_ACCOUNTING_DEFAULT@/yes/' ${D}${sysconfdir}/systemd/system.conf | ||
40 | |||
41 | install -m 0644 ${S}/src/core/user.conf ${D}${sysconfdir}/systemd/user.conf | ||
42 | } | 19 | } |
43 | 20 | ||
44 | # Based on change from YP bug 8141, OE commit 5196d7bacaef1076c361adaa2867be31759c1b52 | 21 | # Based on change from YP bug 8141, OE commit 5196d7bacaef1076c361adaa2867be31759c1b52 |
45 | do_install_append_qemuall() { | 22 | do_install_append_qemuall() { |
46 | # Change DefaultTimeoutStartSec from 90s to 240s | 23 | install -D -m0644 ${WORKDIR}/system.conf-qemuall ${D}${systemd_unitdir}/system.conf.d/01-${PN}.conf |
47 | echo "DefaultTimeoutStartSec = 240s" >> ${D}${sysconfdir}/systemd/system.conf | ||
48 | } | 24 | } |
25 | |||
26 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
27 | |||
28 | FILES_${PN} = "\ | ||
29 | ${systemd_unitdir}/journald.conf.d/ \ | ||
30 | ${systemd_unitdir}/logind.conf.d/ \ | ||
31 | ${systemd_unitdir}/system.conf.d/ \ | ||
32 | " | ||