From 36bdd88a911512bf029d15a362a4de1da3d288fd Mon Sep 17 00:00:00 2001 From: William Harrington Date: Mon, 15 Mar 2021 21:37:32 -0500 Subject: Setup lfs environment and disk setup. --- setupdisk.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 setupdisk.sh (limited to 'setupdisk.sh') diff --git a/setupdisk.sh b/setupdisk.sh new file mode 100755 index 0000000..ce2ac65 --- /dev/null +++ b/setupdisk.sh @@ -0,0 +1,25 @@ +#!/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}" \ No newline at end of file -- cgit v1.2.3-54-g00ecf