Re: [yocto] Remove nfs packages from image

2018-02-05 Thread Marek Słomiany
I have managed to track down what was including nfs-utils.
What I have done is, I think, worth to mention for future:
I have added BBMASK in my conf/local.conf to mask nfs-utils.bb recipe, than
tried to build my image.
As expected, build failed because nfs-utils recipe was required but not
found.
In the failure log the chain of includes/inherits was shown and the thing
that required nfs-utils was packagegroup-core-full-cmdline.
Thanks for your help.

Kind regards,
Marek

pt., 2 lut 2018 o 14:43 użytkownik Alexander Kanavin <
alexander.kana...@linux.intel.com> napisał:

> On 02/02/2018 03:23 PM, Marek Słomiany wrote:
>
> > It's still on target:
> > root@target# opkg list |grep nfs
> > libnfsidmap0 - 0.25-r0
> > nfs-utils - 2.1.1-r0
> > nfs-utils-client - 2.1.1-r0
> > nfs-utils-mount - 2.1.1-r0
> >
> > While checking for any nfs-things using "bitbake  -e |grep -v ^#
> > |grep -i nfs" the only interesting thing I got is this:
> > EXCLUDE_FROM_WORLD_pn-unfs3_libc-musl="1"
> > FEATURE_PACKAGES_nfs-client="packagegroup-core-nfs-client"
> > FEATURE_PACKAGES_nfs-server="packagegroup-core-nfs-server"
> >
> > from which first one is not the thing, and two following are
> > from /meta/classes/core-image.bbclass and if I'm correct it's just
> > defining what will happen when I add nfs-client or nfs-server to
> > IMAGE_FEATURES.
> > Maybe I should delete manually some sstate or something?
>
> I'd say first inspect log.do_rootfs for your image, and maybe there are
> clues in it as to why these packages get pulled in. You might have a
> depdendency on them somewhere else.
>
> Alex
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Remove nfs packages from image

2018-02-02 Thread Alexander Kanavin

On 02/02/2018 03:23 PM, Marek Słomiany wrote:


It's still on target:
root@target# opkg list |grep nfs
libnfsidmap0 - 0.25-r0
nfs-utils - 2.1.1-r0
nfs-utils-client - 2.1.1-r0
nfs-utils-mount - 2.1.1-r0

While checking for any nfs-things using "bitbake  -e |grep -v ^# 
|grep -i nfs" the only interesting thing I got is this:

EXCLUDE_FROM_WORLD_pn-unfs3_libc-musl="1"
FEATURE_PACKAGES_nfs-client="packagegroup-core-nfs-client"
FEATURE_PACKAGES_nfs-server="packagegroup-core-nfs-server"

from which first one is not the thing, and two following are 
from /meta/classes/core-image.bbclass and if I'm correct it's just 
defining what will happen when I add nfs-client or nfs-server to 
IMAGE_FEATURES.

Maybe I should delete manually some sstate or something?


I'd say first inspect log.do_rootfs for your image, and maybe there are 
clues in it as to why these packages get pulled in. You might have a 
depdendency on them somewhere else.


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


Re: [yocto] Remove nfs packages from image

2018-02-02 Thread Anuj Mittal
On 02/02/2018 04:06 PM, Marek Słomiany wrote:
> Hi,
> 
> I am using yocto rocko, with custom distro (based on poky), and custom
> image inheriting core-image bbclass.
> I was asked to get rid of nfs-client and nfs-server (and generaly
> nfs-anything) from our image. If I'm right it comes with core-image.bbclass.
> I have tried using IMAGE_INSTALL_remove, DISTRO_FEATURES_remove,
> IMAGE_FEATURES_remove and few others in different places (like: image
> recipe, build/conf/local.conf) and there was no outcome, the nfs
> server/client were always there.
> Packages I was trying to point in those *_remove commands where "fns"
> "nfs-utils" "nfs-server" "nfs-client" and "packagegroup-core-nfs".
> Could you please give me a hint how to get rid of those?

I think it gets included by default using DISTRO_FEATURES_DEFAULT. So
using DISTRO_FEATURES_remove = " nfs" should work. However, you may also
want to define your own set of values for your distro for DISTRO_FEATURES.

https://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html#ref-features-distro

Thanks,
Anuj

> 
> Kind regards,
> Marek Słomiany
> 
> 

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


Re: [yocto] Remove nfs packages from image

2018-02-02 Thread Alexander Kanavin

On 02/02/2018 12:22 PM, Anuj Mittal wrote:

I think it gets included by default using DISTRO_FEATURES_DEFAULT. So
using DISTRO_FEATURES_remove = " nfs" should work. However, you may also
want to define your own set of values for your distro for DISTRO_FEATURES.

https://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html#ref-features-distro


DISTRO_FEATURES generally influence how packages get built, not what 
packages get installed into images.



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


Re: [yocto] Remove nfs packages from image

2018-02-02 Thread Alexander Kanavin

On 02/02/2018 10:06 AM, Marek Słomiany wrote:
I am using yocto rocko, with custom distro (based on poky), and custom 
image inheriting core-image bbclass.
I was asked to get rid of nfs-client and nfs-server (and generaly 
nfs-anything) from our image. If I'm right it comes with core-image.bbclass.
I have tried using IMAGE_INSTALL_remove, DISTRO_FEATURES_remove, 
IMAGE_FEATURES_remove and few others in different places (like: image 
recipe, build/conf/local.conf) and there was no outcome, the nfs 
server/client were always there.
Packages I was trying to point in those *_remove commands where "fns" 
"nfs-utils" "nfs-server" "nfs-client" and "packagegroup-core-nfs".

Could you please give me a hint how to get rid of those?


You can run bitbake -e  and check the output to see how the nfs 
package group gets pulled into the image. Generally, you need to make 
sure nfs-client and nfs-server are not in IMAGE_FEATURES, and define it 
at the source, rather than try to patch it after the fact via 
_remove-type hacks. Not sure why it doesn't work for you.


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


Re: [yocto] Remove nfs packages from image

2018-02-02 Thread Alexander Kanavin

On 02/02/2018 12:24 PM, Alexander Kanavin wrote:

I think it gets included by default using DISTRO_FEATURES_DEFAULT. So
using DISTRO_FEATURES_remove = " nfs" should work. However, you may also
want to define your own set of values for your distro for 
DISTRO_FEATURES.


https://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html#ref-features-distro 



DISTRO_FEATURES generally influence how packages get built, not what 
packages get installed into images.


Actually that's wrong, sorry for confusion. 'nfs' in DISTRO_FEATURES 
adds rpcbind and nfs kernel module to packages. 'nfs-client' in 
IMAGE_FEATURS adds nfs-utils-client, 'nfs-server' also adds nfs-utils.


Dropping nfs-related stuff from both DISTRO_FEATURES and IMAGE_FEATURES 
should be enough.



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