archlinux unfinished

main
hau 2020-10-07 15:40:52 +07:00
parent 3e1b40f307
commit c443ed3a4c
3 changed files with 27 additions and 15 deletions

View File

@ -2,12 +2,10 @@
Read [systemd-boot](https://wiki.archlinux.org/index.php/Systemd-boot).
Assume you use Arch Linux, and [EFI system partition](https://wiki.archlinux.org/index.php/EFI_system_partition) mount point is `/boot`.
Install:
Install using XBOOTLDR:
```sh
bootctl --path=/boot install
bootctl --esp-path=/efi --boot-path=/boot install
```
Update:
@ -16,7 +14,7 @@ Update:
bootctl update
```
Edit `/boot/loader/loader.conf`:
Edit `/efi/loader/loader.conf`:
```txt
default archlinux.conf

View File

@ -1 +1,7 @@
# Development
Read [Semantic Versioning 2.0.0](https://semver.org/).
Read [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/).
Read [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

View File

@ -52,30 +52,38 @@ cfdisk
| Mount point | Partition type | Suggested size |
| ----------- | -------------------- | -------------- |
| /mnt/boot | EFI system partition | 512 MiB |
| /mnt | Linux | |
| /mnt/home | Linux | |
| `/mnt/efi` | EFI system partition | 512 MiB |
| `/mnt/boot` | Linux extended boot | 1 GiB |
| `/mnt` | Linux | |
| `/mnt/home` | Linux | |
Format:
```sh
# /boot
mkfs.fat -F32 /dev/xxxY
# /efi and /boot
mkfs.fat -F32 /dev/sdxY
# / and /home
mkfs.ext4 /dev/xxxY
mkfs.ext4 /dev/sdxY
```
Mount:
```sh
mount /dev/xxxY /mnt
# /
mount /dev/sdxY /mnt
# /efi
mkdir -p /mnt/efi
mount /dev/sdxY /mnt/efi
# /boot
mkdir -p /mnt/boot
mount /dev/xxxY /mnt/boot
mount /dev/sdxY /mnt/boot
# /home
mkdir -p /mnt/home
mount /dev/xxxY /mnt/home
mount /dev/sdxY /mnt/home
```
### Installation
@ -155,7 +163,7 @@ timedatectl set-ntp true
### [pacman](https://wiki.archlinux.org/index.php/pacman)
Uncomment or add if not exist options in `/etc/pacman.conf`:
Uncomment in `/etc/pacman.conf`:
```txt
# Misc options