On Monday 2022-06-13 18:16, Ancor Gonzalez Sosa wrote:
The YaST Team has been recently playing with a fun concept. What about running YaST inside a container to manage a system without having YaST or any of its dependencies installed? Turns out it works and we plan to go further!
Learn more at https://yast.opensuse.org/blog/2022-06-13/yastless-yast [..]
That tool only depends on Podman (or alternatively Docker) [...]
# zypper in yast The following 26 NEW packages are going to be installed: augeas augeas-lenses libyui-ncurses16 libyui16 ruby ruby3.1-rubygem-abstract_method ruby3.1-rubygem-cfa ruby3.1-rubygem-cheetah ruby3.1-rubygem-fast_gettext ruby3.1-rubygem-nokogiri ruby3.1-rubygem-ruby-augeas ruby3.1-rubygem-simpleidn ruby3.1-rubygem-unf ruby3.1-rubygem-unf_ext sysconfig sysconfig-netconfig wicked wicked-service yast2 yast2-core yast2-hardware-detection yast2-logs yast2-perl-bindings yast2-pkg-bindings yast2-ruby-bindings yast2-ycp-ui-bindings 26 new packages to install. Overall download size: 11.5 MiB. Already cached: 0 B. After the operation, additional 27.6 MiB will be used. ^C # zypper in podman The following 9 NEW packages are going to be installed: catatonit cni cni-plugins conmon fuse-overlayfs libcontainers-common podman runc slirp4netns 9 new packages to install. Overall download size: 25.0 MiB. Already cached: 0 B. After the operation, additional 113.9 MiB will be used. ^C So instead of having to install yast2 (zypper tells me 11 MB), I now have to podman (25 MB).
those new commands grab YaST and run it in a container that will be transparently used to administer the host system.
It's logically backwards that one is supposed to run Y2 in a container, only to have it go outside again. Containers are not supposed to affect the host system. So you have to widen the namespace to the point that it _is_ the host system, mounts included, at which point you could have just installed Y2.