[yocto] some issues with current poky master

Markus Volk f_l_k at t-online.de
Thu Aug 17 16:34:58 PDT 2017


 
> After sucessful build of the Image, my .iso has 38MB in size and seems to be missing the entire rootfs
> The created hddimg has the right size of 4,3GB, but when i write it onto an usb drive (tried dd and gnome-disk-utility) it ends up with a big /boot partiton containing only the boot files
> 

I still do not know if this is a homemade one, but i saw inside the do_bootimg log that isolevel 3 was missing for mkisofs because the rootfs is too big without.

For me this here inside image-live.bbclass fails for some reason:

	# Check the size of ${ISODIR}/rootfs.img, use mkisofs -iso-level 3
	# when it exceeds 3.8GB, the specification is 4G - 1 bytes, we need
	# leave a few space for other files.
	mkisofs_iso_level=""

        if [ -n "${ROOTFS}" ] && [ -s "${ROOTFS}" ]; then
		rootfs_img_size=`stat -c '%s' ${ISODIR}/rootfs.img`
		# 4080218931 = 3.8 * 1024 * 1024 * 1024
		if [ $rootfs_img_size -gt 4080218931 ]; then
			bbnote "${ISODIR}/rootfs.img execeeds 3.8GB, using '-iso-level 3' for mkisofs"
			mkisofs_iso_level="-iso-level 3"
		fi
	fi



hard coding mkisofs_iso_level to

	mkisofs_iso_level="-iso-level 3"

fixes this up
-- 
Markus Volk <f_l_k at t-online.de>



More information about the yocto mailing list