aboutsummaryrefslogtreecommitdiffstats
path: root/setupdisk.sh
diff options
context:
space:
mode:
Diffstat (limited to 'setupdisk.sh')
-rwxr-xr-xsetupdisk.sh25
1 files changed, 25 insertions, 0 deletions
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