Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

bootable-newinstaller: Commit

bootable/newinstaller


Commit MetaInfo

Revision6b5590f8d9998978c63a23e4cc0ca0af2b814605 (tree)
Time2020-03-13 12:36:21
AuthorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

init: avoid finding system dir too aggressive

Only use a system dir if it contains build.prop.

Change Summary

Incremental Difference

--- a/initrd/init
+++ b/initrd/init
@@ -110,10 +110,10 @@ check_root()
110110 elif [ -e /mnt/$SRC/system.img ]; then
111111 remount_rw
112112 mount -o loop,noatime /mnt/$SRC/system.img system
113- elif [ -d /mnt/$SRC/system ]; then
113+ elif [ -s /mnt/$SRC/system/build.prop ]; then
114114 remount_rw
115115 mount --bind /mnt/$SRC/system system
116- elif [ -z "$SRC" -a -e /mnt/build.prop ]; then
116+ elif [ -z "$SRC" -a -s /mnt/build.prop ]; then
117117 mount --bind /mnt system
118118 else
119119 rm -rf *
Show on old repository browser