@@ -313,24 +313,26 @@ elif [ "$partition" == "ext" ];then
313313 if [ " $SAINEN " == 0 ] && [ " $info_type " == " ext" ] && [ -f " $info_size " ]; then
314314 if [ " $TTBUILDI " == 3 ]; then
315315 size=" $( echo " $size_real / 4096" | bc) " ;
316- mke2fs -O ^has_journal -t ext4 -m 0 -b 4096 -I 256 -L " ${INPUT##*/ } " -M " /${INPUT##*/ } " " $saved " $size 2>&1
317- e2fsdroid -e -T $time_build -C " $fs_config " -S " $file_contexts " -f " $INPUT " -a " /${INPUT##*/ } " " $saved " || killtree " Error build process e2fsdroid" " $saved "
316+ truncate -s $size " $saved "
317+ mke2fs -O ^has_journal -F -t ext4 -b 4096 -L " ${INPUT##*/ } " -M " /${INPUT##*/ } " " $saved " $size 2>&1
318+ e2fsdroid -e -s -T $time_build -C " $fs_config " -S " $file_contexts " -f " $INPUT " -a " /${INPUT##*/ } " " $saved " || killtree " Error build process e2fsdroid" " $saved "
318319 elif [ " $TTBUILDI " == 7 ]; then
319320 imgkit_scuti pack --type ext4 -s " $INPUT " -o " $saved " -z $size_real --file-contexts " $file_contexts " --fs-config " $fs_config " -m " /${INPUT##*/ } " --label " ${INPUT##*/ } " & > $TMP /imgkit_repack.log || killtree " Error build process imgkit_scuti:\n\n$( cat $TMP /imgkit_repack.log) " " $saved "
320321 else
321- make_ext4fs -J -T $time_build -L " ${INPUT##*/ } " -S " $file_contexts " -C " $fs_config " -l $size_real -a " /${INPUT##*/ } " " $saved " " $INPUT " || killtree " Error build process make_ext4fs" " $saved " &
322+ make_ext4fs -J -T -1 -L " ${INPUT##*/ } " -S " $file_contexts " -C " $fs_config " -l $size_real -a " /${INPUT##*/ } " " $saved " " $INPUT " || killtree " Error build process make_ext4fs" " $saved " &
322323 process_count $size_real " $saved "
323324 echo
324325 fi
325326 else
326327 if [ " $TTBUILDI " == 3 ]; then
327328 size=" $( echo " $size_orig / 4096" | bc) " ;
328- mke2fs -O ^has_journal -t ext4 -m 0 -b 4096 -I 256 -L " ${INPUT##*/ } " -M " /${INPUT##*/ } " " $saved " $size 2>&1
329- e2fsdroid -e -T $time_build -C " $fs_config " -S " $file_contexts " -f " $INPUT " -a " /${INPUT##*/ } " " $saved " || killtree " Error build process e2fsdroid" " $saved "
329+ truncate -s $size " $saved "
330+ mke2fs -O ^has_journal -F -t ext4 -b 4096 -L " ${INPUT##*/ } " -M " /${INPUT##*/ } " " $saved " $size 2>&1
331+ e2fsdroid -e -s -T $time_build -C " $fs_config " -S " $file_contexts " -f " $INPUT " -a " /${INPUT##*/ } " " $saved " || killtree " Error build process e2fsdroid" " $saved "
330332 elif [ " $TTBUILDI " == 7 ]; then
331333 imgkit_scuti pack --type ext4 -s " $INPUT " -o " $saved " -z $size_orig --file-contexts " $file_contexts " --fs-config " $fs_config " -m " /${INPUT##*/ } " --label " ${INPUT##*/ } " & > $TMP /imgkit_repack.log || killtree " Error build process imgkit_scuti:\n\n$( cat $TMP /imgkit_repack.log) " " $saved "
332334 else
333- make_ext4fs -J -T $time_build -L " ${INPUT##*/ } " -S " $file_contexts " -C " $fs_config " -l $size_orig -a " /${INPUT##*/ } " " $saved " " $INPUT " || killtree " Error build process make_ext4fs" " $saved " &
335+ make_ext4fs -J -T -1 -L " ${INPUT##*/ } " -S " $file_contexts " -C " $fs_config " -l $size_orig -a " /${INPUT##*/ } " " $saved " " $INPUT " || killtree " Error build process make_ext4fs" " $saved " &
334336 process_count $size_orig " $saved "
335337 echo
336338 fi
0 commit comments