Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

bootable-newinstaller: Commit

bootable/newinstaller


Commit MetaInfo

Revisionf6e9dfc210f033362349653291a355e21d0512fe (tree)
Time2019-07-10 13:33:34
AuthorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

1-install: replace make_ext4fs by mkfs.ext4

The make_ext4fs was removed in Android 9.

Due to unknown reason, TrustedGRUB can't be installed to the ext4
filesystem created by mkfs.ext4. So we format it as ext3 and then
convert it to ext4. This way works luckily.

Change Summary

Incremental Difference

--- a/install/scripts/1-install
+++ b/install/scripts/1-install
@@ -213,7 +213,7 @@ format_fs()
213213 choose "Choose filesystem" "Please select a filesystem to format $1:"
214214 case "$choice" in
215215 ext4)
216- cmd="make_ext4fs -L"
216+ cmd="mkfs.ext3 -L"
217217 ;;
218218 ntfs)
219219 cmd="mkntfs -fL"
@@ -233,6 +233,7 @@ format_fs()
233233 if (match($0, "done"))
234234 printf("%d\n", i+=33)
235235 }' | progress_bar "Formatting" "Formatting partition $1..."
236+ convert_fs $1
236237 elif blkid /dev/$1 | grep -q ext[23]; then
237238 dialog --clear --title " Warning " --yesno \
238239 "\nYou chose to install android-x86 to an ext2/3 filesystem. We suggest you convert it to ext4 for better reliability and performance." 9 62
@@ -319,7 +320,7 @@ create_data_img()
319320 if [ $? -eq 0 ]; then
320321 if create_img 2048 data.img; then
321322 losetup /dev/loop6 data.img
322- make_ext4fs -L /data /dev/loop6 > /dev/tty6
323+ mkfs.ext4 -L /data /dev/loop6 > /dev/tty6
323324 fi
324325 [ $? -ne 0 ] && dialog --msgbox "\n Failed to create data.img." 7 33
325326 else
Show on old repository browser