pmaports w/ reMarkable 1 packages
Find a file
Caleb Connolly 57744b984e
postmarketos-initramfs: export logs on boot failure (MR 4646)
Currently, when postmarketOS fails to boot up, retrieving any
information necessary to root cause the issue is non-trivial, requiring
building a custom initramfs with debug-shell enabled and then manually
copying out data.

Let's improve the situation by exporting logs automatically on boot
failure. This is safer than just exposing a root shell but still
provides a whole lot of useful info that should make duplicating and
triaging issues much easier for developers.

This commit implements the functionality and includes some generally
useful data. We then generate a README and expose files for each command/log
as well as an archive that can be easily attached to a GitLab issue.

To help with triaging, also record the version of the postmarketos-initramfs
package and hash the init.sh and init_functions.sh files.

For testing purposes, you can trigger the log recovery mode on-time by
creating an empty file named ".pmos_export_logs" in the /boot partition.

Signed-off-by: Caleb Connolly <caleb@connolly.tech>
2024-01-05 17:29:45 +00:00
.ci CI: add CODEOWNERS file sanity check (MR 4662) 2023-12-29 15:02:10 +01:00
.githooks Add githooks from alpine (MR 4008) 2023-04-12 16:42:45 +02:00
.gitlab/issue_templates issue_template: set EOL date for v23.06 2023-12-18 01:32:29 +01:00
cross cross/busybox-static-aarch64: upgrade to 1.36.1-r18 2024-01-01 15:16:59 +01:00
device xiaomi-lavender: move downstream port to unmaintained (MR 4676) 2024-01-04 02:39:11 +01:00
main postmarketos-initramfs: export logs on boot failure (MR 4646) 2024-01-05 17:29:45 +00:00
modem modem/msm-cros-efs-loader: update remote (MR 4559) 2023-11-19 10:35:44 -08:00
temp temp/xf86-video-opentegra: add a comment about removal (MR 4679) 2024-01-03 21:23:37 +01:00
.clang-format Add .clang-format file (!465) 2019-06-26 22:36:15 +02:00
.ecrc CI: .ecrc: remove version 2023-04-11 09:18:36 +02:00
.editorconfig CI: check if most text files have final_newline and conform to editorconfig (MR 3530) 2022-10-16 16:27:25 +02:00
.gitignore CI: wiki: adjust for 'pmbootstrap ci' (MR 3608) 2022-11-17 19:10:56 +01:00
.gitlab-ci.yml CI: add CODEOWNERS file sanity check (MR 4662) 2023-12-29 15:02:10 +01:00
.mrhlpr.json mrhlpr.json: accept all generic package commits (MR 3131) 2023-03-15 21:37:37 +00:00
channels.cfg channels.cfg: mark v23.12 as released 2023-12-18 01:32:26 +01:00
CODEOWNERS CODEOWNERS: fix typos, remove non-existing entries (MR 4662) 2023-12-29 15:02:10 +01: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=1.53.0 (MR 4472) 2023-10-12 20:16:05 +02:00
README.md README: add mention to COMMITSTYLE (MR 4010) 2023-04-13 23:22:01 -07:00