From 5561f77ee34d2485b5f3993bcb5c2ce9e6d98e90 Mon Sep 17 00:00:00 2001 From: martin schmidt Date: Wed, 12 Jan 2022 15:58:49 +0000 Subject: [PATCH] Update README.md --- README.md | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 975767b..7b34747 100644 --- a/README.md +++ b/README.md @@ -48,31 +48,34 @@ $ vgcreate main /dev/mapper/lvm Your root volume should be 25-50 GB big, your home volume takes up the remaining space.** $ lvcreate -L 25G -n root main $ lvcreate -l 100%FREE -n home main - +**Create the filesystems and mount your volumes.** $ mkfs.fat -F 32 -n UEFI /dev/sda1 **-F specifies the type of file allocation tables used (12, 16 or 32 bit).** **-n sets the volume name (label) of the filesystem to "UEFI".** -**Create ext4 filesystem on primary partition.** -$ mkfs.ext4 /dev/mapper/root +**Create ext4 filesystem on root and home volumes.** +$ mkfs.ext4 -L root /dev/mapper/main-root +$ mkfs.ext4 -L home /dev/mapper/main-home **Create mountpoints and mount partitions.** -$ mount /dev/mapper/root /mnt +$ mount /dev/mapper/main-root /mnt $ mkdir /mnt/boot -$ mount /dev/sda1 /mnt/boot +$ mkdir /mnt/home +$ mount /dev/sda1 /mnt/boot +$ mount /dev/mapper/main-home /mnt/home **Optionally update mirrorlist using reflector.** **In this case use the latest 10 mirrors from Germany, that have been synchronized within the last 24 hours and sort the by download-rate and write them to the pacman mirrorlist.** -$ reflector --verbose --latest 10 --country Germany --age 24 --sort rate --save /etc/pacman.d/mirrorlist +$ reflector --verbose --latest 10 --country Germany --age 24 --protocol https --sort rate --save /etc/pacman.d/mirrorlist **Install base system and basic packages (network, editor, sudo).** **The package base-devel is not necessary but recommended.** -$ pacstrap /mnt base base-devel linux linux-firmware networkmanager nano sudo +$ pacstrap /mnt base base-devel linux linux-firmware networkmanager nano sudo lvm2 **Generate fstab.** -$ genfstab -Lp /mnt > /mnt/etc/fstab -**-L = Use labels for source identifiers (shortcut for -t LABEL).** +$ genfstab -Up /mnt > /mnt/etc/fstab +**-U = Use UUID for source identifiers (shortcut for -t LABEL).** **-p Exclude pseudofs mounts (default behavior).** **Chroot into your installation.** @@ -92,7 +95,7 @@ $ locale-gen $ nano /etc/mkinitcpio.conf **MODULES=(ext4)** -**HOOKS=(base udev autodetect modconf block keyboard keymap encrypt filesystems fsck shutdown)** +**HOOKS=(base udev autodetect modconf block keyboard keymap encrypt lvm2 filesystems fsck shutdown)** **Create mkinitcpio.** $ mkinitcpio -p linux @@ -114,7 +117,7 @@ $ nano /bootloader/entries/arch.conf title Arch Linux linux /vmlinuz-linux initrd /initramfs-linux.img -options cryptdevice=/dev/sda2:root root=/dev/mapper/root rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8 +options cryptdevice=/dev/sda2:main root=/dev/mapper/main-root rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8 ``` **Create a fallback config.** @@ -141,6 +144,7 @@ default arch.conf **Exit and reboot.** $ exit $ umount /mnt/boot +$ umount /mnt/home $ reboot **Enter encryption-password and login as root.**