How to change/reset the root password using 'init=/bin/sh'?
Issue
- When using
rd.breakto change therootpassword, the system goes into Emergency mode and asks for therootpassword orCtrl+Dto continue.
Environment
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 7
- dracut
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.