Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nickto
nickto / install-before-chroot.sh
Created August 17, 2018 11:28
Set up Arch befor chroot in VM.
#!/usr/bin/env bash
DEVICE_NAME=/dev/sda
timedatectl set-ntp true
timedatectl status # to check if everything is correct
parted $(DEVICE_NAME) --script -- mkpart primary 0% 100%
parted $(DEVICE_NAME) --script -- mklabel gpt