Move preload and firejail setup to oneshot script#523
Move preload and firejail setup to oneshot script#523
Conversation
2bb6bbf to
938d43e
Compare
|
Update: I have done a couple of de-installations and re-installations, and to me it seems to work as expected. |
Thanks; I had little time the past two months, but will now take a look at it soon™. |
Clarified comment regarding oneshot script execution.
All fine! :) (the original comment was straight from the oneshot manual, but this version is better. Now, what could happen is if this run of the oneshot "fails" for whatever reason, PM will not be functional (pretty much as described in #521). |
|
I just did an update of my C2 to 5.0.0.73(EA), having installed a build of PM called
I will have to investigate... |
The preload macro is executed in the "at package install" section of the rpm Perhaps the fix for that is to call it also in the "at package update" case (but perhaps without the Changed in 629d735. [EDIT:] Tested that, and it works fine.
If I understand correctly, the script is run exactly once (if a symlink exists in /etc/oneshot.d). If the run is successful, the symlink is removed.
For this issue, we could either "always fail" ( |
Unlikely, but most of the other oneshot scripts do it this way too. And Patchmanager *may* be included in a custom adaptation/port.
I wonder: Make a service like this: This should then run If that is true, let |
|
Soo, what is the chance that 8d4e507 actually "bricks" devices by causing a failure during OS updates? Or regular boot? Do we risk it? |
Workarounds/fixes for #521
Instead of setting up files in
%post, do it in a script and launch thatthrough the oneshot feature