Eu consertei! Aqui estão os comandos que eu usei desta vez:
# parted /dev/sda
(parted) mklabel msdos
(parted) mkpart primary ext2 2MiB 2GiB
(parted) mkpart primary ext4 2GiB 100%
(parted) set 1 boot on
(parted) q
# mkfs.ext2 /dev/sda1
# cryptsetup --key-size 512 --hash sha512 --iter-time 5000 --use-random luksFormat /dev/sda2
# cryptsetup open --type luks /dev/sda2 r00t
# pvcreate /dev/mapper/r00t
# vgcreate MyStorage /dev/mapper/r00t
# lvcreate -L 2GiB MyStorage -n swapvol
# lvcreate -L 3GiB MyStorage -n tmpvol
# lvcreate -L 30GiB MyStorage -n rootvol
# lvcreate -l +100%FREE MyStorage -n homevol
# mkswap /dev/mapper/MyStorage-swapvol
# mkfs.ext4 /dev/mapper/MyStorage-homevol
# mkfs.ext4 /dev/mapper/MyStorage-rootvol
# mkfs.ext4 /dev/mapper/MyStorage-tmpvol
# mount /dev/MyStorage/rootvol /mnt
# mkdir /mnt/home
# mount /dev/MyStorage/homevol /mnt/home
# mkdir /mnt/tmp
# mount /dev/MyStorage/tmpvol /mnt/tmp
# swapon /dev/MyStorage/swapvol
# mkdir /mnt/boot
# mount /dev/sda1 /mnt/boot
# nano /etc/mkinitcpio.conf
added "encrypt lvm2" to /etc/mkinitcpio.conf hooks: HOOKS="base udev autodetect modconf block encrypt lvm2 filesystems keyboard fsck"
# nano /etc/resolv.conf
replaced DNS with 8.8.8.8
# pacstrap /mnt base base-devel
# genfstab -U -p /mnt >> /mnt/etc/fstab
# arch-chroot /mnt /bin/bash
uncommened e_us.UTF-8 UTF-8 in /etc/locale.gen
# locale-gen
# echo LANG=en_US.UTF-8 > /etc/locale.conf
# export LANG=en_US.UTF-8
# ln -sf /usr/share/zoneinfo/Europe/Sofia /etc/localtime
# hwclock --systohc --utc
# echo myhstnm > /etc/hostname
added "myhstnm" to /etc/hosts
# systemctl enable [email protected]
# nano /etc/mkinitcpio.conf
added "encrypt lvm2" to /etc/mkinitcpio.conf hooks: HOOKS="base udev autodetect modconf block encrypt lvm2 filesystems keyboard fsck"
# mkinitcpio -p linux
# nano /etc/default/grub
changed: GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda2:MyStorage root=/dev/mapper/MyStorage"
# grub-install --recheck /dev/sda
# grub-mkconfig -o /boot/grub/grub.cfg
# nano /etc/lvm/lvm.conf
changed "use_lvmetad = 1" to "use_lvmetad= 0"
# grub-mkconfig -o /boot/grub/grub.cfg
# exit
# reboot
eu mudei
GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda2:MyStorage root=/dev/mapper/MyStorage"
.