§2023-08-30
¶ Step 1. arch-chroot ENV
sdb 8:16 0 232.9G 0 disk
├─sdb1 8:17 0 100M 0 part /boot/efi
├─sdb2 8:18 0 512M 0 part /boot
├─sdb3 8:19 0 60G 0 part /
├─sdb4 8:20 0 1K 0 part
├─sdb5 8:21 0 16G 0 part
└─sdb6 8:22 0 156.3G 0 part
/dev/sdb2: UUID="0E7C-DDB1" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="dccd4c68-02"
/dev/sdb5: UUID="88d07bb3-0772-42ba-a98d-fa53e3144c53" TYPE="swap" PARTUUID="dccd4c68-05"
/dev/sdb3: UUID="ae599083-2605-44af-a30e-fcd0a47bc37e" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="dccd4c68-03"
/dev/sdb1: UUID="0AC9-EBFE" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="dccd4c68-01"
/dev/sdb6: UUID="b73c695c-1626-41e5-b079-a4a9295590fc" BLOCK_SIZE="512" TYPE="xfs" PARTUUID="dccd4c68-06"
¶Step 2:
nstalling the Linux Kernel
There are multiple ways to install the Linux Kernel in Gentoo. Either manually configure all of its features or use a pre-built one from the Gentoo developers. For our purposes, we are opting for the latter.
To install the pre-built Linux kernel, install two things – the installkernel package and the kernel itself – by running the following command:
(chroot) x8664Arch /usr/src # ln -sf linux-6.1.46-gentoo linux
chroot) x8664Arch /usr/src # emerge --ask sys-kernel/installkernel-gentoo sys-kernel/gentoo-kernel-bin
¶ Step 3: Installing the Bootloader
From there, the final step in installing Gentoo is the bootloader, a simple program that sits between the BIOS and the Linux kernel. Its function is to instruct the BIOS to load the kernel, which then bootstraps the operating system.
(chroot) x8664Arch #emerge --ask sys-boot/grub
/usr/bin/grub-script-check
/usr/bin/grub-mkrelpath
/usr/bin/grub-mkimage
/usr/bin/grub-editenv
/usr/bin/grub-fstest
/usr/bin/grub-mkpasswd-pbkdf2
/usr/bin/grub-mkrescue
/usr/sbin/grub-bios-setup
/usr/bin/grub-mkstandalone
/usr/bin/grub-mknetdir
/usr/bin/grub-menulst2cfg
/usr/bin/grub-syslinux2cfg
/usr/sbin/grub-sparc64-setup
/usr/sbin/grub-ofpathname
/usr/sbin/grub-macbless
/usr/bin/grub-glue-efi
/usr/bin/grub-render-label
/usr/bin/grub-file
/usr/sbin/grub-install
/usr/sbin/grub-probe
/usr/bin/grub-mklayout