dd28314ba2
This incorprates the debug-shell functionality directly into the initramfs, so it's no longer necessary to build and boot a custom initramfs in order to debug your device. Additionally, the behaviour of the debug-shell is entirely reworked, It now creates an ACM serial gadget which can be accessed via any normal terminal emulator (picocom, minicom, etc; or PuTTY on windows). Rather than just invoking sh, the debug-shell now creates a respawning getty on both the new virtual console and the active console (this will either be the UART console or tty0/1). It is necessary to spawn these shells via getty since the logging rework means we can no longer assume that stdin/out/err reference a TTY. In addition to the above, it is now possible to trigger a log dump by holding volume up during boot. This can be useful for helping users debug their devices if the issue doesn't result in a failure that can be detected in the initramfs. With these changes, the console-shell and debug-shell hook packages are reduced to only adding the additional tools/features. console-shell is still required for fbkeyboard, and debug-shell for the setup_usb_storage tool. Co-Developed-by: Clayton Craft <craftyguy@postmarketos.org> Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
23 lines
1 KiB
Text
23 lines
1 KiB
Text
# Maintainer: Ferenc Bakonyi <bakonyi.ferenc@gmail.com>
|
|
pkgname=postmarketos-mkinitfs-hook-console-shell
|
|
pkgver=0.4.0
|
|
pkgrel=0
|
|
pkgdesc="Root console shell in the initramfs (security hole, for debugging only)"
|
|
url="https://postmarketos.org"
|
|
depends="postmarketos-mkinitfs devicepkg-utils fbdebug evtest linuxconsoletools reboot-mode fbkeyboard font-dejavu"
|
|
source="console-shell.files console-shell.modules"
|
|
arch="noarch"
|
|
license="GPL-2.0-or-later"
|
|
options="!check" # No tests
|
|
|
|
package() {
|
|
install -Dm644 "$srcdir"/console-shell.files \
|
|
"$pkgdir"/usr/share/mkinitfs/files/30-console-shell.files
|
|
install -Dm644 "$srcdir"/console-shell.modules \
|
|
"$pkgdir"/usr/share/mkinitfs/modules/30-console-shell.modules
|
|
}
|
|
|
|
sha512sums="
|
|
17b65cb24103e4c1459ae72bc036c1f06cdfcccf480389ecf6a28253d104b9b06d394cf53314a1ef4ace4ffc88b6b1384ef4894b7270d6b2cfdfc83592e12b2c console-shell.files
|
|
a9b069ed121ffeee887e0583d8cb46035ecf1fa90a26a4ecb3aa11ff03178b2b08621f6676db6b2350f290694c04aabcf36f2ce3e0813a76dde9a33555edb112 console-shell.modules
|
|
"
|