Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dead symlink in /var/log/README #222

Open
b3n-l opened this issue Jun 10, 2024 · 1 comment
Open

Dead symlink in /var/log/README #222

b3n-l opened this issue Jun 10, 2024 · 1 comment
Assignees

Comments

@b3n-l
Copy link
Contributor

b3n-l commented Jun 10, 2024

On boot, the file /var/log/README is created automatically by systemd as part of the 'legacy files'.

As we don't include systemd-doc, this symlink is broken.

The file causing this is tmpfiles.d/legacy.conf from the systemd repo.

This is an upstream issue, which has been patched in Yocto >4.2 openembedded/openembedded-core@18d46e1 however, this change may itself be a problem.
It isn't clear to me whether that would stop systemd creating log directories at runtime in /var/log, or if it is limited to install time.

Another approach I have seen is: openembedded/openembedded-core@ac4c9f5#diff-17f6e12c28058e9bcbaddfa8ea71f60a3e16ca4b5e9a08bc67947f3ad9f7b575 which disables the legacy files creation.

@KanjiMonster
Copy link
Contributor

It was very confusing that the older commit referenced a commit with the same subject as the newer commit.

I think the path forward is here to submit the required commits as patches to be backported to kirkstone, shouldn't be too much work.

I can take care of that once I'm back.

@KanjiMonster KanjiMonster self-assigned this Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants