Re: [OE-core] [PATCH] Fix create_merged_usr_symlinks in populate_sdk_base.bbclass and image.bbclass

Mathieu Dubois-Briand
2026-01-07T07:36:32Z

On Mon Jan 5, 2026 at 3:50 AM CET, Yangwoo Byun via lists.openembedded.org wrote:
> Modifying FILESYSTEM_PERMS_TABLES does not change the UID and GID of
> /usr/bin.
> To change the UID and GID of /usr/bin in FILESYSTEM_PERMS_TABLES to
> something other than root:root, we need to modify
> the create_merged_usr_symlinks function.
> The ":append" method allows us to apply changes inserted in the middle
> by applying the create_merged_usr_symlinks function at the end of
> the execution order.
>
> Signed-off-by: Yangwoo Byun <yw.byun@lge.com>
> ---

Hi Yangwoo,

Thanks for your patch.

It looks like some image tests are broken by this patch. We get the
following error on the autobuilder:

RESULTS - parselogs.ParseLogsTest.test_parselogs: FAILED (9.86s)
RESULTS - systemd.SystemdBasicTests.test_systemd_failed: FAILED (3.69s)
...
Traceback (most recent call last):
File "/srv/pokybuild/yocto-worker/qemuarm64-alt/build/layers/openembedded-core/meta/lib/oeqa/core/decorator/__init__.py", line 35, in wrapped_f
return func(*args, **kwargs)
File "/srv/pokybuild/yocto-worker/qemuarm64-alt/build/layers/openembedded-core/meta/lib/oeqa/runtime/cases/parselogs.py", line 185, in test_parselogs
self.assertEqual(errcount, 0, msg=self.msg)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 6 != 0 : Log: /srv/pokybuild/yocto-worker/qemuarm64-alt/build/build/tmp/work/qemuarm64-poky-linux/core-image-full-cmdline/1.0/target_logs/dmesg_output.log
-----------------------
Central error: [ 4.807586] systemd[1]: proc-fs-nfsd.mount: Failed with result 'exit-code'.
***********************
[ 4.728367] EXT4-fs (vda): re-mounted 584f5c6c-2ed1-4b79-88be-411c0a82191d.
[ 4.750313] systemd[1]: Mounted POSIX Message Queue File System.
[ 4.757693] systemd[1]: Mounted Kernel Debug File System.
[ 4.760539] systemd[1]: Mounted Kernel Trace File System.
[ 4.762862] systemd[1]: Mounted Temporary Directory /tmp.
[ 4.774041] systemd[1]: modprobe@configfs.service: Deactivated successfully.
[ 4.788111] systemd[1]: Finished Load Kernel Module configfs.
[ 4.796349] systemd[1]: modprobe@fuse.service: Deactivated successfully.
[ 4.800731] systemd[1]: Finished Load Kernel Module fuse.
[ 4.806094] systemd[1]: proc-fs-nfsd.mount: Mount process exited, code=exited, status=32/n/a
[ 4.807586] systemd[1]: proc-fs-nfsd.mount: Failed with result 'exit-code'.
[ 4.809202] systemd-journald[129]: Collecting audit messages is disabled.
[ 4.811318] systemd[1]: Failed to mount NFSD configuration filesystem.
[ 4.813837] systemd[1]: Dependency failed for NFS Mount Daemon.
[ 4.815101] systemd[1]: Dependency failed for NFS server and services.
[ 4.818094] systemd[1]: nfs-server.service: Job nfs-server.service/start failed with result 'dependency'.
[ 4.819597] systemd[1]: nfs-mountd.service: Job nfs-mountd.service/start failed with result 'dependency'.
[ 4.825984] systemd[1]: Finished Generate network units from Kernel command line.
[ 4.834216] systemd[1]: Finished Remount Root and Kernel File Systems.
[ 4.838363] systemd[1]: Finished Apply Kernel Variables.
[ 4.842779] systemd[1]: Finished Load udev Rules from Credentials.
...
Traceback (most recent call last):
File "/srv/pokybuild/yocto-worker/qemuarm64-alt/build/layers/openembedded-core/meta/lib/oeqa/core/decorator/__init__.py", line 35, in wrapped_f
return func(*args, **kwargs)
File "/srv/pokybuild/yocto-worker/qemuarm64-alt/build/layers/openembedded-core/meta/lib/oeqa/runtime/cases/systemd.py", line 100, in test_systemd_failed
output += self.systemctl('status --full --failed')
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/pokybuild/yocto-worker/qemuarm64-alt/build/layers/openembedded-core/meta/lib/oeqa/runtime/cases/systemd.py", line 26, in systemctl
self.assertEqual(status, expected, message)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 3 != 0 : SYSTEMD_BUS_TIMEOUT=240s systemctl status --full --failed
× proc-fs-nfsd.mount - NFSD configuration filesystem
Loaded: loaded (/usr/lib/systemd/system/proc-fs-nfsd.mount; static)
Active: failed (Result: exit-code) since Tue 2026-01-06 10:14:07 UTC; 1min 19s ago
Invocation: acc2ccd9d93947c9a38972cb1cf129f8
Where: /proc/fs/nfsd
What: nfsd
Mem peak: 1M
CPU: 91ms

https://autobuilder.yoctoproject.org/valkyrie/#/builders/9/builds/2958
https://autobuilder.yoctoproject.org/valkyrie/#/builders/20/builds/2947

This can be reproduced adding `IMAGE_CLASSES += "testimage"` to your
configuration with qemux86 or qemuarm64 MACHINE and poky-altcfg DISTRO.
Then just `bitbake core-image-full-cmdline && bitbake
core-image-full-cmdline:do_testimage` should be enough.

Can you have a look at the issue?

Thanks,
Mathieu

--
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering