Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemmy.world
archlinux·Arch LinuxbyAgility0971

Inspecting initramfs

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 .
View original on lemmy.world
23

No replies yet

No comments on the original post yet.
Inspecting initramfs | Spyke