Skip to content

Instantly share code, notes, and snippets.

@lucasnlm
Created October 7, 2019 00:43
Show Gist options
  • Save lucasnlm/71778e6316b92a012fa91884ec5cc413 to your computer and use it in GitHub Desktop.
Save lucasnlm/71778e6316b92a012fa91884ec5cc413 to your computer and use it in GitHub Desktop.
arch_install.sh
echo "Are you sure you want to install Arch? (Y/n)"
read confirmation_answer
if [ "$confirmation_answer" != "Y" ]
then
exit
fi
echo "Where Arch will be installed? (e.g, /dev/sda or /dev/nvme0n1)"
read target_location
echo "Using $target_location."
fdisk -l $target_location
echo "Creating partitions on $target_location."
wipefs -a $target_location
fdisk $target_location
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment