this post was submitted on 13 Aug 2025
1 points (100.0% liked)

Arch Linux

505 readers
1 users here now

founded 2 years ago
MODERATORS
 

OC by @Agility0971@lemmy.world

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