Commit graph

9 commits

Author SHA1 Message Date
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
Luca Weiss
eb7204df91
main/postmarketos-mkinitfs-hook-netboot: use custom IP address if available (MR 4350)
With the recent changes in commit 80fff9242, it's possible that the
client IP address is customized. Use the same code as in
init_functions.sh to get the this potentially customized IP address to
use for the nbd-client.

[ci:skip-build]: already built successfully in CI
2023-08-27 19:19:28 +02:00
Luca Weiss
6eec0b0503
main/postmarketos-mkinitfs-hook-netboot: show Loading splash once done (MR 4212)
Since the original "Loading..." splash is being shown before the hooks
is being run, we should go back to the "Loading..." splash once we're
done in the hook.

[ci:skip-build]: already built successfully in CI
2023-07-01 19:43:01 +02:00
Newbyte
cb0e167a3c
main/postmarketos-mkinitfs-hook-netboot: use source_deviceinfo from devicepkg-utils (MR 4129)
[ci:ignore-count]
2023-06-03 17:44:26 +02:00
Pablo Correa Gómez
3c3ef48600
main/postmarketos-mkinitfs-hook-netboot: use source_deviceinfo (MR 4037) 2023-04-26 18:13:52 +02:00
Clayton Craft
55fe24f69d
postmarketos-mkinitfs-hook-netboot: support new mkintifs paths (MR 3895) 2023-03-08 21:30:30 -08:00
Caleb Connolly
f54600e966 main/postmarketos-mkinitfs-hook-*: use pbsplash (MR 2878) 2023-02-18 01:40:28 +00:00
Adam Plumb
b53b455af8
main/postmarketos-mkinitfs-hook-netboot: Use deviceinfo to determine rootfs sector size if set (MR 2898) 2022-02-01 18:57:02 +01:00
Mark Hargreaves
ac23869e4c
postmarketos-mkinitfs-hook-netboot: new aport (MR 2222)
Co-authored-by: Luca Weiss <luca@z3ntu.xyz>
2022-01-22 13:40:05 +01:00