Skip to contentSkip to conversation

False handling of image types (pls check assumptions of your distro)

DISCUSSION Leon Woestenberg 3 participants 3 messages Mar 24, 2007 – Mar 26, 2007

lore
Share & tools
lore
#0 lore raw

Hello,

I noticed some regressions in building (multiple) image types:

I am building a "tar" and a "squashfs-lzma" image. There was a rm wildcard so that my first-built image (link) got erased. I fixed that in the repo.

classes/image.bbclass:96: rm -f
${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.*
classes/image.bbclass:97: ln -s
${IMAGE_NAME}.rootfs.$type
${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.$type

The second regression seems that the IMAGE_CMD_tar now compresses into .tar.bz2.

conf/bitbake.conf:201:IMAGE_CMD_tar

However, we have the seperate "tar.bz2" type for that.

I am not fixing this yet, as Koen warned me some "people/images/distros rely on the (wrong) behaviour".

So if you are such a entity, please fix now. I'll hold off the simple fix to IMAGE_CMD_tar for some time,

Regards,

Signature · 1 line
Leon
#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Leon Woestenberg schreef:

Quoted 5 lines

The second regression seems that the IMAGE_CMD_tar now compresses into .tar.bz2.

conf/bitbake.conf:201:IMAGE_CMD_tar

Quoted 7 lines

However, we have the seperate "tar.bz2" type for that.

I am not fixing this yet, as Koen warned me some "people/images/distros rely on the (wrong) behaviour".

So if you are such a entity, please fix now. I'll hold off the simple fix to IMAGE_CMD_tar for some time,

I fixed mine just now :)

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFGBZPCMkyGM64RGpERAhp6AKCNN//hsdUXKfm3e6plZ+tgJm6NNgCfUboz TJxJ0aq/4RThsLHL9XXxxW8=
=mwy9
-----END PGP SIGNATURE-----

#2 lore raw
In reply to Leon Woestenberg
Quoted 6 lines · Leon Woestenberg

classes/image.bbclass:96: rm -f
${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.*
classes/image.bbclass:97: ln -s
${IMAGE_NAME}.rootfs.$type
${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.$type

Quoted 6 lines

The second regression seems that the IMAGE_CMD_tar now compresses into .tar.bz2.

conf/bitbake.conf:201:IMAGE_CMD_tar

However, we have the seperate "tar.bz2" type for that.

I agree it should generate an uncompressed tarball though and poky already has that change. I'd support changing it in OE.dev, maybe after vetting the machine.conf files to correct any users of tar to one of the compressed types.

Just for future reference, regression implies that it once worked which it didn't so its just a plain bug.

Cheers,

Richard