首先下载 stage3,挂载磁盘,并且把它放到 /mnt/gentoo 中.

tar xvpf stage3-latest.tar.bz2 --xattrs

然后我们 chroot 进去

cd /mnt/gentoo
mount -t proc none proc
mount --rbind /dev dev
mount --rbind /sys sys
chroot . /bin/bash
source /etc/profile

之后我们更新 portage tree,并调整 make.conf

emerge-websync
nano -w /etc/portage/make.conf

以上都是正常的安装步骤,接下来就是stage1的安装步骤了.
首先我们安装工具链.

emerge -av1 gcc

首先安装 gcc,接下来是 binutils 和 GNU C 库和 init.

emerge -av1 binutils glibc
emerge --update --nodeps -a udev-init-scripts procps
emerge --update -a shadow openrc udev

接下来就是bootstrap所有的工具链.

cd /usr/portage/scripts
./bootstrap.sh

OK,接下来找上一杯咖啡,喝一口,看上几个视频,solo一局killing floor,总之消耗一些时间.

在bootstrap完毕之后,构建系统.

emerge -e system

接下来就是安装内核和grub之类的了,请跳转另外一个教程.


Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.