Skip to content

Instantly share code, notes, and snippets.

View luis-account's full-sized avatar
🦚
🤓

lui luis-account

🦚
🤓
View GitHub Profile
@luis-account
luis-account / arch-install.sh
Created February 8, 2025 19:48
Arch Install script with disk encryption
#!/bin/sh
# Arch Linux install script.
# (based on: https://github.com/arceryz/archlinux-installer-script/blob/master/archstrap.sh - Parcevval @2023)
# EFI only
[ -z "$1" ] && printf "Usage: Provide only the drive to install to (i.e /dev/sda, see lsblk)\n\n./archstrap.sh [DRIVE]\n\n" && exit
[ ! -b "$1" ] && printf "Drive $1 is not a valid block device.\n" && exit
printf "\nReady to install Arch on $1.\nContinue? (y/n): " && read CERTAIN
[ "$CERTAIN" != "y" ] && printf "Abort." && exit