aboutsummaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen3
diff options
context:
space:
mode:
Diffstat (limited to 'meta-rcar-gen3')
-rw-r--r--meta-rcar-gen3/recipes-core/systemd/systemd-serialgetty.bbappend6
-rw-r--r--meta-rcar-gen3/recipes-core/systemd/systemd_%.bbappend8
2 files changed, 14 insertions, 0 deletions
diff --git a/meta-rcar-gen3/recipes-core/systemd/systemd-serialgetty.bbappend b/meta-rcar-gen3/recipes-core/systemd/systemd-serialgetty.bbappend
new file mode 100644
index 0000000..f8d6e66
--- /dev/null
+++ b/meta-rcar-gen3/recipes-core/systemd/systemd-serialgetty.bbappend
@@ -0,0 +1,6 @@
+# W/A to fix serial-getty@.service timeout
+do_install_append () {
+ sed -e "/Before=getty.target/a Before=getty@tty1.service" \
+ -e "/.*RestartSec.*/d" \
+ -i ${D}${systemd_unitdir}/system/serial-getty@.service
+}
diff --git a/meta-rcar-gen3/recipes-core/systemd/systemd_%.bbappend b/meta-rcar-gen3/recipes-core/systemd/systemd_%.bbappend
index f414a2b..1fe259a 100644
--- a/meta-rcar-gen3/recipes-core/systemd/systemd_%.bbappend
+++ b/meta-rcar-gen3/recipes-core/systemd/systemd_%.bbappend
@@ -1 +1,9 @@
PACKAGECONFIG_remove = "timesyncd"
+
+# Set journal RuntimeMaxSize to 64M as default to fix timeout
+# dev-ttySN.device's when enable debug and use journal
+# as systemd.log_target
+do_install_append () {
+ sed -e 's/.*RuntimeMaxUse.*/RuntimeMaxUse=64M/' \
+ -i ${D}${sysconfdir}/systemd/journald.conf
+}