Start Chroot:


1. Mount devices to mnt (including sub file systems)
Example:

sudo su
mount /dev/nvme0n1p3 /mnt
mount /dev/nvme0n1p2 /mnt/boot
mount /dev/nvme0n1p1 /mnt/boot/efi

2. Bind needed file systems to host system (of same ISA):

mount --types proc /proc /mnt/proc && mount --rbind /sys /mnt/sys && mount --make-rslave /mnt/sys && mount --rbind /dev /mnt/dev && mount --make-rslave /mnt/dev && mount --bind /run /mnt/run && mount --make-slave /mnt/run

3. Start chroot, set environment variables, and set terminal name:
chroot /mnt /bin/bash
source /etc/profile
export PS1="(chroot) ${PS1}"



5. To unmount, run:
sudo umount -l /mnt/dev{/shm,/pts,}
sudo umount -R /mnt



----------------------------------------------------------
Sources:
Gentoo Handbook (PPC) Base
Gentoo Handbook (PPC) Bootloader
Date: 2022 - 2024

Back