#!/bin/bash

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

sudo fdisk "${LFS_DISK}" >/dev/null 2>&1 << EOF
o
n
p
1

+14G
a
1
n
p
2


p
w
q
EOF

sudo /sbin/mkfs -t ext4 -L "${LFS_VER}" -F "${LFS_DISK}${LFS_ROOT}" >/dev/null 2>&1