mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 19:14:03 -06:00
clean up code a bit
This commit is contained in:
parent
a4a866fa1e
commit
9ebb3ddc49
1 changed files with 4 additions and 22 deletions
26
install.sh
26
install.sh
|
@ -1,24 +1,6 @@
|
||||||
# This file is used to partition, mount and install arch linux on UEFI systems.
|
|
||||||
|
|
||||||
# Default keyboard layout is US.
|
|
||||||
# To change layout :
|
|
||||||
# 1. Use `localectl list-keymaps` to display liste of keymaps.
|
|
||||||
# 2. Use `loadkeys [keymap]` to set keyboard layout.
|
|
||||||
# ex : `loadkeys de-latin1` to set a german keyboard layout.
|
|
||||||
|
|
||||||
# Figure out how much RAM the system has an set a variable
|
|
||||||
# ramTotal=$(grep MemTotal /proc/meminfo | awk '{print $2 / 1024 / 1024}')
|
|
||||||
ramTotal=$(free | awk '/^Mem:/{print $2 / 1024 / 1024}' | awk -F. {'print$1'})
|
|
||||||
|
|
||||||
# Update system clock.
|
|
||||||
# timedatectl set-ntp true
|
|
||||||
|
|
||||||
# Load kernel modules
|
# Load kernel modules
|
||||||
# modprobe dm-crypt
|
modprobe dm-crypt
|
||||||
# modprobe dm-mod
|
modprobe dm-mod
|
||||||
|
|
||||||
# Switch to root
|
|
||||||
# sudo -i
|
|
||||||
|
|
||||||
# Detect and list the drives.
|
# Detect and list the drives.
|
||||||
lsblk -f
|
lsblk -f
|
||||||
|
@ -72,10 +54,10 @@ echo "Which is the swap partition?"
|
||||||
read swapName
|
read swapName
|
||||||
|
|
||||||
# Encrypt the root partition
|
# Encrypt the root partition
|
||||||
# sudo cryptsetup luksFormat -v -s 512 -h sha512 $rootName
|
sudo cryptsetup luksFormat -v -s 512 -h sha512 $rootName
|
||||||
|
|
||||||
# Open the encrypted root partition
|
# Open the encrypted root partition
|
||||||
# sudo cryptsetup luksOpen $rootName crypt-root
|
sudo cryptsetup luksOpen $rootName crypt-root
|
||||||
|
|
||||||
sudo mkfs.fat -F32 -n EFI $efiName # EFI partition
|
sudo mkfs.fat -F32 -n EFI $efiName # EFI partition
|
||||||
sudo mkfs.ext4 -L root $rootName # / partition
|
sudo mkfs.ext4 -L root $rootName # / partition
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue