Post script not created/executed.
Greetings. Newbie with AutoYaST here trying to install SuSE 9.0. I have a config.xml file that works fine, except that the post script is not created (not found in var/adm/autoinstall/scripts). I cannot understand why it is not created and executed. The /var/log/y2log does show that the script's entry has been parsed. But I could not find any error messages regarding this. Following, the <scripts> section. <scripts> <post-scripts config:type="list" > <script> <filename>post.sh</filename> <interpreter>shell</interpreter> <source><![CDATA[echo "POST TEST passed."]]></source> </script> </post-scripts> </scripts> Pretty basic, huh? Can anybody point me to log files that would show me error messages related to my problem or provide me some clues? Best regards, Hans Deragon -- Consultant en informatique/Software Consultant Deragon Informatique inc. Open source: http://www.deragon.biz http://autopoweroff.sourceforge.net mailto://hans@deragon.biz (Automatically poweroff home servers)
Hi, Where did you put the scripts resource? Is it under configure? Attach eithe rthe y2log files or the complete control file so we can answer your question. Anas Hans Deragon wrote:
Greetings.
Newbie with AutoYaST here trying to install SuSE 9.0. I have a config.xml file that works fine, except that the post script is not created (not found in var/adm/autoinstall/scripts). I cannot understand why it is not created and executed. The /var/log/y2log does show that the script's entry has been parsed. But I could not find any error messages regarding this.
Following, the <scripts> section.
<scripts> <post-scripts config:type="list" > <script> <filename>post.sh</filename> <interpreter>shell</interpreter> <source><![CDATA[echo "POST TEST passed."]]></source> </script> </post-scripts> </scripts>
Pretty basic, huh?
Can anybody point me to log files that would show me error messages related to my problem or provide me some clues?
Best regards, Hans Deragon -- Consultant en informatique/Software Consultant Deragon Informatique inc. Open source: http://www.deragon.biz http://autopoweroff.sourceforge.net mailto://hans@deragon.biz (Automatically poweroff home servers)
Anas Nashif wrote:
Hi,
Where did you put the scripts resource? Is it under configure? Attach eithe rthe y2log files or the complete control file so we can answer your question.
Anas
That's it! It wasn't under <configure>. The documentation does not suggest that. :( http://www.suse.de/~nashif/autoinstall/9.0/html/createprofile.scripts.html#A... Thanks to you and Leendert Meyer for the tip. Best regards, Hans Deragon
Hans Deragon wrote:
Greetings.
Newbie with AutoYaST here trying to install SuSE 9.0. I have a config.xml file that works fine, except that the post script is not created (not found in var/adm/autoinstall/scripts). I cannot understand why it is not created and executed. The /var/log/y2log does show that the script's entry has been parsed. But I could not find any error messages regarding this.
Following, the <scripts> section.
<scripts> <post-scripts config:type="list" > <script> <filename>post.sh</filename> <interpreter>shell</interpreter> <source><![CDATA[echo "POST TEST passed."]]></source> </script> </post-scripts> </scripts>
Pretty basic, huh?
Can anybody point me to log files that would show me error messages related to my problem or provide me some clues?
Best regards, Hans Deragon -- Consultant en informatique/Software Consultant Deragon Informatique inc. Open source: http://www.deragon.biz http://autopoweroff.sourceforge.net mailto://hans@deragon.biz (Automatically poweroff home servers)
On Friday 14 May 2004 21:14, Hans Deragon wrote:
Greetings.
Newbie with AutoYaST here trying to install SuSE 9.0. I have a config.xml file that works fine, except that the post script is not created (not found in var/adm/autoinstall/scripts). I cannot understand why it is not created and executed. The /var/log/y2log does show that the script's entry has been parsed. But I could not find any error messages regarding this.
Following, the <scripts> section.
<scripts> <post-scripts config:type="list" > <script> <filename>post.sh</filename> <interpreter>shell</interpreter> <source><![CDATA[echo "POST TEST passed."]]></source> </script> </post-scripts> </scripts>
Pretty basic, huh?
Can anybody point me to log files that would show me error messages related to my problem or provide me some clues?<?xml version="1.0"?>
Here's a simple profile I created with YaST in 9.0. There are a few discrepancies, they might be significant, especially newlines. ----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<---- <!DOCTYPE profile SYSTEM "/usr/share/autoinstall/dtd/profile.dtd"> <profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns"> <configure> <scripts> <post-scripts config:type="list"> <script> <filename>test1</filename> <interpreter>shell</interpreter> <source> <![CDATA[echo "Test1 Post Script" ]]> </source> </script> </post-scripts> </scripts> </configure> </profile> ---->8---->8---->8---->8---->8---->8---->8---->8---->8---->8---- Here's another (cut down from a working) example (note the different xml header!): ----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<---- <?xml version="1.0"?> <!DOCTYPE profile SYSTEM "/usr/share/autoinstall/dtd/profile.dtd"> <profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns" xmlns:xinclude="http://www.w3.org/2001/XInclude"> <configure> <scripts> <post-scripts config:type="list"> <xinclude:include href="http://10.0.0.2/pub/suse/profiles/inc.10.0.0/mk-root-mc-ini.sh.xml" /> </post-scripts> </scripts> </configure> </profile> ---->8---->8---->8---->8---->8---->8---->8---->8---->8---->8---- Here's the include file: ----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<---- <script> <filename>mk-root-mc-ini.sh</filename> <interpreter>shell</interpreter> <source> <![CDATA[ mkdir -p /root/.mc && cat > /root/.mc/ini <<EOF [Midnight-Commander] navigate_with_arrows=1 [New Left Panel] list_mode=user user_format=half type,name,|,size,|,mtime,|,perm,|,owner,|,group [New Right Panel] list_mode=user user_format=half type,name,|,size,|,mtime,|,perm,|,owner,|,group EOF cp -a /root/.mc /etc/skel/ ]]> </source> </script> ---->8---->8---->8---->8---->8---->8---->8---->8---->8---->8---- I'm guessing it's all in the (missing) new lines. Cheers, Leen
participants (3)
-
Anas Nashif
-
Hans Deragon
-
Leendert Meyer