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"