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/procroot #mount --rbind /sys /mnt/gentoo/sysroot #mount --make-rslave /mnt/gentoo/sysroot #mount --rbind /dev /mnt/gentoo/devroot #mount --make-rslave /mnt/gentoo/devroot #chroot /mnt/gentoo /bin/bashroot #source /etc/profileroot #export PS1="(chroot) ${PS1}"root #mkdir /bootroot #mount /dev/sda1 /bootroot #emerge-webrsyncroot #emerge --sync --quietroot #eselect news listroot #eselect news read allroot #eselect profile listroot #eselect profile set default/linux/amd64/13.0/systemdroot #eselect profile listAvailable 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-firmwareroot #nano -w /etc/fstabroot #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 @worldroot #emerge --deselect sys-fs/udevroot #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