pmaports/main/postmarketos-initramfs
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
..
00-default.modules main/postmarketos-mkinitfs: use NCM instead of RNDIS (MR 3670) 2023-11-20 16:33:57 -08:00
00-initramfs-base.dirs main/postmarketos-initramfs: switch_root with /dev (MR 3230) (MR 4204) 2023-09-07 20:33:55 +01:00
00-initramfs-base.files main/postmarketos-initramfs: add new deviceinfo path to initramfs (MR 4283) 2023-09-25 09:20:32 +02:00
00-initramfs-extra-base.files main/postmarketos-initramfs: switch_root with /dev (MR 3230) (MR 4204) 2023-09-07 20:33:55 +01:00
APKBUILD postmarketos-initramfs: export logs on boot failure (MR 4646) 2024-01-05 17:29:45 +00:00
init.sh postmarketos-initramfs: export logs on boot failure (MR 4646) 2024-01-05 17:29:45 +00:00
init_functions.sh postmarketos-initramfs: export logs on boot failure (MR 4646) 2024-01-05 17:29:45 +00:00
mdev.conf main/postmarketos-initramfs: use mdev properly (MR 4204) 2023-09-07 20:33:55 +01:00
unudhcpd.conf main/postmarketos-initramfs: support custom IP addresses for USB net (MR 3349) 2023-08-23 13:06:15 -07:00