this post was submitted on 13 Aug 2025
20 points (95.5% liked)

Arch Linux

9029 readers
24 users here now

The beloved lightweight distro

founded 5 years ago
MODERATORS
 

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 .
no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here