This commit is contained in:
rickellis
2018-01-20 18:13:49 -07:00
parent 401fc7b536
commit 24f5def155
+94 -2
View File
@@ -104,9 +104,9 @@ __NOTE:__ _Since we're using LVM we only need two drive partitions. The first is
parted /dev/sd*
(parted) mklabel gpt
(parted) mkpart primary 1MiB 512MiB name 1 boot
(parted) set 1 boot on
(parted) mkpart primary 512MiB 100% name 2 root
(parted) quit
(parted) quit
### Create a physical volume on the root partition
@@ -153,6 +153,98 @@ The sizes below can be specified in megabytes (100M) or gigs (10G)
---
## Update mirrorlist
By default Arch has a selection of servers from various countries listed in the local mirrorlist. While you might get adequate results with the default server list, to ensure the best possible download speeds it is recommended that you update the mirrorlist with servers from your country. To do that you use an application called reflector.
### Install reflector:
Note that reflector has two dependencies which should be installed by default in Arch, but to be safe we specify them:
sudo pacman -S reflector rsync curl
### Backup ysour local mirrorlist
sudo cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.baks
### Install the new mirrolist
Note: If you are in a different country change "United States" to your country.
sudo reflector --verbose --country 'United States' -l 5 --sort rate --save /etc/pacman.d/mirrorlist
---
## Install Arch Linux
pacstrap -i /mnt base base-devel
---
### Configure fstab
We now need to update the filesystem table on the new installation. Fstab contains the association between filesystems and mountpoints. You won't be able to boot without it. To update it, run:
genfstab -U -p /mnt >> /mnt/etc/fstab
You can verify fstab with:
cat /mnt/etc/fstab
---
## Change to your root directory
In order to configure our new system we need to change root:
arch-chroot /mnt
---
## Install and configure bootloader
While there are various bootloaders that may be used, since the Linux kernel has a built-in EFI image, all we need is a way to execute it. For that we will install systemd-boot, a minimalist boot manager:
bootctl --path=/boot install
### Configure the loader.conf file
Using nano we can edit the config file:
nano /boot/loader/loader.conf
Make sure that only the following lines are in the file:
default arch
timeout 3
editor 0
__Notes:__ The timeout setting is the number of seconds the menu is displayed. The editor setting determines whether the kernel parameters editor is accessible. For security reasons we disable this.
### Get the UUID for root
First we need to determine the UUID of our root partition. In order to get the UUID you first need to know what device node root is on. Look it up using:
fdisk -l
The device node will be something like
/dev/sda2
You can now get the UUID that corrisponds to the root node you just looked up using:
ls -l /dev/disk/by-partuuid/
Or alternately you can look it with:
blkid -s PARTUUID -o value /dev/sda2
### Configure the arch.conf file
Armed with the UUID we just gathered in the previous step we can now insert it into the arch config file. Open the file using:
nano /boot/loader/entries/arch.conf
And add the following info. Make sure to replace __YOUR UUID__ with the ID gathered previously, and if your root drive is formatted with something other than ext4 update that info as well.
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=PARTUUID=__YOUR UUID__ rootfstype=__ext4__ add_efi_memmap