"cont" questions are not being asked after first reboot
Hello, I tried defining two questions to be asked and respective scripts to be run after the base install is done. Whilst the YaST wizard starts after the first reboot, updates packages, and runs the regular post scripts, the two "cont" questions are not being prompted for. Neither do I see any reference to them in the logs, it looks like it is ignoring them. I read the documentation several times, thinking I missed something in the section about <ask>, but could not find anything relevant. Would someone be so kind and check my file? https://hugz.io/ew685b/autoinstV9.xml (the lines in question are 272-315) Thanks a lot.
El lunes, 5 de abril de 2021 0:55:12 (WEST) Georg Pfuetzenreuter escribió:
Hello,
Hello Georg,
I tried defining two questions to be asked and respective scripts to be run after the base install is done. Whilst the YaST wizard starts after the first reboot, updates packages, and runs the regular post scripts, the two "cont" questions are not being prompted for. Neither do I see any reference to them in the logs, it looks like it is ignoring them. I read the documentation several times, thinking I missed something in the section about <ask>, but could not find anything relevant. Would someone be so kind and check my file?
I think that the problem is in the script of the first question. It says: 1: #!/bin/bash 2: HOSTNAME=$VAL 3: sed -e "s/%%HOSTNAME%%/$HOSTNAME/g" \ 4: -e "/^\s*<ask-list/,/ask-list>$/d" \ 5: /tmp/profile/autoinst.xml > /tmp/profile/modified.xml So according to line 4, you are basically removing the whole ask-list. I guess that you are doing that to avoid AutoYaST asking the same question again, but the result is that all the questions are deleted. Instead of using a script, I would suggest to specify the path of all those values that you want to replace. So removing the <script> section and adding the second path to the pathlist should do the trick: <pathlist config:type="list"> <path>networking,dns,hostname</path> <path>host,hosts,7,names,0</path> </pathlist>
https://hugz.io/ew685b/autoinstV9.xml (the lines in question are 272-315)
Thanks a lot.
I hope it helps! Let me know if it does not work for you. Regards, Imo -- Imobach González Sosa YaST Team at SUSE LLC https://imobachgs.github.io/
participants (2)
-
Georg Pfuetzenreuter
-
Imobach Gonzalez Sosa