-
Notifications
You must be signed in to change notification settings - Fork 103
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
[NixOS support] Run patchelf after autoupdate download #1468
Conversation
df8c377
to
7519e94
Compare
7519e94
to
76bc55d
Compare
76bc55d
to
3d63d77
Compare
90c9e03
to
2741611
Compare
3fec2e0
to
325366e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Structure looks okay, but I don't think that's the way we should be working with the nix store
50b30be
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm still not sure we're doing the patching correctly, but I think we can try and iterate
checkedIsNixOS = false | ||
isNixOS = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could also use a pointer to a bool. But this is fine
Closes #1200
Relates to #896
Relates to #954
Testing notes
Tested on a NixOS 23.05 VM with a bespoke launcher installation.
Uploaded the binary and used
patchelf --set-interpreter
to patch it. Updated the launcher installation so that launcher.flag'slocaldev_path
pointed to the updated binary. Removed all updates from the launcher updates directory, and adjusted the autoupdate interval to something short.Waited for launcher to download a new update. Verified with
patchelf --print-interpreter
that the downloaded binary had been patched appropriately.