Dne 14.8.2012 10:18, Josef Reidinger napsal(a):
On Tue, 14 Aug 2012 10:12:46 +0200
Michal Filka<[email protected]>  wrote:

So proposal is to have methods
read/write that is called from glove, but in config agent
implementation will be in methods load/save(or store?).
... do you mean a sort of own API for accessing system?

Michal Filka

I mean that I need layer between gloves and config agent.

So you call e.g.
Sysconfig.read("/etc/sysconfig/display_manager",:__chroot
=>  "/tmp/chroot")

ConfigAgent::Agent have method read, that check for global parameters
like __chroot and call inside e.g.
Chrooted.run (path) do
   load(*args)
end

What about another approach? Instead of running the agents in chroot, having then run where the rest of the system and the agents just using modified file paths?

Why? Currently even if you install a minimal system, you still need to install YaST, because of the SCR agents. With this changes, it would not be needed any more.

Jiri


--
Regards,

Jiri Srain
Project Manager
---------------------------------------------------------------------
SUSE LINUX, s.r.o.                            e-mail: [email protected]
Lihovarska 1060/12                            tel: +420 284 084 659
190 00 Praha 9                                fax: +420 284 084 001
Czech Republic                                http://www.suse.com
--
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]

Reply via email to