Note
The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
User:A-curious-cat
Jump to navigation
Jump to search
Funtoo-ramdisk luks+lvm install log:
- 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.
- 5.5 TB RAID-5 array partitioned as:
-
- 1024.0 KiB Bios Boot partition.
- 128.0 MiB Linux Boot partition.
- 5.5 TiB Luks partition.
- mkfs.ext2 /dev/sda2
- cryptsetup luksFormat /dev/sda3
- cryptsetup open /dev/sda3 root
- pvcreate /dev/mapper/root
- vgcreate vg /dev/mapper/root
- lvcreate -L232G --name swap vg
- lvcreate -l 100%FREE --name root vg
- mkswap /dev/mapper/vg-swap
- swapon /dev/mapper/vg-swap
- mkfs.ext4 /dev/mapper/vg-root
- mkdir -p /mnt/funtoo
- mount /dev/mapper/vg-root /mnt/funtoo
- mkdir /mnt/funtoo/boot
- mount /dev/sda2 /mnt/funtoo/boot
- set system date and time
- hwclock --systohc
- nmtui
- ping -c 3 www.funtoo.org
- cd /mnt/funtoo
- wget https://build.funtoo.org/next/x86-64bit/intel64-ivybridge/gnome-latest.tar.xz
- gpg --keyserver pgp.mit.edu --recv-key D3B948F82EE8B4020A0410789A658306E986E8EE
- gpg --edit-key E986E8EE
- gpg> trust
- Your decision? 5
- Do you really want to set this key to ultimate trust? (y/N) y
- gpg> quit
- download https://www.funtoo.org/GPG_Signatures/Metro_Plaintext_Keys as node.txt
- vim node.txt
- delete everything but the PGP public key block
- write changes and exit
- gpg --import node.txt
- wget https://build.funtoo.org/next/x86-64bit/intel64-ivybridge/gnome-latest.tar.xz.gpg
- gpg --verify gnome-latest.tar.xz.gpg gnome-latest.tar.xz
- tar --numeric-owner --xattrs --xattrs-include='*' -xpf gnome-latest.tar.xz
- mkdir /mnt/funtoo/proc
- mkdir: cannot create directory ■/mnt/funtoo/proc■: File exists
- mount -t proc none /mnt/funtoo/proc
- mkdir /mnt/funtoo/dev
- mkdir: cannot create directory ■/mnt/funtoo/dev■: File exists
- mount --rbind /dev /mnt/funtoo/dev
- mkdir /mnt/funtoo/ses
- mkdir: cannot create directory ■/mnt/funtoo/sys■: File exists
- mount --rbind /sys /mnt/funtoo/sys
- env -i HOME=/root TERM=$TERM $(which chroot) /mnt/funtoo /bin/bash -l
- passwd
- echo 'hostname="<redacted>"' > /etc/conf.d/hostname
- vim /etc/resolv.conf
- nameserver <ip-address-of-first-nameserver>
- nameserver <ip-address-of-second-nameserver>
- write changes and quit
- ln -sf /usr/share/zoneinfo/$(tzselect) /etc/localtime
- blkid
- cat > /etc/fstab << 'EOF'
- /dev/mapper/vg-swap none swap sw 0 0
- /dev/mapper/vg-root / ext4 noatime,nodiratime,defaults 0 1
- tmpfs /var/tmp/portage tmpfs uid=portage,gid=portage,mode=775,noatime 0 0
- EOF
- mkdir /var/tmp/portage
- chown portage:portage /var/tmp/portage
- mount /var/tmp/portage
- echo "root UUID=<uuid-of-luks-container> none luks,discard" >> /etc/crypttab
- ego sync
- cat > /etc/portage/package.use <<'EOF'
- /* device-mapper
- sys-kernel/linux-firmware initramfs
- sys-fs/cryptsetup -dynamic
- EOF
- emerge grub haveged intel-microcode linux-firmware cryptsetup lvm2 iucode_tool