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

Fix installation race #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

viccie30
Copy link

The Debian packaging builds tiny-initramfs twice with different variant names and installs both into the same directory. If the build uses multiple threads this can lead to a race condition between the copying of the init binary and the renaming.

This commit fixes the issue at the root by eliminating the separate steps and combining the installation and renaming into one invocation.

@viccie30 viccie30 force-pushed the fix-installation-race branch from c649667 to 1d6633f Compare September 1, 2022 12:22
The old situation led to errors when building the Debian package with
more than one thread.
@viccie30 viccie30 force-pushed the fix-installation-race branch from 1d6633f to 6cc3c03 Compare February 14, 2024 09:17
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.

1 participant