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