Bug 605132

Summary: Clone this system for AutoYaST doesn't create autoinst.xml
Product: [openSUSE] openSUSE 11.3 Reporter: Jaroslaw Zachwieja <grok>
Component: InstallationAssignee: Uwe Gansert <ug>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Major    
Priority: P5 - None CC: bitdealer, ug
Version: Milestone 6   
Target Milestone: Milestone 7   
Hardware: x86-64   
OS: openSUSE 11.3   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: /var/log/YaST2 contents from the install

Description Jaroslaw Zachwieja 2010-05-12 11:32:05 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.
Comment 1 Jaroslaw Zachwieja 2010-05-12 11:39:03 UTC
Uwe,

CCing you as you'll probably the best person to judge if it's a user error.

Best regards,
-- 
grok
Comment 3 Uwe Gansert 2010-05-18 09:05:33 UTC
*** Bug 547486 has been marked as a duplicate of this bug. ***
Comment 4 Uwe Gansert 2010-05-18 09:34:55 UTC
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.
Comment 5 Jaroslaw Zachwieja 2010-05-18 10:21:20 UTC
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
Comment 6 Uwe Gansert 2010-05-18 10:56:30 UTC
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" , []);
 	}
     }
Comment 7 Jaroslaw Zachwieja 2010-05-18 11:41:07 UTC
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
Comment 8 Uwe Gansert 2010-05-18 11:45:28 UTC
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.
Comment 9 Jaroslaw Zachwieja 2010-05-18 12:41:25 UTC
Good news.

That patch worked, the autoinst.xml file got created as expected.

Thank you!
Comment 10 Uwe Gansert 2010-05-18 13:41:38 UTC
okay, thanks for testing. I have submitted a new yast2-installation package with the fix. So the next milestone should have it.