summaryrefslogtreecommitdiff
path: root/util/create_filesystems.sh
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2019-12-15 11:03:01 +0100
committerxengineering <mail2xengineering@protonmail.com>2019-12-15 11:03:01 +0100
commita9d270eddc062c336c40e1ef8e2c732986222673 (patch)
tree1f68137196293ec69e994872538bb09ab12329aa /util/create_filesystems.sh
parent9c3854fc72d16c7a819cd74e93dda56e6805cc21 (diff)
downloadarchinstall-a9d270eddc062c336c40e1ef8e2c732986222673.tar
archinstall-a9d270eddc062c336c40e1ef8e2c732986222673.tar.zst
archinstall-a9d270eddc062c336c40e1ef8e2c732986222673.zip
Removed some hard-coding.
Diffstat (limited to 'util/create_filesystems.sh')
-rw-r--r--util/create_filesystems.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/util/create_filesystems.sh b/util/create_filesystems.sh
index 8a58909..8f2341f 100644
--- a/util/create_filesystems.sh
+++ b/util/create_filesystems.sh
@@ -18,8 +18,13 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
+boot_partition_path=$1 # e.g. /dev/sda1
+root_partition_path=$2 # e.g. /dev/sda2
+
+
mkfs.fat -F32 $boot_partition_path
-mkfs.ext4 $root_partition_path
fatlabel $boot_partition_path "BOOT"
+mkfs.ext4 $root_partition_path
e2label $root_partition_path "ROOT"
+
echo "Created filesystems - OK"