Hi, I'm trying to use the new Ask feature of autoyast, and prompt the user if they want their disk initialising. This is how the ask lines are looking in the /tmpautoinst.xml after the profiles have been merged etc. <ask-list config:type="list"> <listentry> <default>false</default> <path>partitioning,drive,initialize</path> <question>Do you want to remove all existing partitions ?</question> <stage>initial</stage> <title>Fdisk</title> <type>boolean</type> </listentry> </ask-list> However, I'm not seeing any popups during the install This is on SLED10-rc2 -- Simon Crute IS&T Bracknell Novell UK Ltd
On Tuesday 30 May 2006 15:40, Simon Crute wrote:
I'm trying to use the new Ask feature of autoyast, and prompt the user if they want their disk initialising. This is how the ask lines are looking in the /tmpautoinst.xml after the profiles have been merged etc.
in the <general> section?
<ask-list config:type="list"> <listentry>
is it documented that way? Should be <ask> and not <listentry> (even though both are working) but if we ever get the DTD profile-check fixed, it will complaint about <listentry>
<default>false</default> <path>partitioning,drive,initialize</path>
that's wrong. It's <path>partitioning,0,initialize</path> or 1,2,3 ... depends on the drive number.
However, I'm not seeing any popups during the install
it should work -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nuernberg, Germany e-mail: uwe.gansert@suse.de, Tel: +49-(0)911-74053-0, Fax: +49-(0)911-74053-476, Web: http://www.suse.de
On Tuesday 30 May 2006 14:51, Uwe Gansert wrote:
On Tuesday 30 May 2006 15:40, Simon Crute wrote:
I'm trying to use the new Ask feature of autoyast, and prompt the user if they want their disk initialising. This is how the ask lines are looking in the /tmpautoinst.xml after the profiles have been merged etc.
in the <general> section?
Doh !!
<ask-list config:type="list"> <listentry>
is it documented that way? Should be <ask> and not <listentry> (even though both are working) but if we ever get the DTD profile-check fixed, it will complaint about <listentry>
In my profile, I put <ask-list> but, once the profiles have been merged, and dumped in /tmp/profile/autoinst.xml, it's been changed to <listentry>
<default>false</default> <path>partitioning,drive,initialize</path>
that's wrong. It's <path>partitioning,0,initialize</path> or 1,2,3 ... depends on the drive number.
Ahh, so if any items on the path are lists, you have to specify the number, not the name.
However, I'm not seeing any popups during the install
it should work
It is now. The ask section wasn't in the <general> section. ! Follow up question: Is it possable to do several changes for one answer ? i.e. If the user says, yes to initialize the disks, then I also want to format the home partition. -- Simon Crute IS&T Bracknell Novell UK Ltd
On Tuesday 30 May 2006 16:24, Simon Crute wrote:
is it documented that way? Should be <ask> and not <listentry> (even
In my profile, I put <ask-list> but, once the profiles have been merged, and dumped in /tmp/profile/autoinst.xml, it's been changed to <listentry>
that's okay then
<path>partitioning,0,initialize</path> or 1,2,3 ... depends on the drive number.
Ahh, so if any items on the path are lists, you have to specify the number, not the name.
that's right
Follow up question: Is it possable to do several changes for one answer ? i.e. If the user says, yes to initialize the disks, then I also want to format the home partition.
hmm. No, that's not possible. It's not so hard to implement but I think we are a little late now for such new features. Maybe for SP1. -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nuernberg, Germany e-mail: uwe.gansert@suse.de, Tel: +49-(0)911-74053-0, Fax: +49-(0)911-74053-476, Web: http://www.suse.de
On Tuesday 30 May 2006 15:38, Uwe Gansert wrote:
Follow up question: Is it possable to do several changes for one answer ? i.e. If the user says, yes to initialize the disks, then I also want to format the home partition.
hmm. No, that's not possible. It's not so hard to implement but I think we are a little late now for such new features. Maybe for SP1.
While I think about it then, is it possable to use an ASK rule to include another profile fragment to be included like rules can ? Do you want a bugzilla on applying more than one result for an ask statement ? I guess in an ideal situation (for me) is to be able to control which sections of the 2nd stage yast screens are seen. For example, The user should be able to enter their name and password, but I want to automatically enable SSH, and automatically register them on the Novell Customer Centre. -- Simon Crute IS&T Bracknell Novell UK Ltd
On Wednesday 07 June 2006 12:49, Simon Crute wrote:
While I think about it then, is it possable to use an ASK rule to include another profile fragment to be included like rules can ?
no, I'm afraid that's not possible.
Do you want a bugzilla on applying more than one result for an ask statement ?
hmmm. can't hurt. Even though I have that on the autoyast mindmap anyway already. Please file an enhancement request. Thanx.
I guess in an ideal situation (for me) is to be able to control which sections of the 2nd stage yast screens are seen.
but that's far beyond what the ask-feature was invented for.
For example, The user should be able to enter their name and password,
that can be done and that's what it was invented for.
but I want to automatically enable SSH, and automatically register them on the Novell Customer Centre.
you can do that with the autoyast profile and scripts. -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nuernberg, Germany e-mail: uwe.gansert@suse.de, Tel: +49-(0)911-74053-0, Fax: +49-(0)911-74053-476, Web: http://www.suse.de
On Wednesday 07 June 2006 14:29, Uwe Gansert wrote:
On Wednesday 07 June 2006 12:49, Simon Crute wrote:
While I think about it then, is it possable to use an ASK rule to include another profile fragment to be included like rules can ?
no, I'm afraid that's not possible.
Do you want a bugzilla on applying more than one result for an ask statement ?
hmmm. can't hurt. Even though I have that on the autoyast mindmap anyway already. Please file an enhancement request. Thanx.
Will do.
I guess in an ideal situation (for me) is to be able to control which sections of the 2nd stage yast screens are seen.
but that's far beyond what the ask-feature was invented for.
I figured it was, however I think user is one of the hardest to do. If you ask theuser for their name and userID, the userID has to be set in various places. Looking at how autoyast has built the profile, the username you are replacing appears twice in the <groups> section, adding it into the video and dialout group. It appears in the <user><home> section, and the <user><username> section. So, if you can't change more than one line at once, how can you change all the entries ?
but I want to automatically enable SSH, and automatically register them on the Novell Customer Centre.
you can do that with the autoyast profile and scripts.
Yep. I'm doing that now. *but* the ideal situation (for me) is to use profile/script to change what I want, and let the user change what I don't want to fix, using the existing yast system. Just giving you ideas :-) -- Simon Crute IS&T Bracknell Novell UK Ltd
participants (2)
-
Simon Crute
-
Uwe Gansert