57744b984e
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>
17 lines
598 B
Text
17 lines
598 B
Text
pkgname=postmarketos-mkinitfs-hook-maximum-attention
|
|
pkgver=0.2.0
|
|
pkgrel=0
|
|
pkgdesc="Script to activate all user-visible outputs from the initramfs (to confirm working kernel, for debugging only)"
|
|
url="https://postmarketos.org"
|
|
depends="postmarketos-mkinitfs"
|
|
source="00-maximum-attention.sh"
|
|
arch="noarch"
|
|
license="GPL2"
|
|
|
|
package() {
|
|
install -Dm644 "$srcdir"/00-maximum-attention.sh \
|
|
-t "$pkgdir"/usr/share/mkinitfs/hooks/
|
|
}
|
|
sha512sums="
|
|
ca3ef48e76e21fdb67fdf7477fb4739e329ce6ea04a52ac14e9365adb92058b21e08fcbc4020519c61ba20cd3c91d254118ece3d1818cb46f86e86f5ffa1b90a 00-maximum-attention.sh
|
|
"
|