| Summary: | Environment variables added via systemd environment generators don't work | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Trent Piepho <trent.piepho> |
| Component: | core | Assignee: | Unassigned <unassigned> |
| Status: | NEW --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | changqing.li, hongxu.jia, kai.kang, meta.mr.watcher, meta.watcher, narpat.falna, randy.macleod, ross.burton |
| Version: | 5.0.7 | ||
| Target Milestone: | 6.99 | ||
| Hardware: | x86 | ||
| OS: | x86_64 | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
|
Description
Trent Piepho
2025-02-22 01:05:58 UTC
Do you need to enable 'pam' as a DISTRO_FEATURE ? It is enabled: DISTRO_FEATURES="debuginfod ext4 ipv4 ipv6 usbhost wifi pci 3g vfat wifi pam efi opengl multiarch wayland vulkan systemd-resolved rauc systemd usrmerge gobject-introspection-data ldconfig" Hi Trent,
Thanks for showing that your DISTRO_FEATURES include pam.
Are you able to dig through the systemd configuration and
add what's needed to enable this feature and send a patch to master?
I only have a kirkstone build at hand but in:
tmp/work/core2-64-poky-linux/systemd/1_250.5-r0/temp/log.do_configure
I see:
Message: Skipping systemd-xdg-autostart-generator.8 because ENABLE_XDG_AUTOSTART is false
You seem to be using 5.0.7 aka scarthgap, is that right?
../Randy
Yes, using scarthgap. systemd-xdg-autostart-generator is a service generator. Similar to the one that automatically adds the getty@ttyS0.service serial console unit if the kernel command line references a serial console. But its for desktop app auto start files. Totally unrelated to environment generators. Thanks for explaining what systemd-xdg-autostart-generator is. Are you able to dig through the systemd configuration and add what's needed to enable this feature and send a patch to master? If so, please put the bug in ACCEPTED and assign it to yourself. Otherwise, I'll set the owner to unassigned and someone might get to this eventually. I don't know what needs to be done to fix it. I don't think there is a systemd feature that needs to be enabled. I didn't see anything optional in the systemd code related to this. And systemd is running the environment generator and it is adding the output to the environment shown with systemctl show-environment. I think it's something with how user sessions are started, maybe related to systemd-logind, but I've not dug into how all that works now. "I don't know what needs to be done to fix it." -> unassigned. I thought about suggesting that you strace the various systemd processes on Yocto and Fedora but the logs would be huge! ;-) If you come up with a plan, please let us know here. Thanks Trent. Bulk move of all unassigned 5.2 medium importance bugs to 5.3. We don't have anyone to work on this issue, parking in 6.99. If you can check master or wrynose when it's released, that would be good. |