Android-x86
Fork
Faire un don

  • R/O
  • HTTP
  • SSH
  • HTTPS

bootable-newinstaller: Commit

bootable/newinstaller


Commit MetaInfo

Révision7eb0735bd8d579133126b41c0d716ea0b456f5ed (tree)
l'heure2017-10-26 15:54:14
AuteurChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Message de Log

init: skip to mount unknown type partitions

Trying to mount an unknown type partition may cause kernel panic.

Change Summary

Modification

--- a/initrd/init
+++ b/initrd/init
@@ -3,7 +3,7 @@
33 # By Chih-Wei Huang <cwhuang@linux.org.tw>
44 # and Thorsten Glaser <tg@mirbsd.org>
55 #
6-# Last updated 2017/07/17
6+# Last updated 2017/10/06
77 #
88 # License: GNU Public License
99 # We explicitely grant the right to use the scripts
@@ -75,6 +75,7 @@ check_root()
7575 blk=`basename $1`
7676 [ ! -e /dev/block/$blk ] && ln $1 /dev/block
7777 dev=/dev/block/$blk
78+ blkid $dev | grep -q TYPE || return 1
7879 else
7980 dev=$1
8081 fi
Afficher sur ancien navigateur de dépôt.