§2023-08-29
After kernel was prepared,
¶Step 1. /etc/fstab
(chroot) x8664Arch /usr/src/linux-6.1.46-gentoo # mount /dev/sdb2 /boot
(chroot) x8664Arch /usr/src/linux-6.1.46-gentoo # mkdir /boot/efi
(chroot) x8664Arch /usr/src/linux-6.1.46-gentoo # mount /dev/sdb1 /boot/efi
(chroot) x8664Arch /usr/src/linux-6.1.46-gentoo # lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
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
sdb
├─sdb1 vfat FAT32 0AC9-EBFE <-- EFI
├─sdb2 vfat FAT32 0E7C-DDB1 <-- boot
├─sdb3 ext4 1.0 ae599083-2605-44af-a30e-fcd0a47bc37e <-- /
├─sdb4 <-- logical
├─sdb5 swap 1 88d07bb3-0772-42ba-a98d-fa53e3144c53
└─sdb6 xfs b73c695c-1626-41e5-b079-a4a9295590fc
/dev/sdb3: UUID="ae599083-2605-44af-a30e-fcd0a47bc37e" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="dccd4c68-03"
/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/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"
- /etc/fstab
<fs> <mountpoint> <type> <opts> <dump> <pass>
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sdb1
UUID=0AC9-EBFE /boot/efi vfat default 0 2
# /dev/sdb2
UUID=0E7C-DDB1 /boot vfat default 0 2
# /dev/sdb3
UUID=UUID=ae599083-2605-44af-a30e-fcd0a47bc37e / ext4 rw,relatime 0 1
¶Step 2: add alexlai, and root
# passed <-- root
# useradd -u 1026 -g 1026 -m alexlai
# passwd alexlai
¶Step 3. add additionla softweare
¶Step 4. o install the GRUB Bootloader,
?? emerge --ask sys-boot/grub
emerge -av sys-kernel/genkernel
mount /dev/sdb2 /boot
mkdir /boot/efi
mkdir /boot/grub
mount /dev/sdb1 /boot/efi
grub-install --target=x86_64-efi --efi-directory=/boot/efi grub-mkconfig -o /boot/grub/grub.cfg