[yocto] Removing/Disabling /etc/version

Paul Eggleton paul.eggleton at linux.intel.com
Tue Feb 7 14:27:55 PST 2017


Hi Marc,

On Tuesday, 7 February 2017 2:20:09 PM NZDT Marc Ferland wrote:
> I would like to disable the /etc/version file from being installed to
> the rootfs. How do I proceed? It looks hard-coded at first glance...?

It is hardcoded, however it would be trivial to delete it in a shell function 
added to ROOTFS_POSTPROCESS_COMMAND e.g. in the image recipe (or a class 
inherited from the image recipe):


remove_etc_version () {
	rm ${IMAGE_ROOTFS}${sysconfdir}/version
}
ROOTFS_POSTPROCESS_COMMAND += "remove_etc_version ; "


Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



More information about the yocto mailing list