bootable/newinstaller
Revisión | 16fa24b8f149cf5ad349bc5db8154e99459d0153 (tree) |
---|---|
Tiempo | 2015-01-01 19:39:54 |
Autor | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
1-install: fix direct run mode after installation
@@ -333,16 +333,14 @@ do_install() | ||
333 | 333 | Run*) |
334 | 334 | cd /android |
335 | 335 | umount system |
336 | - if mountpoint -q /sfs; then | |
337 | - umount /sfs | |
338 | - if [ -e /hd/$asrc/system.sfs ]; then | |
339 | - mount -o loop /hd/$asrc/system.sfs /sfs | |
340 | - mount -o loop /sfs/system.img system | |
341 | - else | |
342 | - mount -o loop /hd/$asrc/system.img system | |
343 | - fi | |
344 | - else | |
336 | + mountpoint -q /sfs && umount /sfs | |
337 | + if [ -e /hd/$asrc/system.sfs ]; then | |
338 | + mount -o loop /hd/$asrc/system.sfs /sfs | |
339 | + mount -o loop /sfs/system.img system | |
340 | + elif [ -e /hd/$asrc/system.img ]; then | |
345 | 341 | mount -o loop /hd/$asrc/system.img system |
342 | + else | |
343 | + mount --bind /hd/$asrc/system system | |
346 | 344 | fi |
347 | 345 | if [ -d /hd/$asrc/data ]; then |
348 | 346 | mount --bind /hd/$asrc/data data |