Bug 15292 - systemd-compat-units: error at package post-install time
Summary: systemd-compat-units: error at package post-install time
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 5.0
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 5.0 M1
Assignee: Michael Opdenacker
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2023-11-22 10:15 UTC by Michael Opdenacker
Modified: 2023-11-28 18:04 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Opdenacker 2023-11-22 10:15:58 UTC
On a system built without systemd, I'm getting this error after running
"opkg upgrade" (for example between yocto 4.2.2 and 4.2.3):

Configuring systemd-compat-units
//var/lib/opkg/info/systemd-compat-units.postinst: cd: line 3: can't cd to /etc/init.d: No such file or directory

This happens because of the way the existence of /etc/init.d/ is tested. If the directory doesn't exist, the "cd" command issues an error.
Comment 1 Michael Opdenacker 2023-11-22 10:25:12 UTC
Proposed a fix:
https://lists.openembedded.org/g/openembedded-core/message/191055