Replies: 4 comments 10 replies
-
I can see some possible benefits of such a capability. In particular if one wanted to add something new to multiple systems without going through complete rebuilds.*** BUT, if there is anything wrong in the plugin, you can't just fix it and reapply as the system is now in a different state than the plugin might be expecting. I imagine you'd have to manually back out whatever changes the plugin made (e.g. copy/create files, modify permissions, install apps, remove systemd services, etc.) to get back to the previous running state and then run the fixed plugin. Guess this is pretty much what one does without sdm. If the plugin without any modifications could be added to future --customize or --burn operations**, it would be better than having manually performed the changes to the running system and then running an untested plugin at some point in the future when you next did a --customize and --burn.*** When I started this reply I was expecting to conclude that I probably wouldn't use it, but after thinking it through, I think I would find it very beneficial. ** This assumes the same plugin could run on both the Linux Mint system that I use to configure and burn uSD cards and on the running RPis. *** Just realized I learned my lesson (the first, but not last, time) about making changes in the target system rather than in the original source almost 60 years ago. (:-) |
Beta Was this translation helpful? Give feedback.
-
I think I would on try this from within a Docker development container. |
Beta Was this translation helpful? Give feedback.
-
Here's my updated thinking on this.
What about the running system? Still thinking about the real value of that, so starting without that. This is similar in operation to In the case of Thoughts? |
Beta Was this translation helpful? Give feedback.
-
Aha!!! I misunderstood where you intended this to run. From "in the context of the currently running system" and "adding or updating plugins into the runing system" I thought it was to run on the target RPi. I see now that the command and plugin would run on the host system, not the target RPi. I'll admit I get confused (and will probably find difficult to keep straight in the long term when I go away from sdm for a while) with all the variations of what plugin is copied to/from where and which version will get run. For that reason, I always maintain a master copy that I update and reference by full path name. I find implicit sources of things to be confusing at best. (I realize this may be influenced by my habit of running sdm customize or burn from a script so once I've added a plugin (or other) switch with a full path reference, it's just there the next time I run it. If one only needs a couple of very familiar switches and runs the command directly from the command line, it might be easier to have the plugins in a directory where sdm knows to look for them.) You might consider a different name for the switch. --runonly could refer to running any number of things. Maybe --plugins-only? I can see how using this would help with debugging plugins (especially as I'm not particularly adept with bash). |
Beta Was this translation helpful? Give feedback.
-
Here's a new plugin feature that popped up. Your thoughts appreciated.
A new switch
-xxx
has sdm run the plugins (also specified on that command line) in the context of the currently running system.I think it could be useful for adding or updating plugins into the runing system and dev/test on a new plugins. I think there are benefits, but unclear how useful you guys would find this.
For instance, you decide to add the plugin
clockfake
to your system.sudo sdm --xxx --plugin clockfake
to install clockfake. It seems to be even more useful for a service you want to add to multiple different servers.In the plugin dev/test scenario, useful? Def need to be careful about what you actually do to the running system!
Also, this would only work on systems that have a) sdm installed and (maybe) b) were built with sdm (or have a /etc/sdm/cparams file in place that's "good enough"
Appreciate your thoughts. Thx
Beta Was this translation helpful? Give feedback.
All reactions