Note

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

User:A-curious-cat

From Funtoo
Jump to navigation Jump to search

Funtoo-ramdisk luks+lvm install log:

  1. Booted using official Funtoo liveUSB and server with 2 Intel(R) Xeon(R) E5-2630 cpus, 116 GiB RAM, and a 5.5 TB RAID-5 array.
  2. 5.5 TB RAID-5 array partitioned as:
    1. 1024.0 KiB Bios Boot partition.
    2. 128.0 MiB Linux Boot partition.
    3. 5.5 TiB Luks partition.
  3. mkfs.ext2 /dev/sda2
  4. cryptsetup luksFormat /dev/sda3
  5. cryptsetup open /dev/sda3 root
  6. pvcreate /dev/mapper/root
  7. vgcreate vg /dev/mapper/root
  8. lvcreate -L232G --name swap vg
  9. lvcreate -l 100%FREE --name root vg
  10. mkswap /dev/mapper/vg-swap
  11. swapon /dev/mapper/vg-swap
  12. mkfs.ext4 /dev/mapper/vg-root
  13. mkdir -p /mnt/funtoo
  14. mount /dev/mapper/vg-root /mnt/funtoo
  15. mkdir /mnt/funtoo/boot
  16. mount /dev/sda2 /mnt/funtoo/boot
  17. set system date and time
  18. hwclock --systohc
  19. nmtui
  20. ping -c 3 www.funtoo.org
  21. cd /mnt/funtoo
  22. wget https://build.funtoo.org/next/x86-64bit/intel64-ivybridge/gnome-latest.tar.xz
  23. gpg --keyserver pgp.mit.edu --recv-key D3B948F82EE8B4020A0410789A658306E986E8EE
  24. gpg --edit-key E986E8EE
    1. gpg> trust
    2. Your decision? 5
    3. Do you really want to set this key to ultimate trust? (y/N) y
    4. gpg> quit
  25. download https://www.funtoo.org/GPG_Signatures/Metro_Plaintext_Keys as node.txt
  26. vim node.txt
    1. delete everything but the PGP public key block
    2. write changes and exit
  27. gpg --import node.txt
  28. wget https://build.funtoo.org/next/x86-64bit/intel64-ivybridge/gnome-latest.tar.xz.gpg
  29. gpg --verify gnome-latest.tar.xz.gpg gnome-latest.tar.xz
  30. tar --numeric-owner --xattrs --xattrs-include='*' -xpf gnome-latest.tar.xz
  31. mkdir /mnt/funtoo/proc
    • mkdir: cannot create directory ■/mnt/funtoo/proc■: File exists
  32. mount -t proc none /mnt/funtoo/proc
  33. mkdir /mnt/funtoo/dev
    • mkdir: cannot create directory ■/mnt/funtoo/dev■: File exists
  34. mount --rbind /dev /mnt/funtoo/dev
  35. mkdir /mnt/funtoo/ses
    • mkdir: cannot create directory ■/mnt/funtoo/sys■: File exists
  36. mount --rbind /sys /mnt/funtoo/sys
  37. env -i HOME=/root TERM=$TERM $(which chroot) /mnt/funtoo /bin/bash -l
  38. passwd
  39. echo 'hostname="<redacted>"' > /etc/conf.d/hostname
  40. vim /etc/resolv.conf
    1. nameserver <ip-address-of-first-nameserver>
    2. nameserver <ip-address-of-second-nameserver>
    3. write changes and quit
  41. ln -sf /usr/share/zoneinfo/$(tzselect) /etc/localtime
  42. blkid
  43. cat > /etc/fstab << 'EOF'
    1. /dev/mapper/vg-swap none swap sw 0 0
    2. /dev/mapper/vg-root / ext4 noatime,nodiratime,defaults 0 1
    3. tmpfs /var/tmp/portage tmpfs uid=portage,gid=portage,mode=775,noatime 0 0
    4. EOF
  44. mkdir /var/tmp/portage
  45. chown portage:portage /var/tmp/portage
  46. mount /var/tmp/portage
  47. echo "root UUID=<uuid-of-luks-container> none luks,discard" >> /etc/crypttab
  48. ego sync
  49. cat > /etc/portage/package.use <<'EOF'
      • /* device-mapper
    1. sys-kernel/linux-firmware initramfs
    2. sys-fs/cryptsetup -dynamic
    3. EOF
  50. emerge grub haveged intel-microcode linux-firmware cryptsetup lvm2 iucode_tool