RetroFed Forum
Your home away from modern life.
Inspecting initramfs
Post Reply
AuthorMessage
Agility0971 lemmy.world Agility0971@lemmy.world
Joined: 2023-06-11
Quote

If you ever wanted to chroot into the generated initramfs here are the steps. I thought it was interesting so wanted to share.

mkdir -p /mnt/initramfs
cd $_
lsinitcpio -x /boot/initramfs-linux.img
mount --bind /proc ./proc
mount --bind /sys ./sys
mount --bind /dev ./dev
SHELL=/bin/ash chroot .
1   Original
Post Reply
Back to top