Mailinglist Archive: zypp-devel (115 mails)

< Previous Next >
Re: [zypp-devel] Re: Init of ZYpp configuration and root
  • From: Jiri Srain <jsrain@xxxxxxx>
  • Date: Tue, 3 Jul 2007 14:34:00 +0200
  • Message-id: <200707031434.03777.jsrain@xxxxxxx>
Dne úterý 03 červenec 2007 14:15 Klaus Kaempf napsal(a):
> * Jiri Srain <jsrain@xxxxxxx> [Jul 03. 2007 14:11]:
> > This cannot work for the installation, since you cannot access the root
> > before the target system gets formatted and mounted and you need to use
> > ZYPP for software selection.
> >
> > We need a way to change the target path while ZYPP is running. It is
> > essential for the installation and we need it ASAP to start testing the
> > installation.
>
> Do we need to change the target path ?

If there should be valid what Michael wrote:

--- snip ---

That way e.g. ZYpp::targetInit would loose it's 'root' argument. Zypp will 
use the argument provided by the context class instead. That's probabely 
the most significant change, because zypper/pkg-bindings have to tell the 
root path quite early in their workflow (before accessing ZYpp).

--- snap ---

then we do (before accessing ZYpp).

> Wouldn't it be sufficient to delay the start of the target until
> after the root partition is formatted and mounted ?
>
> Software selection should be possible without initialized target.

Yes, if target can be initialized later, then it can work.

Installation into directory will probably need some update as well (currently 
it initializes target and later moves it, but I don't see any reason why it 
could not work the same way as during normal installation).

Jiri

-- 
Regards,

Jiri Srain
YaST Team Leader
---------------------------------------------------------------------
SUSE LINUX, s.r.o.                             e-mail: jsrain@xxxxxxx
Lihovarska 1060/12                             tel: +420 284 028 959
190 00 Praha 9                                 fax: +420 284 028 951
Czech Republic                                 http://www.suse.cz
< Previous Next >