-
Notifications
You must be signed in to change notification settings - Fork 60
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
Allow packages without files on the root partition to get reenabled #539
Comments
I had the exact same case. |
As the saying goes, it’s not a bug, it’s a feature of the To fix this issue, we need to extend the |
@matteodelabre it might be a good idea to implement this keeping #251 in mind? |
The hacky solution for now is to put an empty file on the root partition inside |
I wonder if some combination of a "list installed" command piped to a command to create files based on each line of that list would be scriptable to make it even easier... |
That wouldn't run the install scripts though, which are required to make sure that services get enabled etc. This is why we pipe the list of installed packages, and then filter down to the ones with files on root and reinstall them. It might be worth just running the configure step for every single package, but I'm not sure how easy it is to do that with the correct environment set. |
I think that makes sense. Is there a way to figure out what packages are installed that don't have files on root, so I could add the placeholders to the right folder? |
You would just need to invert the logic used to find the ones that have files on the root partition, found here: toltec/package/toltec-bootstrap/toltecctl Lines 143 to 149 in 9c1aa92
Adding placeholders to the folder will not do anything unless it's part of the package though, as this logic does not check the folder directly, it only works as it's on the root partition, so when listing files for the package we detect that it's installed on the root partition. |
Upgraded from 2.10.(something) to 2.11.0.442. Used
toltecctl reenable
to reload everything. Output :No mention of ddvk-hacks in the log.
To resolve, only needed to remove and re-install ddvk-hacks and all is well.
However, I have remarkable-stylus installed and when I tried to remove ddvk-hacks it errored out because remarkable-stylus was a dependency. So I removed remarkable-stylus, then ddvk-hacks, then re-installed ddvk-hacks, and then remarkable-stylus.
The text was updated successfully, but these errors were encountered: