i put debug output on and got this
Well I got to the bottom of the problem the firefly image does work. The loopback unmount of system image on some conditions is not working. Im not sure what the conditions are when it doesnt unmount for . I looked through the logs and seen this
+ FLASH_SYSTEM_TO_SDCARD
+ echo -n './create-android-sdcard: Flashing system '\''system.img'\'' to '\''/dev/sdd4'\'' ... '
./create-android-sdcard: Flashing system 'system.img' to '/dev/sdd4' ... + cd /home/grant/Desktop/r28/create-sdcard/Android/.
+ dd if=system.img of=/dev/sdd4 conv=sync,fsync
795080+0 records in
795080+0 records out
407080960 bytes (407 MB) copied, 2.73035 s, 149 MB/s <------ too fast fo sd using loopback
whats happening is when you do this script the first time its works ok cause the problem partition isint on the usb drive yet. As soon as you plug that usb drive back in after the first time the system partition mounts and the loopback in the script also mount a system partition for some reason only known to the great automount system thats the problem.
That fix stops anything mounting and unmounting work properly and the script can run properly. its only the system partion thats effected cause it mounts as loop back and you really need that one.
to get some output of whats going on do this
cp create-android-sdcard create-android-sdcard-debug
sed -i 's?> /dev/null 2>&1??' create-android-sdcard-debug
sed -i 's?2> /dev/null??' create-android-sdcard-debug
basically this takes the > /dev/null away so you can see the output
update: forgot to say use create-android-sdcard create-android-sdcard-debug
do the same for the other script changing the filenames if you want output of whats going on
Comment