-
Notifications
You must be signed in to change notification settings - Fork 34
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
Copy only the selected backend configuration to the target system (bsc#1206723) #1318
Conversation
3170b5e
to
39796b2
Compare
39796b2
to
f310fdb
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.
Nothing critical, just a few comments about the overall approach because I feel it is influenced by the old code (which is neither good or bad).
In general, these classes encapsulate two different behaviors (which is fine):
Perhaps, we would like to reuse part one only. Let's consider I only want to copy a single file, what about having an API for that (without subclassing)? copier = Copier.new
copier.copy("/etc/hosts")
copier.copy("/etc/NetworkManager/system-connections", include: ["*.nmconnection"]) Now the class WickedCopier # or Writer or whatever
def copy
copier = Copier.new
copier.copy("/etc/hosts")
copier.copy("/etc/NetworkManager/system-connections", include: ["*.nmconnection"])
end
end WDYT? |
Yes, in fact it is an part of the code was almost moved as it is. |
ecbf386
to
793f4a7
Compare
793f4a7
to
5d74bb8
Compare
7ad4150
to
ffcd364
Compare
✔️ Public Jenkins job #317 successfully finished |
✔️ Internal Jenkins job #212 successfully finished |
Well ... already merged, but as i was asked for an opinion ... I've tested that, read through and it LGTM |
Problem
Until now, the wicked or sysconfig network configuration was always copying to the target system during a normal installation.
Recent changes in the Basesystem filesystem packages removed the /etc/sysconfig/network hierarchy from it not being used by default anymore which raises an exception when YaST tries to merge the dhcp and config files from the instsys.
Solution
Copy only the configuration of the selected backend to the target system.
Testing