Hi Luca,

Luca Ceresoli <[email protected]> escreveu no dia quinta,
22/06/2023 à(s) 10:34:

> Hi Jose,
>
> On Thu, 22 Jun 2023 00:18:03 +0100
> "Jose Quaresma" <[email protected]> wrote:
>
> > Hi Luca,
> >
> > Luca Ceresoli <[email protected]> escreveu no dia quarta,
> > 21/06/2023 à(s) 21:22:
> >
> > > Hi Jose,
> > >
> > > On Tue, 20 Jun 2023 22:19:42 +0000
> > > "Jose Quaresma" <[email protected]> wrote:
> > >
> > > > Also take the oportunity to only add configuration files to FILES
> > > > and CONFFILES when they exist and are used.
> > > >
> > > > The modules-load.d [1] - Configure kernel modules to load at boot
> > > > should install their configuration files in /usr/lib/modules-load.d.
> > > >
> > > > The modprobe.d [2] - Configuration directory for modprobe
> > > > should install their configuration files in /lib/modprobe.d
> > > >
> > > > [1]
> https://www.freedesktop.org/software/systemd/man/modules-load.d.html
> > > > [2] https://www.man7.org/linux/man-pages//man5/modprobe.d.5.html
> > > >
> > > > [YOCTO #12212]
> https://bugzilla.yoctoproject.org/show_bug.cgi?id=12212
> > > >
> > > > CC: Ola x Nilsson <[email protected]>
> > > > CC: Peter Kjellerstedt <[email protected]>
> > > > Signed-off-by: Jose Quaresma <[email protected]>
> > >
> > > We're having this error on the autobuilders:
> > >
> > > ERROR: linux-yocto-6.1.33+gitAUTOINC+db25e51e20_947f660bde-r0
> do_package:
> > > QA Issue: linux-yocto: Files/directories were installed but not
> shipped in
> > > any package:
> > >   /etc
> > >
> > > May it be caused by this series?
> > >
> >
> > I have another mistake on the patch that doesn't work without systemd.
> > My fault, on my tests it's been working well because I use the systemd.
> > I will send a V4 and helpfully is the last one.
> >
> > Sorry and thanks for testing.
>
> No problem!
>
> In case it helps your debugging, here is a different kind of error that
> happened in the same AB run:
>
> ERROR: lttng-modules-2.13.9-r0 do_package: Error executing a python
> function in exec_func_python() autogenerated:
> ...
> Exception: FileNotFoundError: [Errno 2] No such file or directory:
> '/home/pokybuild/yocto-worker/beaglebone-alt/build/build/tmp/work/beaglebone_yocto-poky-linux-gnueabi/lttng-modules/2.13.9-r0/package/usr/lib/modprobe.d'
>
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/106/builds/6304/steps/12/logs/stdio
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/104/builds/6236/steps/11/logs/stdio
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/103/builds/6233/steps/12/logs/stdio
>
>
It helps for sure, I have found this also when fixing the last issue on v3,
fixed in v4.

-    for dir in ["%s/etc/modprobe.d" % (dvar), "%s/etc/modules-load.d" %
(dvar), "%s/etc" % (dvar)]:
-        if len(os.listdir(dir)) == 0:
+    for dir in ["%s%s" % (dvar, modprobedir), "%s%s" % (dvar,
modulesloaddir), "%s%s" % (dvar, d.getVar('sysconfdir'))]:
+        if os.path.isdir(dir) and len(os.listdir(dir)) == 0:

Let's see if v4 will bring anything new.

Jose

Luca
>
> --
> Luca Ceresoli, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
>


-- 
Best regards,

José Quaresma
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#183235): 
https://lists.openembedded.org/g/openembedded-core/message/183235
Mute This Topic: https://lists.openembedded.org/mt/99665587/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to