Gentoo booted by efi 安装笔记(2016)
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
* ebuild.sh, line 133: Called src_compile
* environment, line 4217: Called multilib-minimal_src_compile
* environment, line 2339: Called multilib_foreach_abi 'multilib-minimal_abi_src_compile'
* environment, line 2570: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
* environment, line 2217: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
* environment, line 2215: Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_compile'
* environment, line 400: Called multilib-minimal_abi_src_compile
* environment, line 2333: Called multilib_src_compile
* environment, line 2826: Called building
* environment, line 2794: Called die
* The specific snippet of code:
* ejam ${OPTIONS} ${PYTHON_OPTIONS} || die "Building of Boost libraries failed";
Based on your comment about possible OOM error... tried -jX until -j1 and was able to build without error. I'll bill this off as memory usage due to livecd.
So for anyone else who stumbles into this one based on any keywords present in this thread...
Ignore suggestion of using -j(number of cores + 1) and instead set -j1 and see if it builds,
# 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 ^_^