Inspecting initramfs

a year ago by Agility0971 to c/archlinux

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 .
archlinux
archlinux

@lemmy.ml

login for more options
10003
428
80

The beloved lightweight distro

go to feed...