Skip to content

Instantly share code, notes, and snippets.

@irgendwr
Created January 26, 2022 15:37
Show Gist options
  • Save irgendwr/1accd3f7bf0fb002b4caf03f9da0b3fb to your computer and use it in GitHub Desktop.
Save irgendwr/1accd3f7bf0fb002b4caf03f9da0b3fb to your computer and use it in GitHub Desktop.
Partial install script for my Arch setup. Still unfinished and experimental.
#!/bin/bash
# Print commands (x) and stop on error (e)
set -ex
# Set the console keyboard layout
loadkeys de-latin1
# Update the system clock
timedatectl set-ntp true
timedatectl status
# TODO:
# Verify if we're using UEFI:
# ls /sys/firmware/efi/efivars
# Partition the disks
echo "Identify the devices usind `fdisk -l | less` or `lsblk`"
echo "Use `fdisk`, `parted` or `cfdisk` to partition the disks"
echo "Create a boot EFI partition and a root partition"
echo "(use a GPT partition table)"
# Prepare for LUKS encryption
modprobe dm-crypt
modprobe dm-mod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment