[oe] [PATCH 3/3] syslinux: upgrade to 3.82 and split into a few packages
Roman I Khimov
khimov at altell.ru
Mon Aug 17 18:29:32 UTC 2009
В сообщении от Понедельник 17 августа 2009 19:35:41 автор Michael Smith написал:
> Sure, I can take a look at that later. I'm really only using extlinux
> for USB sticks; for everything else I still like GRUB best.
You can also do bootable USB drive images with GRUB (not GRUB2, unfortunately)
with something like this added to standard ext2 image for drive FS:
============================
HDDIMG = "${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.img"
IMAGE_POSTPROCESS_COMMAND = " \
dd if=/dev/zero of=${HDDIMG} bs=512 count=63; \
dd if="${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.ext2" of=${HDDIMG} bs=512 seek=63; \
head -c 8388608 /dev/zero >> ${HDDIMG}; \
cat ${WORKDIR}/sfdisk.one_partition | /sbin/sfdisk ${HDDIMG}; \
echo -e "device (hd0) ${HDDIMG} \n root (hd0,0) \n setup (hd0)" | qemu-i386 ${IMAGE_ROOTFS}/usr/sbin/grub --device-map=/dev/null --batch ; \
rm "${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.ext2" "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2"; \
"
============================
where "sfdisk.one_partition" is
==========================
# partition table of test
unit: sectors
test1 : start= 63, size= , Id=83
test2 : start= 0, size= 0, Id= 0
test3 : start= 0, size= 0, Id= 0
test4 : start= 0, size= 0, Id= 0
==========================
A bit hacky-whacky may be, but works good here for USB installer images.
More information about the Openembedded-devel
mailing list