Mailinglist Archive: opensuse-autoinstall (28 mails)
| < Previous | Next > |
[opensuse-autoinstall] chroot scripts does not run
- From: Magnus Boman <captain.magnus@xxxxxxxxx>
- Date: Wed, 20 Aug 2008 08:16:20 +1000
- Message-id: <1219184180.4742.24.camel@xxxxxxxxxxxxxxx>
Hello,
I'm trying to use AutoYaST to install SLES10SP1. I need to make use of
chroot scripts, but found an issue with it;
This is a snippet from my AutoYaST script;
<scripts>
<chroot-scripts config:type="list">
<script>
<chrooted config:type="boolean">false</chrooted>
<location>file:///mounts/extra/chroot-1.sh</location>
</script>
<script>
<chrooted config:type="boolean">true</chrooted>
<location>file:///mounts/extra/chroot-2.sh</location>
</script>
</chroot-scripts>
</scripts>
In the example above, the chrooted=false script runs just fine, but the
chrooted=true does not. It looks like it is still trying to run it
from /mnt/var/... instead of /var/...
/mnt/var/... does not exist since we've done a chroot into / at this
stage.
This is a snippet from y2log for the chroot-2.sh script;
2008-08-19 06:13:31 <1> linux(3086) [Interpreter]
clients/autoinst_scripts2_finish.ycp:57 Calling YaST client
autoinst_scripts2_finish (arguments: ["Write"])
2008-08-19 06:13:31 <1> linux(3086) [YCP]
clients/autoinst_scripts2_finish.ycp:33 starting
autoinst_scripts2_finish
2008-08-19 06:13:31 <1> linux(3086) [YCP] AutoinstScripts.ycp:484
Writing chroot script
into /mnt/var/adm/autoinstall/scripts/chroot-scripts
2008-08-19 06:13:31 <1> linux(3086) [agent-system]
SystemAgent.cc(Execute):1098 mkdir /tmp/YaST2-03086-eyCR4s/tmp_mount
2008-08-19 06:13:31 <1> linux(3086) [YCP] autoinstall/io.ycp:119 Copy
profile:
cp /mounts/extra/config/etc/config-builder/chroot-2.sh
/mnt/var/adm/autoinstall/scripts/chroot-scripts
2008-08-19 06:14:12 <1> linux(3086) [YCP] AutoinstScripts.ycp:548 Script
Execution command: /bin/sh
-x /mnt/var/adm/autoinstall/scripts/chroot-scripts
2&> /mnt/var/adm/autoinstall/logs/chroot-scripts.log
2008-08-19 06:14:12 <1> linux(3086) [YCP]
clients/autoinst_scripts2_finish.ycp:57 autoinst_scripts2_finish
finished
2008-08-19 06:14:12 <1> linux(3086) [Interpreter]
clients/autoinst_scripts2_finish.ycp:57 Called YaST client returned: nil
Any ideas on what's happening here?
Thanks,
Magnus
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx
I'm trying to use AutoYaST to install SLES10SP1. I need to make use of
chroot scripts, but found an issue with it;
This is a snippet from my AutoYaST script;
<scripts>
<chroot-scripts config:type="list">
<script>
<chrooted config:type="boolean">false</chrooted>
<location>file:///mounts/extra/chroot-1.sh</location>
</script>
<script>
<chrooted config:type="boolean">true</chrooted>
<location>file:///mounts/extra/chroot-2.sh</location>
</script>
</chroot-scripts>
</scripts>
In the example above, the chrooted=false script runs just fine, but the
chrooted=true does not. It looks like it is still trying to run it
from /mnt/var/... instead of /var/...
/mnt/var/... does not exist since we've done a chroot into / at this
stage.
This is a snippet from y2log for the chroot-2.sh script;
2008-08-19 06:13:31 <1> linux(3086) [Interpreter]
clients/autoinst_scripts2_finish.ycp:57 Calling YaST client
autoinst_scripts2_finish (arguments: ["Write"])
2008-08-19 06:13:31 <1> linux(3086) [YCP]
clients/autoinst_scripts2_finish.ycp:33 starting
autoinst_scripts2_finish
2008-08-19 06:13:31 <1> linux(3086) [YCP] AutoinstScripts.ycp:484
Writing chroot script
into /mnt/var/adm/autoinstall/scripts/chroot-scripts
2008-08-19 06:13:31 <1> linux(3086) [agent-system]
SystemAgent.cc(Execute):1098 mkdir /tmp/YaST2-03086-eyCR4s/tmp_mount
2008-08-19 06:13:31 <1> linux(3086) [YCP] autoinstall/io.ycp:119 Copy
profile:
cp /mounts/extra/config/etc/config-builder/chroot-2.sh
/mnt/var/adm/autoinstall/scripts/chroot-scripts
2008-08-19 06:14:12 <1> linux(3086) [YCP] AutoinstScripts.ycp:548 Script
Execution command: /bin/sh
-x /mnt/var/adm/autoinstall/scripts/chroot-scripts
2&> /mnt/var/adm/autoinstall/logs/chroot-scripts.log
2008-08-19 06:14:12 <1> linux(3086) [YCP]
clients/autoinst_scripts2_finish.ycp:57 autoinst_scripts2_finish
finished
2008-08-19 06:14:12 <1> linux(3086) [Interpreter]
clients/autoinst_scripts2_finish.ycp:57 Called YaST client returned: nil
Any ideas on what's happening here?
Thanks,
Magnus
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx
| < Previous | Next > |