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

xx-apk: fix problem with writing lock in latest alpine #185

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

tonistiigi
Copy link
Owner

xx-apk can return 0.069 mkdir: can't create directory '': No such file or directory in latest alpine 3.21

mkdir -p "$(readlink -f /var/lock)"
because readlink -f does not return a valid path. This seems to depend on the working directory. I don't see such behavior in coreutils and man readlink also does not suggest this as a valid behavior afaics.

As a workaround, temporarily switch the working directory to root before calling readlink.

@tonistiigi tonistiigi merged commit 8cec517 into master Dec 9, 2024
25 of 27 checks passed
@tonistiigi
Copy link
Owner Author

Busybox issue tracked in https://bugs.busybox.net/show_bug.cgi?id=16273

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

Successfully merging this pull request may close these issues.

2 participants