https://bugzilla.novell.com/show_bug.cgi?id=829265 https://bugzilla.novell.com/show_bug.cgi?id=829265#c0 Summary: autoyast chroot script with chrooted=true cannot be retrieved via nfs Classification: openSUSE Product: openSUSE Factory Version: 13.1 Milestone 2 Platform: All OS/Version: SLES 11 Status: NEW Severity: Major Priority: P5 - None Component: AutoYaST AssignedTo: fehr@suse.com ReportedBy: sebastian.herbszt@tfa.verwalt-berlin.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20100101 Firefox/17.0 The specified chroot script in the autoyast profile cannot be retrieved via nfs. Reproducible: Always Steps to Reproduce: Perform network installation via nfs and put the following in the autoyast profile: <scripts> <chroot-scripts config:type="list"> <script> <chrooted config:type="boolean">true</chrooted> <filename>chroot-script-20120313.sh</filename> <interpreter>shell</interpreter> <location><![CDATA[nfs://10.16.77.245/export/os/SLES11/autoyast/scripts/chroot-script-20120313.sh]]></location> </script> </chroot-scripts> </scripts> Actual Results: 2013-07-12 14:41:26 <1> U1160005(3478) [Interpreter] clients/autoinst_scripts2_finish.ycp:58 Calling YaST client autoinst_scripts2_finish 2013-07-12 14:41:26 <1> U1160005(3478) [YCP] clients/autoinst_scripts2_finish.ycp:33 starting autoinst_scripts2_finish 2013-07-12 14:41:26 <1> U1160005(3478) [YCP] AutoinstScripts.ycp:728 Writing chroot script into /mnt/var/adm/autoinstall/scripts/chroot-script-20120313.sh 2013-07-12 14:41:26 <1> U1160005(3478) [YCP] autoinstall/io.ycp:64 Scheme:nfs Host:10.16.77.245 Path:/export/os/SLES11/autoyast/scripts/chroot-script-20120313.sh Localfile:/mnt/var/adm/autoinstall/scripts/chroot-script-20120313.sh 2013-07-12 14:41:26 <1> U1160005(3478) [agent-system] SystemAgent.cc(Execute):1129 mkdir /tmp/YaST2-03478-3mbweF/tmp_mount 2013-07-12 14:41:26 <2> U1160005(3478) [YCP] autoinstall/io.ycp:185 Mount failed 2013-07-12 14:41:26 <3> U1160005(3478) [YCP] AutoinstScripts.ycp:733 script nfs://10.16.77.245/export/os/SLES11/autoyast/scripts/chroot-script-20120313.sh could not be retrieved 2013-07-12 14:41:26 <1> U1160005(3478) [YCP] AutoinstScripts.ycp:778 Script Execution command: /bin/sh -x /var/adm/autoinstall/scripts/chroot-script-20120313.sh 2&> /var/adm/autoinstall/logs/chroot-script-20120313.sh.log 2013-07-12 14:41:26 <1> U1160005(3478) [YCP] clients/autoinst_scripts2_finish.ycp:58 autoinst_scripts2_finish finished 2013-07-12 14:41:26 <1> U1160005(3478) [Interpreter] clients/autoinst_scripts2_finish.ycp:58 Called YaST client returned. Expected Results: 2013-07-12 15:22:54 <1> U1160005(3572) [Interpreter] clients/autoinst_scripts2_finish.ycp:58 Calling YaST client autoinst_scripts2_finish 2013-07-12 15:22:54 <1> U1160005(3572) [YCP] clients/autoinst_scripts2_finish.ycp:33 starting autoinst_scripts2_finish 2013-07-12 15:22:54 <1> U1160005(3572) [YCP] AutoinstScripts.ycp:728 Writing chroot script into /mnt/var/adm/autoinstall/scripts/chroot-script-20120313.sh 2013-07-12 15:22:54 <1> U1160005(3572) [YCP] autoinstall/io.ycp:64 Scheme:nfs Host:10.16.77.245 Path:/export/os/SLES11/autoyast/scripts/chroot-script-20120313.sh Localfile:/mnt/var/adm/autoinstall/scripts/chroot-script-20120313.sh 2013-07-12 15:22:54 <1> U1160005(3572) [agent-system] SystemAgent.cc(Execute):1129 mkdir /tmp/YaST2-03572-D0c7IP/tmp_mount 2013-07-12 15:22:54 <1> U1160005(3572) [YCP] autoinstall/io.ycp:196 Copy Command: /bin/cp /tmp/YaST2-03572-D0c7IP/tmp_mount/chroot-script-20120313.sh /mnt/var/adm/autoinstall/scripts/chroot-script-20120313.sh 2013-07-12 15:22:54 <1> U1160005(3572) [YCP] AutoinstScripts.ycp:778 Script Execution command: /bin/sh -x /var/adm/autoinstall/scripts/chroot-script-20120313.sh 2&> /var/adm/autoinstall/logs/chroot-script-20120313.sh.log 2013-07-12 15:22:54 <1> U1160005(3572) [YCP] clients/autoinst_scripts2_finish.ycp:58 autoinst_scripts2_finish finished The problem can be reproduced on SLES 11 up to and including SP3. The following incomplete change fixes this issue: --- /usr/share/YaST2/include/autoinstall/io.ycp 2013-04-30 18:34:01.000000000 +0200 +++ /tmp/linux/suse/x86_64-sles11/y2update/include/autoinstall/io.ycp 2013-07-12 10:14:29.000000000 +0200 @@ -179,7 +179,10 @@ y2milestone("Starting portmap: %1", SCR::Execute (.target.bash, "/sbin/portmap") ); } - if (!(boolean)SCR::Execute(.target.mount, [ Host + ":" + dirname(Path), mount_point ], "-o nolock" ) && + string mountcmd = "/bin/mount " + Host + ":" + dirname(Path) + " " + mount_point + " -o nolock"; + y2milestone("mountcmd: %1", mountcmd); + + if ((WFM::Execute (.local.bash, mountcmd ) !=0 ) && !(boolean)SCR::Execute(.target.mount, [ Host + ":" + dirname(Path), mount_point ], "-t nfs4" ) ) { y2warning("Mount failed"); -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.