[yocto] modify sources.list file
yahia farghaly
yahiafarghaly at gmail.com
Fri Sep 1 10:27:09 PDT 2017
Hi,
I am build a deb package manager for the target image. for that i set these
variables in conf/local.conf
> *PACKAGE_FEED_URIS = "http://<server ip>/my-repo/yahia-repo/expiremental \*
>
> * "*
>
> *PACKAGE_FEED_BASE_PATHS = "deb"*
>
> *PACKAGE_FEED_ARCHS = "all"*
>
>
and as expected the result was in sources.list
> *deb http://<server ip>/my-repo/yahia-repo/expiremental/deb/all ./ *
Now , i want to make sources.list to be like this
> *deb http://<server ip>/my-repo/yahia-repo/expiremental/deb/all yahia main*
>
is there any way in yocto to achieve this ?
i tried overwriting content by an exist file on machine with install
command in do_install task but it doesn't work
I also tried in image recipe
> ROOTFS_POSTPROCESS_COMMAND += "modifysourcelist;"
>
>
>> modifysourcelist(){
>
> install -d ${D}/etc/apt
>
> install -m 0755 ${THISDIR}/../addfiles/keyfile/sources.list
>> ${D}/etc/apt
>
> }
>
> and it was no effect.
--
Yahia Farghaly
Graduated from Faculty of Engineering - Electronics and Communications
Department at Cairo University.
Linkedin <https://linkedin.com/in/yahiafarghaly> - GitHub
<https://github.com/yahiafarghaly>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170901/66d1037c/attachment.html>
More information about the yocto
mailing list