Bugzilla – Bug 605132
Clone this system for AutoYaST doesn't create autoinst.xml
Last modified: 2021-03-09 12:08:39 UTC
Created attachment 361674 [details] /var/log/YaST2 contents from the install User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.1.9) Gecko/20100317 SUSE/3.5.9-0.1 Firefox/3.5.9 When performing network install of Milestone6 and requesting 'Clone this system for autoyast', the autoinst.xml file is not created. Reproducible: Always Steps to Reproduce: 1. Network installation from http://download.opensuse.org/factory/repo/oss/, textmode=1. 2. Select KDE4 desktop, add "autoyast2" package to selection, 3. After installation select 'Clone this system for AutoYast'. Actual Results: Installer immediately finishes without visible error messages. Expected Results: /root/autoinst.xml file should be created. Flagging as major as it's currently impossible to create automated install for testing purposes.
Uwe, CCing you as you'll probably the best person to judge if it's a user error. Best regards, -- grok
*** Bug 547486 has been marked as a duplicate of this bug. ***
fixed in yast2-installation 2.19.7 (not submitted to build yet) so I'll keep this open until me/someone submitted the new package.
Hi Uwe, Thanks for sorting it, much appreciated. Any chance it could make it into Milestone 7? If not, any suggestions on how to patch it in? Regards, -- grok
the patch is very simple. I'd be glad if you could test it. I'll try to take care to get that into the next milestone. Index: src/clients/inst_congratulate.ycp =================================================================== --- src/clients/inst_congratulate.ycp (Revision 62003) +++ src/clients/inst_congratulate.ycp (Revision 62004) @@ -194,7 +194,7 @@ // Cloning reinitializes sources when it needs them Pkg::SourceSaveAll (); - Call::Function("clone_system" , ["doClone"]); + Call::Function("clone_system" , []); } }
Thanks for trying to get it in for 7, that would help with the final rounds of testing. I tried to edit the file (/us/share/YaST2/clients/inst_congratulate.ycp) on a booted install (before it starts), unfortunately it's read-only (mount -o remount,rw / didn't help either). Other than rebuilding the initrd (which I don't have infrastructure for) I don't see a way how I could test it. Unless you have a trick to patch it in during install, I'm afraid I'll have to wait for it to be released to test. Regards, -- grok
you have to patch that file when the machine reboots for the first time (after packages are installed, bootloader is configured). Yast will start in that so called 2nd stage again. Before it starts, you have to apply the patch. You tried to patch yast in the 1st stage (even before partitioning or so happened). That's too early and would not help.
Good news. That patch worked, the autoinst.xml file got created as expected. Thank you!
okay, thanks for testing. I have submitted a new yast2-installation package with the fix. So the next milestone should have it.