Jude DaShiell wrote: > Here's the script I used to get from an existing system into the gentoo > environment to install the gentoo system. I started with stage3 and chose > openrc and went down that path. > > #!/usr/bin/bash > # file: sgentoo.sh - setup gentoo mounts > echo "once disk setup from gentoo handbook is complete" > echo "press <enter> to chroot into gentoo environment." > read > sudo mount /dev/sda3 /mnt/gentoo > sudo mount /dev/sda1 /mnt/gentoo/efi > sudo swapon /dev/sda2 > sudo cp --dereference /etc/resolv.conf /mnt/gentoo/etc > sudo mount --types proc /proc /mnt/gentoo/proc > sudo mount --rbind /sys /mnt/gentoo/sys > sudo mount --rbind /dev /mnt/gentoo/dev > sudo mount --bind /run /mnt/gentoo/run > sudo chroot /mnt/gentoo /bin/bash > > I found this useful since the gentoo installation as far as it went wasn't > done in a single session. >
I found this useful when I was installing on my NAS box, a couple of them actually. I'm still on old fashioned BIOS but this may come in handy. It should work for EFI as well. From the install handbook. *Tip* If using Gentoo's install media, this step can be replaced with simply: arch-chroot /mnt/gentoo. If you are booting from one of the Gentoo boot media, that command should mount everything and chroot you into the system. All that mounting is a bit tedious at times. ;-) I'm not sure when that command got added but it is nice to have. You can find that in the chrooting section. Hope that helps. The next install if nothing else. Dale :-) :-)