mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 19:40:55 +00:00
Set up system clock.
This commit is contained in:
parent
96ed6ecb25
commit
466799172f
2 changed files with 9 additions and 5 deletions
10
README.md
10
README.md
|
|
@ -6,10 +6,10 @@
|
||||||
### How does it work?
|
### How does it work?
|
||||||
1. Download an Arch Linux ISO from [here](https://archlinux.org/download/)
|
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).
|
2. Flash the ISO onto an [USB Flash Drive](https://wiki.archlinux.org/index.php/USB_flash_installation_medium).
|
||||||
3. Boot the live environment.
|
3. Boot the live environment
|
||||||
4. Set the keyboard layout by using `loadkeys`.
|
4. Set the keyboard layout by using `loadkeys <kblayout>`
|
||||||
5. Connect to the internet.
|
5. Connect to the internet
|
||||||
6. Run this `bash <(curl -sL bit.ly/easy-arch)`.
|
6. Run this `bash <(curl -sL bit.ly/easy-arch)`
|
||||||
|
|
||||||
### Partitions layout
|
### Partitions layout
|
||||||
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
| 1 | ESP | 512 MiB | /boot/ | FAT32 |
|
| 1 | ESP | 512 MiB | /boot/ | FAT32 |
|
||||||
| 2 | Cryptroot | Rest of the disk | / | BTRFS Encrypted (LUKS2) |
|
| 2 | Cryptroot | Rest of the disk | / | BTRFS Encrypted (LUKS2) |
|
||||||
|
|
||||||
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:
|
The **partitions layout** is simple and 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 Linux Wiki. As you can see there're only two partitions:
|
||||||
1. A **FAT32**, 512MiB sized, mounted at `/boot/efi` for the ESP.
|
1. A **FAT32**, 512MiB sized, mounted at `/boot/efi` for the ESP.
|
||||||
2. A **LUKS2 encrypted container**, which takes the rest of the disk space, mounted at `/` for the rootfs.
|
2. A **LUKS2 encrypted container**, which takes the rest of the disk space, mounted at `/` for the rootfs.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,10 @@ network_selector () {
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Setting up system clock.
|
||||||
|
print "Setting up the system clock."
|
||||||
|
timedatectl set-ntp true
|
||||||
|
|
||||||
# Checking the microcode to install.
|
# Checking the microcode to install.
|
||||||
CPU=$(grep vendor_id /proc/cpuinfo)
|
CPU=$(grep vendor_id /proc/cpuinfo)
|
||||||
if [[ $CPU == *"AuthenticAMD"* ]]
|
if [[ $CPU == *"AuthenticAMD"* ]]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue