1
0
mirror of https://github.com/tommytran732/Arch-Setup-Script synced 2024-11-21 17:11:34 -05:00

Update README.md

This commit is contained in:
TommyTran732 2021-04-10 17:40:40 -04:00 committed by tommytran732
parent 30ee185627
commit b68aafe704
No known key found for this signature in database
GPG Key ID: 060B29EB996BD9F2

View File

@ -1,14 +1,14 @@
### Introduction
This is my fork of [easy-arch](https://github.com/classy-giraffe/easy-arch),a **script** made in order to boostrap a basic **Arch Linux** environment with **snapshots** and **encryption** by using a fully automated process.
This is my fork of [easy-arch](https://github.com/classy-giraffe/easy-arch), a **script** made in order to boostrap a basic **Arch Linux** environment with **snapshots** and **encryption** by using a fully automated process.
### How does it work?
1. Download an Arch Linux ISO from [here](https://archlinux.org/download/)
2. Flash the ISO onto an [USB Flash Drive](https://wiki.archlinux.org/index.php/USB_flash_installation_medium).
3. Boot the live environment.
4. Connect to the internet.
5. `git clone https://github.com/tommytran732/easy-arch/edit/main/README.md`
6. `cd easy-arch`
7. `./easy-arch.sh`
5. `git clone https://github.com/tommytran732/Arch-Setup-Script/edit/main/README.md`
6. `cd Arch-Setup-Script`
7. `./install.sh`
### Changes from the original project
1. /boot is now encrypted
@ -21,7 +21,7 @@ This is my fork of [easy-arch](https://github.com/classy-giraffe/easy-arch),a **
| Partition Number | Label | Size | Mountpoint | Filesystem |
|------------------|-----------|-------------------|------------|------------------------|
| 1 | ESP | 512 MiB | /boot/efi | FAT32 |
| 2 | Cryptroot | Rest of the disk | / | BTRFS Encrypted (LUKS) |
| 2 | Cryptroot | Rest of the disk | / | Encrypted BTRFS (LUKS1)|
The **partitions layout** is pretty straightforward, it's inspired by [this section](https://wiki.archlinux.org/index.php/Dm-crypt/Encrypting_an_entire_system#Btrfs_subvolumes_with_swap) of the Arch Wiki. As you can see there's just a couple of partitions:
1. A **FAT32**, 512MiB sized, mounted at `/boot` for the ESP.
@ -40,7 +40,8 @@ The **partitions layout** is pretty straightforward, it's inspired by [this sect
The **BTRFS subvolumes layout** follows the traditional and suggested layout used by **Snapper**, you can find it [here](https://wiki.archlinux.org/index.php/Snapper#Suggested_filesystem_layout). I only added a swap subvolume in case you need a swapfile, but it's totally optional. You'll be asked if you want it or not during the script execution. Here's a brief explanation of the **BTRFS layout** I chose:
1. `@` mounted as `/`.
2. `@home` mounted as `/home`.
3. `@snapshots` mounted as `/.snapshots`.
4. `@var_log` mounted as `/var/log`.
5. `@swap` mounted as `/swap` (_optional_).
2. `@boot` mounted as `/boot`.
3. `@home` mounted as `/home`.
4. `@snapshots` mounted as `/.snapshots`.
5. `@var_log` mounted as `/var/log`.
6. `@swap` mounted as `/swap` (_optional_).