This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# confirm you can access the internet | |
if [[ ! $(curl -Is http://www.google.com/ | head -n 1) =~ "200 OK" ]]; then | |
echo "Your Internet seems broken. Press Ctrl-C to abort or enter to continue." | |
read | |
fi | |
# make partition on the disk. | |
parted -s /dev/sda mktable GPT | |
parted -s /dev/sda mkpart primary 0% 100% |