Hello, I tried some more possibilities by playing around with the location of scripts. But no use :-( <scripts> <chroot-scripts config:type="list"> <script> <chrooted config:type="boolean">true</chrooted> <interpreter>shell</interpreter> <filename>bp_chrooted.sh</filename> <location>file://bp_chrooted.sh</location> </script> </chroot-scripts> <post-scripts config:type="list"> <script> <filename>bp_post.sh</filename> <interpreter>shell</interpreter> <location>file:///bp_post.sh</location> </script> </post-scripts> <init-scripts config:type="list"> <script> <filename>bp_init.sh</filename> <interpreter>shell</interpreter> <location>file://autoyast/bp_init.sh</location> </script> </init-scripts> </scripts> Log: 2011-04-29 16:17:39 <1> 10.99.2.1(3365) [YCP] clients/autoinst_scripts2_finish.ycp:33 starting autoinst_scripts2_finish 2011-04-29 16:17:39 <1> 10.99.2.1(3365) [YCP] AutoinstScripts.ycp:484 Writing chroot script into /mnt/var/adm/autoinstall/scripts/bp_chrooted.sh 2011-04-29 16:17:39 <1> 10.99.2.1(3365) [agent-system] SystemAgent.cc(Execute):1098 mkdir /tmp/YaST2-03365-9RenPx/tmp_mount 2011-04-29 16:17:39 <1> 10.99.2.1(3365) [YCP] autoinstall/io.ycp:112 Copy profile: cp /var/adm/mount/ /mnt/var/adm/autoinstall/scripts/bp_chrooted.sh 2011-04-29 16:17:39 <1> 10.99.2.1(3365) [YCP] autoinstall/io.ycp:131 Trying to find file on installation media: cd 2011-04-29 16:17:43 <1> 10.99.2.1(3365) [YCP] autoinstall/io.ycp:145 Copy profile: cp /tmp/YaST2-03365-9RenPx/tmp_mount/ /mnt/var/adm/autoinstall/scripts/bp_chrooted.sh 2011-04-29 16:17:43 <3> 10.99.2.1(3365) [YCP] AutoinstScripts.ycp:489 script file://bp_chrooted.sh could not be retrieved 2011-04-29 16:17:43 <1> 10.99.2.1(3365) [YCP] AutoinstScripts.ycp:548 Script Execution command: /bin/sh -x /mnt/var/adm/autoinstall/scripts/bp_chrooted.sh 2&> /mnt/var/adm/autoinstall/logs/bp_chrooted.sh.log 2011-04-29 16:17:43 <1> 10.99.2.1(3365) [YCP] clients/autoinst_scripts2_finish.ycp:57 autoinst_scripts2_finish finished 2011-04-29 16:23:53 <1> setup(4099) [rpm] RpmDb.cc(~RpmDb):300 ~RpmDb() end 2011-04-29 16:23:53 <1> setup(4099) [YCP] AutoinstScripts.ycp:502 Writing script into /var/adm/autoinstall/scripts/bp_post.sh 2011-04-29 16:23:53 <1> setup(4099) [agent-system] SystemAgent.cc(Execute):1098 mkdir /tmp/YaST2-04099-jGfbWg/tmp_mount 2011-04-29 16:23:53 <1> setup(4099) [YCP] autoinstall/io.ycp:119 Copy profile: cp /bp_post.sh /var/adm/autoinstall/scripts/bp_post.sh 2011-04-29 16:23:53 <3> setup(4099) [bash] ShellCommand.cc(shellcommand):78 cp: Aufruf von stat für „/bp_post.sh“ nicht möglich: Datei oder Verzeichnis nicht gefunden 2011-04-29 16:23:53 <1> setup(4099) [YCP] autoinstall/io.ycp:131 Trying to find file on installation media: cd 2011-04-29 16:23:55 <1> setup(4099) [YCP] autoinstall/io.ycp:145 Copy profile: cp /tmp/YaST2-04099-jGfbWg/tmp_mount//bp_post.sh /var/adm/autoinstall/scripts/bp_post.sh 2011-04-29 16:23:55 <3> setup(4099) [bash] ShellCommand.cc(shellcommand):78 cp: Aufruf von stat für „/tmp/YaST2-04099-jGfbWg/tmp_mount//bp_post.sh“ nicht möglich: Datei oder Verzeichnis nicht gefunden 2011-04-29 16:23:55 <3> setup(4099) [YCP] AutoinstScripts.ycp:507 script file:///bp_post.sh could not be retrieved 2011-04-29 16:23:55 <1> setup(4099) [YCP] AutoinstScripts.ycp:548 Script Execution command: /bin/sh -x /var/adm/autoinstall/scripts/bp_post.sh 2&> /var/adm/autoinstall/logs/bp_post.sh.log 2011-04-29 16:23:55 <1> setup(4099) [YCP] AutoinstScripts.ycp:465 Writing init script into /var/adm/autoinstall/init.d/bp_init.sh 2011-04-29 16:23:55 <1> setup(4099) [agent-system] SystemAgent.cc(Execute):1098 mkdir /tmp/YaST2-04099-jGfbWg/tmp_mount 2011-04-29 16:23:55 <1> setup(4099) [YCP] autoinstall/io.ycp:119 Copy profile: cp /bp_init.sh /var/adm/autoinstall/init.d/bp_init.sh 2011-04-29 16:23:55 <3> setup(4099) [bash] ShellCommand.cc(shellcommand):78 cp: Aufruf von stat für „/bp_init.sh“ nicht möglich: Datei oder Verzeichnis nicht gefunden 2011-04-29 16:23:55 <1> setup(4099) [YCP] autoinstall/io.ycp:131 Trying to find file on installation media: cd 2011-04-29 16:23:56 <1> setup(4099) [YCP] autoinstall/io.ycp:145 Copy profile: cp /tmp/YaST2-04099-jGfbWg/tmp_mount//bp_init.sh /var/adm/autoinstall/init.d/bp_init.sh 2011-04-29 16:23:56 <3> setup(4099) [bash] ShellCommand.cc(shellcommand):78 cp: Aufruf von stat für „/tmp/YaST2-04099-jGfbWg/tmp_mount//bp_init.sh“ nicht möglich: Datei oder Verzeichnis nicht gefunden 2011-04-29 16:23:56 <3> setup(4099) [YCP] AutoinstScripts.ycp:471 script file://autoyast/bp_init.sh could not be retrieved With best regards, Sravan -----Original Message----- From: Sivaraju, Sravan (ext) Sent: Freitag, 29. April 2011 13:09 To: opensuse-autoinstall@opensuse.org Subject: [opensuse-autoinstall] RE: How to fetch scripts from outside profile file (was: AutoYast script location) Hello Everyone, I am trying to fetch the chroot, post and init scripts from the cd instead of directly including them in the profile file. We are using SLES-10-SP1 I have used below structure in the profile file: <scripts> <chroot-scripts config:type="list"> <script> <chrooted config:type="boolean">true</chrooted> <interpreter>shell</interpreter> <filename>bp_chrooted.sh</filename> <location>file:///autoyast/bp_chrooted.sh</location> </script> </chroot-scripts> <post-scripts config:type="list"> <script> <filename>bp_post.sh</filename> <interpreter>shell</interpreter> <location>file:///autoyast/bp_post.sh</location> </script> </post-scripts> <init-scripts config:type="list"> <script> <filename>bp_init.sh</filename> <interpreter>shell</interpreter> <location>file:///autoyast/bp_init.sh</location> </script> </init-scripts> </scripts> But, i am getting below error in the y2log-1, y2log and the scripts are not being executed in their respective stages. 2011-04-29 13:03:33 <1> 10.99.2.1(3371) [YCP] AutoinstScripts.ycp:484 Writing chroot script into /mnt/var/adm/autoinstall/scripts/bp_chrooted.sh 2011-04-29 13:03:33 <1> 10.99.2.1(3371) [agent-system] SystemAgent.cc(Execute):1098 mkdir /tmp/YaST2-03371-PBsSOo/tmp_mount 2011-04-29 13:03:33 <1> 10.99.2.1(3371) [YCP] autoinstall/io.ycp:119 Copy profile: cp /autoyast/bp_chrooted.sh /mnt/var/adm/autoinstall/scripts/bp_chrooted.sh 2011-04-29 13:03:33 <1> 10.99.2.1(3371) [YCP] autoinstall/io.ycp:131 Trying to find file on installation media: cd 2011-04-29 13:03:36 <1> 10.99.2.1(3371) [YCP] autoinstall/io.ycp:145 Copy profile: cp /tmp/YaST2-03371-PBsSOo/tmp_mount//autoyast/bp_chrooted.sh /mnt/var/adm/autoinstall/scripts/bp_chrooted.sh 2011-04-29 13:03:36 <3> 10.99.2.1(3371) [YCP] AutoinstScripts.ycp:489 script file:///autoyast/bp_chrooted.sh file:///autoyast/bp_chrooted.sh could not be retrieved 2011-04-29 13:11:17 <1> setup(4099) [YCP] AutoinstScripts.ycp:502 Writing script into /var/adm/autoinstall/scripts/bp_post.sh 2011-04-29 13:11:17 <1> setup(4099) [agent-system] SystemAgent.cc(Execute):1098 mkdir /tmp/YaST2-04099-Sr6obY/tmp_mount 2011-04-29 13:11:17 <1> setup(4099) [YCP] autoinstall/io.ycp:119 Copy profile: cp /autoyast/bp_post.sh /var/adm/autoinstall/scripts/bp_post.sh 2011-04-29 13:11:17 <3> setup(4099) [bash] ShellCommand.cc(shellcommand):78 cp: Aufruf von stat für „/autoyast/bp_post.sh“ nicht möglich: Datei oder Verzeichnis nicht gefunden 2011-04-29 13:11:17 <1> setup(4099) [YCP] autoinstall/io.ycp:131 Trying to find file on installation media: cd 2011-04-29 13:11:19 <1> setup(4099) [YCP] autoinstall/io.ycp:145 Copy profile: cp /tmp/YaST2-04099-Sr6obY/tmp_mount//autoyast/bp_post.sh /var/adm/autoinstall/scripts/bp_post.sh 2011-04-29 13:11:19 <3> setup(4099) [bash] ShellCommand.cc(shellcommand):78 cp: Aufruf von stat für „/tmp/YaST2-04099-Sr6obY/tmp_mount//autoyast/bp_post.sh“ nicht möglich: Datei oder Verzeichnis nicht gefunden 2011-04-29 13:11:19 <3> setup(4099) [YCP] AutoinstScripts.ycp:507 script file:///autoyast/bp_post.sh file:///autoyast/bp_post.sh could not be retrieved 2011-04-29 13:11:19 <1> setup(4099) [YCP] AutoinstScripts.ycp:548 Script Execution command: /bin/sh -x /var/adm/autoinstall/scripts/bp_post.sh 2&> /var/adm/autoinstall/logs/bp_post.sh.log 2011-04-29 13:11:19 <1> setup(4099) [YCP] AutoinstScripts.ycp:465 Writing init script into /var/adm/autoinstall/init.d/bp_init.sh 2011-04-29 13:11:19 <1> setup(4099) [agent-system] SystemAgent.cc(Execute):1098 mkdir /tmp/YaST2-04099-Sr6obY/tmp_mount 2011-04-29 13:11:19 <1> setup(4099) [YCP] autoinstall/io.ycp:119 Copy profile: cp /autoyast/bp_init.sh /var/adm/autoinstall/init.d/bp_init.sh 2011-04-29 13:11:19 <3> setup(4099) [bash] ShellCommand.cc(shellcommand):78 cp: Aufruf von stat für „/autoyast/bp_init.sh“ nicht möglich: Datei oder Verzeichnis nicht gefunden 2011-04-29 13:11:19 <1> setup(4099) [YCP] autoinstall/io.ycp:131 Trying to find file on installation media: cd 2011-04-29 13:11:20 <1> setup(4099) [YCP] autoinstall/io.ycp:145 Copy profile: cp /tmp/YaST2-04099-Sr6obY/tmp_mount//autoyast/bp_init.sh /var/adm/autoinstall/init.d/bp_init.sh 2011-04-29 13:11:20 <3> setup(4099) [bash] ShellCommand.cc(shellcommand):78 cp: Aufruf von stat für „/tmp/YaST2-04099-Sr6obY/tmp_mount//autoyast/bp_init.sh“ nicht möglich: Datei oder Verzeichnis nicht gefunden 2011-04-29 13:11:20 <3> setup(4099) [YCP] AutoinstScripts.ycp:471 script file:///autoyast/bp_init.sh file:///autoyast/bp_init.sh could not be retrieved With best regards, Sravan N r y隊Z)z{. 殶 ֥ 맲 r z ^ ˬz uح ڕ & ݱ隊Z)z{. 殶 ֥ ^ )z{. +