From f4f85282575dcdcab3cfff3979548a25351956c4 Mon Sep 17 00:00:00 2001 From: natemaia Date: Sun, 17 May 2020 19:12:04 -0700 Subject: [PATCH] Display message before modeprobe FS in part_format --- installer | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installer b/installer index fb98f52..b9f09af 100755 --- a/installer +++ b/installer @@ -1117,6 +1117,8 @@ part_format() local fs="$2" local delay="$3" + msg "File System Format" "\nFormatting $part as $fs\n" 0 + if [[ $fs == 'f2fs' && -z $PF2FS ]]; then modprobe f2fs PF2FS=true @@ -1127,7 +1129,6 @@ part_format() sleep 1 fi - msg "File System Format" "\nFormatting $part as $fs\n" 0 mkfs.$fs ${FS_CMD_FLAGS[$fs]} "$part" > /dev/null 2> "$ERR" || mkfs.$fs ${FS_CMD_FLAGS[$fs]} "$part" > /dev/null 2> "$ERR" errshow 0 "mkfs.$fs ${FS_CMD_FLAGS[$fs]} $part" || return 1 sleep "$delay"