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). 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 using XBOOTLDR:
Install:
```sh ```sh
bootctl --path=/boot install bootctl --esp-path=/efi --boot-path=/boot install
``` ```
Update: Update:
@ -16,7 +14,7 @@ Update:
bootctl update bootctl update
``` ```
Edit `/boot/loader/loader.conf`: Edit `/efi/loader/loader.conf`:
```txt ```txt
default archlinux.conf default archlinux.conf

View File

@ -1 +1,7 @@
# Development # 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 | | Mount point | Partition type | Suggested size |
| ----------- | -------------------- | -------------- | | ----------- | -------------------- | -------------- |
| /mnt/boot | EFI system partition | 512 MiB | | `/mnt/efi` | EFI system partition | 512 MiB |
| /mnt | Linux | | | `/mnt/boot` | Linux extended boot | 1 GiB |
| /mnt/home | Linux | | | `/mnt` | Linux | |
| `/mnt/home` | Linux | |
Format: Format:
```sh ```sh
# /boot # /efi and /boot
mkfs.fat -F32 /dev/xxxY mkfs.fat -F32 /dev/sdxY
# / and /home # / and /home
mkfs.ext4 /dev/xxxY mkfs.ext4 /dev/sdxY
``` ```
Mount: Mount:
```sh ```sh
mount /dev/xxxY /mnt # /
mount /dev/sdxY /mnt
# /efi
mkdir -p /mnt/efi
mount /dev/sdxY /mnt/efi
# /boot
mkdir -p /mnt/boot mkdir -p /mnt/boot
mount /dev/xxxY /mnt/boot mount /dev/sdxY /mnt/boot
# /home
mkdir -p /mnt/home mkdir -p /mnt/home
mount /dev/xxxY /mnt/home mount /dev/sdxY /mnt/home
``` ```
### Installation ### Installation
@ -155,7 +163,7 @@ timedatectl set-ntp true
### [pacman](https://wiki.archlinux.org/index.php/pacman) ### [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 ```txt
# Misc options # Misc options