on Monday 03 August 2009 Stacey Murphy wrote:
When the rules processing is done by autoyast, I can supply a custom1 class based upon a shell script. I have an ask section in the autoyast profile that queires the user for the type of install to be done. Based upon that value that I store to a file on the temporary ramdisk (/mnt), I want to have the rule get the right class to merge. But the docs don't really say whether the rule is executed before or after the ask.
before. <ask> can have no influence on the rules. Martin Vogt asked for a feature implementation to change exactly that.
If ask does run afterwards, how can I get a user supplied value that can be queried by the rule/calls based scripts?
not possible. You can only replace the complete profile: http://www.suse.de/~ug/Examples/index.html read "the <ask> feature" part, which explains how to choose between complete profiles.
And the docs say thathe rules/class script can check for things like host IP and such. But how can the IP exist of the autoinstall hasn't run yet?
you are right. It makes only sense if you do an installtion via network or have raised the network at least (via linuxrc)
Unless I am reading the docs incorrectly and the autoyast profile runs, then the rules are evaluated? So I could have my ask get the user's asnwer, put it in the file on the ramdisk and have rules/class sectin query the file?
no, that's not possible currently but I'll think about it. -- ciao, Uwe Gansert Uwe Gansert SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug listening to: "Trauma" by Joachim Witt -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org