• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

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

bootable/newinstaller


Commit MetaInfo

Révision6b5590f8d9998978c63a23e4cc0ca0af2b814605 (tree)
l'heure2020-03-13 12:36:21
AuteurChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Message de Log

init: avoid finding system dir too aggressive

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

Change Summary

Modification

--- 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 *