Hi,
I'm having a bit of trouble with remotely installing SLES10 (X86_64)
over the network with post scripts defined.
The profile I have works fine.... until I add this section for scripts:
<scripts>
<post-scripts config:type="list">
<script>
true
<filename>test.sh</filename>
<interpreter>shell</interpreter> <source><![CDATA[
#!/bin/sh
################################
# Setup script for new servers #
##################################
# Add host entry for sudo server #
##################################
echo "10.245.13.12 dserv-mgt sudo-host" >> /etc/hosts
####################################################
##############################################
# Start up NFS and untar LINUX_NEWSERVER.tar #
##############################################
mkdir -p /media/nfs
/etc/init.d/portmap start
mount 10.244.35.51:/depot/SUSE/i386 /media/nfs
cd /
tar -xvf /media/nfs/conf/S10LINUX_NEWSERVER.tar
]]>
</source>
</script>
</post-scripts>
</scripts>
I even tried splitting it out, using location instead:
<scripts>
<post-scripts config:type="list">
<script>
true
<location>http://10.244.35.51:/conf/scripts/SLES10.sh</location>
</script>
</post-scripts>
</scripts>
Doesn't matter what I try, I get the same results (thought it might be a
network problem to start with). I even tried the above with the location
line deleted and had the same error. I've even stripped the script down
to a basic echo out to a file - same error. This, however, works fine
under SLES9.
The problem? After the first reboot, it detects the network card, goes
on to perform 'installation', I briefly see a message about running
scripts, then the hald stops with the error:
/usr/lib/YaST2/startup/YaST2.call: line 306: 4074 Aborted
The system has not been set up correctly (in-fact I can't even log in -
I ended up using a screen capture to get the error message above). As
soon as I remove everything from <scripts> to </scripts> all works fine
again (the system installs correctly).
Not sure what I am missing here.....
Colin
Ericsson Services Limited
Registered Office: Unit 4, Midleton Gate, Guildford Business Park, Guildford, Surrey, GU2 8SG
Registered Number in England and Wales: 3709800
This communication is confidential and intended solely for the addressee(s). Any unauthorised review, use, disclosure or distribution is prohibited. If you believe this message has been sent to you in error, please notify the sender by replying to this transmission and delete the message without disclosing it. Thank you.
Ericsson Services Limited does not enter into contracts or contractual obligations via electronic mail, unless otherwise agreed in writing between the parties concerned.
E-mail including attachments is susceptible to data corruption, interruption, unauthorised amendment, tampering and viruses, and we only send and receive e-mails on the basis that we are not liable for any such corruption, interception, amendment, tampering or viruses or any consequences thereof.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org