liveCD 进入桌面,无线联网,下载stage3
#parted /dev/sda
partition table:gpt
number start end file system name flags
1 efi system partition
#mount /dev/sda9 /mnt/gentoo
#ls
stage#*.tar.xz
#xz stage3.*.tar.xz
#tar xvf stag*.tar
root #
mirrorselect -i -o >> /mnt/gentoo/etc/portage/make.conf
https://mirrors.163.com/gentoo/
https://mirrors.tuna.tsinghua.edu.cn/gentoo/
root #
mkdir --parents /mnt/gentoo/etc/portage/repos.conf
root #
cp /mnt/gentoo/usr/share/portage/config/repos.conf /mnt/gentoo/etc/portage/repos.conf/gentoo.conf
root #
cp --dereference /etc/resolv.conf /mnt/gentoo/etc/
root #
mount --types proc /proc /mnt/gentoo/proc
root #
mount --rbind /sys /mnt/gentoo/sys
root #
mount --make-rslave /mnt/gentoo/sys
root #
mount --rbind /dev /mnt/gentoo/dev
root #
mount --make-rslave /mnt/gentoo/dev
root #
chroot /mnt/gentoo /bin/bash
root #
source /etc/profile
root #
export PS1="(chroot) ${PS1}"
root #
mkdir /boot
root #
mount /dev/sda1 /boot
root #
emerge-webrsync
root #
emerge --sync --quiet
root #
eselect news list
root #
eselect news read all
root #
eselect profile list
root #
eselect profile set default/linux/amd64/13.0/systemd
root #
eselect profile list
Available profile symlink targets: [10] default/linux/amd64/13.0/developer [11] default/linux/amd64/13.0/no-multilib [12] default/linux/amd64/13.0/systemd * [13] default/linux/amd64/13.0/x32 [14] hardened/linux/amd64
root #
emerge --ask --verbose --update --deep --newuse @world
#
emerge --ask sys-kernel/linux-firmware
root #
nano -w /etc/fstab
root #
emerge --ask sys-kernel/genkernel-next
/etc/genkernel.conf
# Use udev instead of mdev as the default device manager for the initramfs.
# If systemd and perhaps lvm is used, then this _must_ be turned on.
UDEV="yes"
root #
emerge -avDN @world
root #
emerge --deselect sys-fs/udev
root #
systemctl daemon-reexec
# cat /proc/bus/input/devices
I: Bus=0011 Vendor=0002 Product=0008 Version=0700
N: Name="AlpsPS/2 ALPS GlidePoint"
P: Phys=isa0060/serio1/input0
S: Sysfs=/devices/platform/i8042/serio1/input/input7
U: Uniq=
H: Handlers=event8
B: PROP=5
B: EV=b
B: KEY=e520 10000 0 0 0 0
B: ABS=260800000000003
This touchpad is identified as PS/2 Mouse,which only Left click and Right Click ^_^
Gentoo booted by efi 安装笔记(2016)
原文:https://www.cnblogs.com/rb258/p/10551542.html