diff options
author | William Harrington <kb0iic@berzerkula.org> | 2021-03-15 21:37:32 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2021-03-15 21:37:32 -0500 |
commit | 36bdd88a911512bf029d15a362a4de1da3d288fd (patch) | |
tree | 94bcf468885eb059839df8a861f1f4b2e5ea1a1c /setupdisk.sh | |
parent | 28622b4d27d53c8a6d3cc35e9637f3f869157f72 (diff) |
Setup lfs environment and disk setup.
Diffstat (limited to 'setupdisk.sh')
-rwxr-xr-x | setupdisk.sh | 25 |
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 |