[G2 Original Android Development] ayysir:
because essentially, i have my updater script move the boot.img to a tmp directory and then split boot.img.

heres a log:

##########################
# #
# ___ _ ___ _ __ #
# | _ \ /_\ | __|| |/_/ #
# | _// _ \ | _| | \ #
# |_| /_/ \_\|___||_|\_\ #
# #
# #
##########################

Extracting files..
minzip: Extracted file "/tmp/busybox"
minzip: Extracted file "/tmp/extras/default.prop"
minzip: Extracted file "/tmp/mkbootimg"
minzip: Extracted file "/tmp/mkbootimg.sh"
minzip: Extracted file "/tmp/nb2b.sh"
minzip: Extracted file "/tmp/repack-ramdisk.sh"
minzip: Extracted file "/tmp/unpackbootimg"
minzip: Extracted file "/tmp/zImage-dtb"
minzip: Extracted file "/tmp/zdtbchg.sh"
minzip: Extracted file "/tmp/cleaner.sh"

Finished

Cleaning..
about to run program [/tmp/zdtbchg.sh] with 1 args

about to run program [/tmp/busybox] with 3 args
Bug Report
data: applet not found
run_program: child exited with status 1
minzip: Extracted file "/data/pak/create_bugreport.sh"
minzip: Extracted file "/data/pak/create_bugreport_delayed.sh"

Extracting Boot.img...
about to run program [/tmp/busybox] with 4 args
32768+0 records in
32768+0 records out
16777216 bytes (16.0MB) copied, 0.293176 seconds, 54.6MB/s
about to run program [/tmp/unpackbootimg] with 5 args
BOARD_KERNEL_CMDLINE console=ttyHSL0,115200,n8 androidboot.hardware=g2 user_debug=31 msm_rtb.filter=0x0
BOARD_KERNEL_BASE 00000000
BOARD_PAGE_SIZE 00000800
about to run program [/tmp/repack-ramdisk.sh] with 1 args
mkdir: can't create directory '/tmp/ramdisk': File exists
gunzip: ../boot.img-ramdisk.gz is not compressed -- skipping
sed: init.g2.rc: No such file or directory
sed: init.g2.rc: No such file or directory
sed: init.g2.rc: No such file or directory
sed: init.g2.rc: No such file or directory
sed: init.g2.rc: No such file or directory
sed: init.g2.rc: No such file or directory
sed: init.g2.rc: No such file or directory
sed: init.g2.rc: No such file or directory
sed: init.mako.rc: No such file or directory
sed: init.mako.rc: No such file or directory
about to run program [/tmp/mkbootimg.sh] with 1 args
cp: can't stat '/tmp/newboot.img': No such file or directory
usage: mkbootimg
--kernel <filename>
--ramdisk <filename>
[ --second <2ndbootloader-filename> ]
[ --cmdline <kernel-commandline> ]
[ --board <boardname> ]
[ --base <address> ]
[ --pagesize <pagesize> ]
[ --ramdiskaddr <address> ]
-o|--output <filename>
run_program: child exited with status 1
about to run program [/tmp/nb2b.sh] with 1 args

Newboot.img to boot.img

Flashing through Loki..
minzip: Extracted file "/tmp/loki.sh"
minzip: Extracted file "/tmp/loki/loki_flash"
minzip: Extracted file "/tmp/loki/loki_patch"
about to run program [/tmp/loki.sh] with 1 args
2048+0 records in
2048+0 records out
1048576 bytes (1.0MB) copied, 0.033295 seconds, 30.0MB/s
[+] loki_patch v2.1
[-] Failed to open /tmp/loki/boot.img for reading.
run_program: child exited with status 1
script aborted: assert failed: run_program("/tmp/loki.sh") == 0
assert failed: run_program("/tmp/loki.sh") == 0
E:Error executing updater binary in zip '/data/media/0/sideload.zip'
I:Set page: 'action_complete'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'advanced'
I:Set page: 'confirm_action'
I:Set page: 'action_page'
I:Copying file /tmp/recovery.log to /data/media/0/recovery.log