• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

bootable/newinstaller


Commit MetaInfo

Revisionfdf9c73ada1be76e0cec40621f4656da33471373 (tree)
Time2015-01-08 17:08:03
AuthorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

1-install: support formatting ext4 partition

Note our legacy grub can't support booting from an ext4 partition.
You need to install a bootloader supporting ext4 manually.

Change Summary

Incremental Difference

--- a/install/scripts/1-install
+++ b/install/scripts/1-install
@@ -93,9 +93,13 @@ progress_bar()
9393 format_fs()
9494 {
9595 local cmd
96- echo -e '"Do not format" ""\next3 ""\next2 ""\nntfs ""\nfat32 ""' > $menufile
96+ echo -e '"Do not format" ""\next4 ""\next3 ""\next2 ""\nntfs ""\nfat32 ""' > $menufile
9797 choose "Choose filesystem" "Please select a filesystem to format $1:"
9898 case "$choice" in
99+ ext4)
100+ dialog --title " Notice " --msgbox "\nAndroid-x86 bootloader can't support booting from ext4. You need to install a bootloader supporting ext4 manually, e.g., grub2." 9 49
101+ cmd="make_ext4fs -L"
102+ ;;
99103 ext3)
100104 cmd="mke2fs -jL"
101105 ;;
@@ -183,7 +187,7 @@ create_data_img()
183187 if [ $? -eq 0 ]; then
184188 if create_img 512 data.img; then
185189 losetup /dev/loop6 data.img
186- mke2fs -jL /data /dev/loop6 > /dev/tty6
190+ make_ext4fs -L /data /dev/loop6 > /dev/tty6
187191 fi
188192 [ $? -ne 0 ] && dialog --msgbox "\n Failed to create data.img." 7 33
189193 else
@@ -226,7 +230,7 @@ install_to()
226230 fs=`cat /proc/mounts | grep /dev/$1 | awk '{ print $3 }'`
227231
228232 asrc=android-$VER
229- dialog --title " Confirm " --no-label Skip --defaultno --yesno \
233+ [ "$fs" != "ext4" ] && dialog --title " Confirm " --no-label Skip --defaultno --yesno \
230234 "\n Do you want to install boot loader GRUB?" 7 47
231235 if [ $? -eq 0 ]; then
232236 cp -af /grub /hd