I will always be installing from stage3 not the boot media since I can't
bring up speakup and have it read everything on the screen after booting.
I'm glad the script will be helpful for you and anyone else that can use
it in my situation or who prefers to install starting with stage3.


--
 Jude <jdashiel at panix dot com>
 "There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo.
 Please use in that order."
 Ed Howdershelt 1940.

On Mon, 27 May 2024, Dale wrote:

> 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
>
> :-)  :-) 
>

Reply via email to