-
Notifications
You must be signed in to change notification settings - Fork 25
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(rpm-ostree): Optfix is not properly creating symlinks on new installs #165
Comments
I don't know how optfix functions currently to fix this issue now, but I know that we are waiting for Related issue: |
I assume that fix will land sometime soon when its ready? I was a bit confused going from bluebuild docs to the mentioned issue which was merged, wasnt sure when that lands in regular fedora atomic desktops |
Probably no need for a fix with the current system as there's a manual workaround and an upstream fix coming sometime soon |
I'm the original writer of the work around (Well, only did the bash code for it as a script in my personal image, but some other users started using it in theirs and it was made into a module by somebody else) and how it works is that it first symlinks /opt to point to /var/opt, and then it iterates through the specified directories and creates symlinks on /var/opt/[directory] to /usr/lib/opt/[directory] before installing packages. This makes the packages successfully install, but for some reason, these symlinks sometimes don't make it to the final image. I've tried to look into it, but I eventually gave up as I couldn't consistently reproduce the issue consistently. Sadly, it isn't an easy fix. I could look into it once more, but as mentioned in #112, upstream's experimental feature should work better, so if I have time I'll take a look at how to enable it by default and make a pull request. |
My current optfix version is |
I assume you mean rpm-ostree?
Mine doesn't, and my rpm-ostree version is |
I believe that I don't know currently how to do that in build-time, but I will try to investigate. |
Here's how it works: coreos/rpm-ostree#233 (comment) I think that we should go with environment variable solution (Modifying rpm-ostreed.service.d) |
Needs to be tested. EDIT: Environment variable approach doesn't work. |
The only mention I've found of that is in the release page:
However, I can't find where this switch is. I've tried rpm-ostree [command] --help and searching the source code for it and no dice. |
Oh yeah, I think |
I think someone already did? coreos/fedora-coreos-tracker#1681 |
Okay, I figured it out. This switch was changed to an enum named |
This is where the treefiles are. I can make an issue there later, if someone doesn't go first. |
I run a custom image, https://github.com/Oakleafknight06/startingleaf, in which I install Mullvad VPN, which requires optfix as it installs into /opt. On my main workstation, this is working perfectly. However, on my secondary test system, the last two fresh installs I have done the symlink is not created correctly. The files are present in /usr/lib/opt/Mullvad\ VPN, but not in /opt/Mullvad\ VPN .
To fix temporarily I have run
sudo ln -s /usr/lib/opt/Mullvad\ VPN /opt/Mullvad\ VPN
and with that mullvad works normally.(and a sidenote, I am new to filing issues so if I dont include anything you need or any other way I don't do the correct thing let me know, I'm happy to help)
The text was updated successfully, but these errors were encountered: