As of now, we know that initramfs has bash built in, and we have used it from time to time through rd.break hooks. This chapter’s aim is to understand how systemd provides us with a shell inside an initramfs. What are the steps that have to be followed, and how can one use it more effectively? But before that, let’s recap what we have learned so far about the debugging and emergency shells of initramfs.
8. Debugging Shells
Get Hands-on Booting: Learn the Boot Process of Linux, Windows, and Unix now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.