From a9d270eddc062c336c40e1ef8e2c732986222673 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 15 Dec 2019 11:03:01 +0100 Subject: Removed some hard-coding. --- util/create_filesystems.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'util/create_filesystems.sh') 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 . +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" -- cgit v1.2.3-70-g09d2