Re: [yocto] Removing/Disabling /etc/version

2017-02-07 Thread Paul Eggleton
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
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Removing/Disabling /etc/version

2017-02-07 Thread Marc Ferland
Hi,

Easy question!

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...?

Regards,

Marc
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto