Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

bootable-newinstaller: Commit

bootable/newinstaller


Commit MetaInfo

Revisiond1843f3e38cccc6a7c3456d677e00b3c43f68f26 (tree)
Time2019-12-03 11:33:38
AuthorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

init: set SRC=iso earlier

If iso-scan/filename is set in cmdline, SRC should be set earlier to
avoid misuse of other partitions.

Change Summary

Incremental Difference

--- a/initrd/init
+++ b/initrd/init
@@ -96,7 +96,6 @@ check_root()
9696 mount --move /mnt /iso
9797 mkdir /mnt/iso
9898 mount -o loop /iso/$iso /mnt/iso
99- SRC=iso
10099 fi
101100 if [ -e /mnt/$SRC/$RAMDISK ]; then
102101 zcat /mnt/$SRC/$RAMDISK | cpio -id > /dev/null
@@ -152,6 +151,7 @@ echo -n Detecting Android-x86...
152151 for c in `cat /proc/cmdline`; do
153152 case $c in
154153 iso-scan/filename=*)
154+ SRC=iso
155155 eval `echo $c | cut -b1-3,18-`
156156 ;;
157157 *)
Show on old repository browser