Mailinglist Archive: yast-devel (77 mails)

< Previous Next >
Re: [yast-devel] Writting to SCR before system installed
  • From: Jiri Srain <jsrain@xxxxxxx>
  • Date: Tue, 20 Jan 2009 09:37:11 +0100
  • Message-id: <200901200937.12401.jsrain@xxxxxxx>
Dne pondělí 19 Leden 2009 20:06:15 Lee Leahu napsal(a):
Hi List,

I'm developing a module that will run as part of the autoyast installation

It prompts the user for certain details that are only know at the time of
auto installation.

I've already included that module and a blank /etc/sysconfig/file file
into the Installation System's cramfs image.

The process that I designed works like this:
- when autoyast starts, ask the user for the settings
- use SCR to save the settings to /etc/sysconfig/file
- just before the system is rebooted, copy the /etc/sysconfig/file to the
installed hard drive.

Here's the prompt. With step #2, I call SCR::Write but it doesn't write!
I don't see any errors /var/log/YaST2/y2log either.

Yet, if I run the module manually it rights fine.

Without knowing any details, my guess is that you use the ini-agent for
writing the file. It has cache and writes the settings when YaST finishes or
when being told explicitly.

To dump the caches to the disk, you need to call

SCR::Write (, nil), e.g.

SCR::Write (.sysconfig.windowmanager, nil);

Other option would be to store all the data in memory and save it after all
packages are installed; then SCR gets redirected to the target system (I'd
need to know more details to hint how to best achieve it).

Hope that helps,

In both test cases, I'm starting the install using the ssh remote
installation method of SLES10. This allows me to log in and fire off yast2
or the custom module itself at will.

Any thoughts? The module is due soon and I don't want to disappoint.


Lee Leahu Home Office: 1-815-630-2349
RICIS, Inc. Cell Phone: 1-847-337-3422
lee@xxxxxxxxx Main Office: 1-708-444-2690
NOTICE: This e-mail message and all attachments transmitted with it are
intended solely for the use of the addressee and may contain legally
privileged and confidential information. If the reader of this message is
not the intended recipient, or an employee or agent responsible for
delivering this message to the intended recipient, you are hereby notified
that any dissemination, distribution, copying, or other use of this message
or its attachments is strictly prohibited. If you have received this
message in error, please notify the sender immediately by replying to this
message and please delete it from your computer.


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

To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups