You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
463 B
Bash

#!/bin/bash
set -e
# / 1020GB
# /boot 1GB
# /boot/efi 1GB
# free 0GB
parted /dev/nvme0n1 mklabel msdos
parted /dev/nvme0n1 mkpart primary 1 1020GB
parted /dev/nvme0n1 mkpart primary 1020GB 1022GB
parted /dev/nvme0n1 mkpart primary 1022GB 1024GB
# set flag for ESP
parted /dev/nvme0n1 set 3 boot on
parted /dev/nvme1n1p1 mklabel gpt
parted /dev/nvme1n1p1 mkpart primary 1 -1
parted /dev/nvme2n1p1 mklabel gpt
parted /dev/nvme2n1p1 mkpart primary 1 -1
sleep 1