clearfog: make sure that journald logs can fit into /run
systemd started using just 10% of RAM size for /run (and then bumped
that to 20%, which is still a smaller amount than our log size default
allowance of 200MB).
And instead of putting three commands into KConfig, use a script for
that.
Fixes: b7181a3 (improve logging)
Change-Id: I952ce37e9148f7389d3fff8a469352abf9c1127a
diff --git a/board/czechlight/clearfog/post_build.sh b/board/czechlight/clearfog/post_build.sh
new file mode 100755
index 0000000..e376fbe
--- /dev/null
+++ b/board/czechlight/clearfog/post_build.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -ex
+
+${BR2_EXTERNAL_CZECHLIGHT_PATH}/board/czechlight/clearfog/copy-boot-scr.sh
+
+${BR2_EXTERNAL_CZECHLIGHT_PATH}/board/czechlight/common/os-release.sh
+
+# enable about 250MB of ramfs for the journal log
+sed -i -n \
+ -e '/\s\/run\s/!p' \
+ -e '$a tmpfs /run tmpfs rw,nosuid,nodev,size=256000k,nr_inodes=819200,mode=755' \
+ ${TARGET_DIR}/etc/fstab