]> code.ossystems Code Review - openembedded-core.git/commitdiff
bootimg: copy rootfs to ISO image
authorSamuel Ortiz <sameo@linux.intel.com>
Mon, 27 Oct 2008 12:43:38 +0000 (13:43 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 27 Oct 2008 12:44:20 +0000 (13:44 +0100)
We are only copying the initrd right now.

meta/classes/bootimg.bbclass

index d15818ee5b1605c9996edd85263774e057238cb2..1a24ac7187e66b704f8beb6c5651293f5b816805 100644 (file)
@@ -83,6 +83,10 @@ build_boot_bin() {
 
                install -m 0644 ${INITRD} ${ISODIR}/initrd
 
+               if [ -n "${ROOTFS}" ] && [ -s "${ROOTFS}" ]; then 
+                       install -m 0644 ${ROOTFS} ${ISODIR}/rootfs.img
+               fi
+
                # And install the syslinux stuff 
                cp ${STAGING_DATADIR}/syslinux/isolinux.bin \
                ${ISODIR}