i was wondering what you thought of moving this code up  after line eg if is whole disk image these are dummy values kernel  no kernel  ramdisk  no ramdisk  and after line add the aki path and ari path  and the above if else will not be needed 