Re: "YaST in a container" or "YaST without YaST"
Dne 01. 06. 22 v 2:10 William Brown napsal(a):
Seems super interesting!
Thanks!
So I'm assuming this works by doing something like:
docker run -i -t -v /:/host yast-container
So that the yast-container can interact with the "root" filesystem from /?
Yes, that's the trick, it uses "-v /:/mnt". That's actually the same what YaST does during normal installation, in that case the target system is also mounted to "/mnt". To have full access to the host system it uses some more options, esp. the "--privileged" is important. See https://github.com/yast/yast-in-container/blob/9470635cfaae6b9e1729cb755a944... For accessing the X session in the host it needs some extra options, see https://github.com/yast/yast-in-container/blob/9470635cfaae6b9e1729cb755a944..., that might be useful if you want to run any X application in a container.
Today I found one more interesting use case: disaster recovery. First I removed zypper + libzypp from the system and I was able to install it back using YaST package manager in a container. Then I even removed rpm (!) itself and I was still able to install it back to the system via the YaST container!
This is extremely cool. :D
I was also surprised from how bad situation I could easily recover... :-) -- Ladislav Slezák YaST Developer SUSE LINUX, s.r.o. Corso IIa Křižíkova 148/34 18600 Praha 8
participants (1)
-
Ladislav Slezák