Add hook for unlocking root account
Task Info (Flyspray) | |
---|---|
Opened By | Nils (nlswrnr) |
Task ID | 70408 |
Type | Bug Report |
Project | Arch Linux |
Category | Arch Projects |
Version | None |
OS | All |
Opened | 2021-04-11 11:05:21 UTC |
Status | Assigned |
Assignee | Christian Hesse (eworm) |
Assignee | Giancarlo Razzolini (grazzolini) |
Assignee | Morten Linderud (Foxboron) |
Details
Description:
Right now the root account is locked in the initramfs. Locking root makes sense in most situations, but when working on early boot code like initramfs hooks, it prevents access to the emergency shell and therefore helpful logs.
Attached you will find a patch that adds a shadow
hook that overwrites the /etc/shadow
file in the initramfs with the one from the actual main OS, effectively unlocking the root account with the same password as the main OS. This hook should only be enabled when debugging other initramfs hooks, and should otherwise remain disabled.
Attachments
0001-Hook-for-adding-shadow-file-to-initramfs-to-unlock-r.patch