pmaports w/ reMarkable 1 packages
Find a file
Caleb Connolly 95b22138c4
postmarketos-initramfs: log to kernel ringbuffer (MR 5000)
Rework logging to always log the initramfs output to the kernel
ringbuffer and deprecate PMOS_NO_OUTPUT_REDIRECT in favour of following
the kernel loglevel.

I know it seems silly to use syslogd for this, but it's necessary to
buffer writes to /dev/kmsg per-line if we want to correctly set the log
level, and "tee" does not do this (it will write multiple lines at once,
resulting in "<14>" prints in the ringbuffer). The main advantage to
this is that we won't have kernel logs cut in half by initramfs logs
anymore, everything will be nicely line buffered!

The previous logging solution of multiple "tail" commands would actually
fail to log up to the last few lines before a crash due to how tail
works (it polls the file and buffers lines).

I attempted something like this before, but I stopped after running into
ratelimiting issues. These are now resolved by configuring the
printk_devkmsg sysctl.

Dropping PMOS_NO_OUTPUT_REDIRECT:

The general motivations behind PMOS_NO_OUTPUT_REDIRECT was to avoid
cluttering up the console with initramfs logs when they aren't wanted;
this is now handled instead by the kernels logging facility. We log to
the ringbuffer at LOGLEVEL_INFO, so if "quiet" is specified on the
cmdline (or the loglevel is otherwise set above info) then initramfs
logs will also not be shown.

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
2024-06-18 12:35:04 -07:00
.ci CI: test installing of postmarketos-installkernel (MR 4681) 2024-06-07 11:11:58 +02:00
.githooks Add githooks from alpine (MR 4008) 2023-04-12 16:42:45 +02:00
.gitlab/issue_templates gitlab/issue_template: add EOL date to v23.12 2024-06-16 20:40:46 +02:00
cross cross/busybox-static-*: upgrade to 1.36.1-r29 2024-06-02 16:43:10 +02:00
device samsung-n2awifi: new device (MR 5233) 2024-06-17 15:37:54 -07:00
main postmarketos-initramfs: log to kernel ringbuffer (MR 5000) 2024-06-18 12:35:04 -07:00
modem modem/tqftpserv: upgrade and switch buildsystem to meson (MR 5076) 2024-04-30 03:36:35 +03:00
temp temp/pulseaudio: drop (MR 5163) 2024-06-11 11:20:10 +02:00
.clang-format Add .clang-format file (!465) 2019-06-26 22:36:15 +02:00
.ecrc CI: .ecrc: Exclude temp from check (MR 4858) 2024-02-27 08:24:53 -08:00
.editorconfig editorconfig: add CODEOWNERS (MR 4940) 2024-03-17 22:48:52 +00:00
.gitignore CI: wiki: adjust for 'pmbootstrap ci' (MR 3608) 2022-11-17 19:10:56 +01:00
.gitlab-ci.yml CI: use latest (stable) Alpine instead of Edge (MR 5174) 2024-05-27 13:33:23 -07:00
.mrhlpr.json mrhlpr.json: accept all generic package commits (MR 3131) 2023-03-15 21:37:37 +00:00
channels.cfg channels.cfg: update for v24.06 release 2024-06-16 19:50:32 +02:00
CODEOWNERS CODEOWNERS: Add Pablo and Newbyte to GNOME stuff (MR 5208) 2024-06-06 12:46:19 +02:00
COMMITSTYLE.md COMMITSTYLE: introduce (MR 3908) 2023-03-21 08:32:10 +01:00
LICENSE Add GPLv3 again 2018-08-23 21:44:22 +02:00
pmaports.cfg pmaports.cfg: set pmbootstrap_min_version=2.3.0 (MR 5046) 2024-05-15 17:08:00 +02:00
README.md README: add mention to COMMITSTYLE (MR 4010) 2023-04-13 23:22:01 -07:00