• Share this text:
Report Abuse
Mounting/chrooting - posted by guest on 10th February 2021 05:19:09 AM

#!/bin/sh

mount --types proc /proc /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --make-rslave /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
mount --make-rslave /mnt/gentoo/dev

chroot /mnt/gentoo /bin/bash
source /etc/profile
export PS1="(chroot) ${PS1}"


mount /dev/sda2 /boot

Report Abuse

Login or Register to edit or copy and save this text. It's free.