© Yogesh Babar 2020
Y. BabarHands-on Bootinghttps://doi.org/10.1007/978-1-4842-5890-3_8

8. Debugging Shells

Yogesh Babar1 
(1)
Pune, India
 

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.

The Shell

rd.break
           drop to a shell at the end
rd.break drops us inside initramfs, and we can explore the initramfs environment through it. This initramfs environment is also called the emergency mode ...

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.