Inspecting the initramfs

This page explains how to connect to your device when it has booted to the initramfs by installing the debug-shell hook. This is useful if you want to know more about the boot process, simply inspect the initramfs or if you want to debug why something doesn't work.

It is possible to enable a telnet daemon that gives you a shell this way:

If the telnet command does not work out of the box, read connect via USB Networking in the Initramfs.

Enable initramfs-extra
To enable functionality from initramfs-extra, run the following commands in the telnet shell:

In general, while inspecting the initramfs, you can execute commands in order listed in postmarketos-initramfs/init.sh, starting with the line  and below (everything above it was already executed before entering debug-shell).

Additional programs
After installing the  initramfs hook, the ,   and   programs are available in the initramfs.

Tips and tricks

 * Initramfs development has more generalize information about working with initfs.
 * copy files to/from the initramfs with  while it is running