Display message before modeprobe FS in part_format
This commit is contained in:
parent
8d46a77b15
commit
f4f8528257
@ -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"
|
||||
|
Reference in New Issue
Block a user