Skip to content

Commit 6ac82b3

Browse files
committed
Update
1 parent 96004b5 commit 6ac82b3

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

app/src/main/assets/home/bin/repack_img

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,8 @@ 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-
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"
316+
mke2fs -O ^has_journal -t ext4 -b 4096 -m 0 -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"
319318
elif [ "$TTBUILDI" == 7 ];then
320319
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"
321320
else
@@ -326,9 +325,8 @@ elif [ "$partition" == "ext" ];then
326325
else
327326
if [ "$TTBUILDI" == 3 ];then
328327
size="$(echo "$size_orig / 4096" | bc)";
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"
328+
mke2fs -O ^has_journal -t ext4 -b 4096 -m 0 -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"
332330
elif [ "$TTBUILDI" == 7 ];then
333331
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"
334332
else

0 commit comments

Comments
 (0)