AW: Autoyast init-script files fail to download

<[email protected]> Wed, 13 Jul 2016 09:16:59 +0000
Newsgroups gmane.linux.suse.autoinstall
Message-ID <6556F821F165F64F92397E8AA25428816F4903EA@RZS-EXPM-P14026.rz-sued.bayern.de>
Hi, 

location worked form e in SLES12-GA. Bug or Feature was introduced in SLES12-SP1. Workaround: embed  the desired Script in xml (CDATA). 

Regards

Frank Hollmann

-----Ursprüngliche Nachricht-----
Von: Aleksandar Vesic [mailto:[email protected]] 
Gesendet: Dienstag, 12. Juli 2016 16:27
An: [email protected]
Betreff: [opensuse-autoinstall] Autoyast init-script files fail to download

Hello guys,

I tried to install SLES12SP1 but my init-script get ignored
and no file gets created at /var/adm/autoinstall/scripts. Same autoyast
profile worked  for SLES 11 SP4. My post-scripts works fine.

An autoyast control file for SLES 12 SP1 with the following init-scripts
section fails:

<init-scripts config:type="list">
      <script>
        <filename>init12.sh</filename>
	<interpreter>shell</interpreter>
       
<location>nfs://IP_ADDR/var/lib/autoinstall/repository/scripts

/init12.sh</location>
      </script>	 

Same with:

 <location><![CDATA[
nfs://IP_ADDR/var/lib/autoinstall/repository/scripts/init12.sh

]]></location>

After installation, this script has been executed only if I use 
following section:

<source><![CDATA[
#!/bin/sh
#The entire content of the init12.sh
]]>
      </source>
    </script>
  </init-scripts>
</scripts>

I looked into /usr/share/YaST2/clients/autoinst_scripts2_finish.rb 
and found this:

 # Creating init scripts for the autoyast-initscripts.service
        AutoinstScripts.Write("init-scripts", false)
        # systemd requires the init script to be activated in 1st stage

Can someone help me? Did I miss something?

Best Regards

Alex

----------------------

[email protected]

-- 
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]

-- 
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]