if [ ! -d $ISOTREE ] ; then
mkdir $ISOTREE
+ [ -d extra ] && rsync -a extra/. $ISOTREE/.
+
# Determine start and size of first parition
X=( $(sfdisk -l -ostart,sectors bootimage.raw | tail -n 2) )
dd if=bootimage.raw of=$P1 skip=${X[0]} count=${X[1]}
## put splash, vmlinux and initrd as siblings
mcopy -i $P1 ::/splash.png ::/vmlinuz ::/initrd.gz $ISOTREE/boot/isolinux
-
fi
[ -r $ISO ] && rm $ISO