From c443ed3a4c689d1109ae42afeb16f1aa273fc31b Mon Sep 17 00:00:00 2001 From: hau Date: Wed, 7 Oct 2020 15:40:52 +0700 Subject: [PATCH] archlinux unfinished --- Applications/System/systemd-boot.md | 8 +++----- Development/README.md | 6 ++++++ install-archlinux.md | 28 ++++++++++++++++++---------- 3 files changed, 27 insertions(+), 15 deletions(-) diff --git a/Applications/System/systemd-boot.md b/Applications/System/systemd-boot.md index e22a297..dde6c80 100644 --- a/Applications/System/systemd-boot.md +++ b/Applications/System/systemd-boot.md @@ -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 diff --git a/Development/README.md b/Development/README.md index 459110d..a6ecc95 100644 --- a/Development/README.md +++ b/Development/README.md @@ -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/). diff --git a/install-archlinux.md b/install-archlinux.md index 51265fe..3fd3d40 100644 --- a/install-archlinux.md +++ b/install-archlinux.md @@ -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