#!/bin/bash

LFS_DISK="$1"
LFS_ROOT="$2"

sudo fdisk "${LFS_DISK}" << EOF
o
n
p
1

+14G
a
1
n
p
2


p
w
q
EOF

sudo mkfs -t ext4 -L "${LFS_VER}" -F "${LFS_DISK}${LFS_ROOT}"