This file contains hidden or 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
#!/bin/bash | |
# Performs a two partition format | |
# Partition 1: The first 500MB is partitioned and formatted as FAT32 for EFI boot files | |
# Partition 2: The remaining space is partitioned and formatted as EXT4 for / | |
# This script does not allow for creating a /home partition, just the two mentioned above | |
# This script does not prompt for verification, be careful choosing a target. :) | |
if [ "$(id -u)" != "0" ]; then | |
exec sudo "$0" "$@" | |
fi |