# Init-scripts in autoyast files are not getting executed.

**URL:** <https://forums.suse.com/t/init-scripts-in-autoyast-files-are-not-getting-executed/33682>\
**Category:** SLES Install-Boot\
**Created:** [March 18, 2019, 8:27am UTC](https://forums.suse.com/t/init-scripts-in-autoyast-files-are-not-getting-executed/33682 "2019-03-18T08:27:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![meghana\_birje](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@meghana\_birje](https://forums.suse.com/u/meghana_birje)\
**Post date:** [March 18, 2019, 8:27am UTC](https://forums.suse.com/t/init-scripts-in-autoyast-files-are-not-getting-executed/33682/1 "2019-03-18T08:27:10Z")

</div>

We are trying to install SuSE 15 silently by providing autoYast file. We have included some custom script in it and we want to be executed at the initiation time or at the first boot.  
We are fetching some script under post-scripts tag in configure section, and later trying to execute them in init-scripts section.  
Shell files are created and copied at the /var/adm/autoinstall/script location but are never executed later on.  
According to documentation init-script should be called at the first boot time and after all services are running. but surprisingly the scripts doesn’t execute anytime.

we even tried to create simple script of creating a directory. Although the script get copied at temp location but it doesn’t executes as per docs.  
Could you please suggest why the system behaving in such a manner. or what can we do something differently to overcome this situation.

PFA autoyast for reference.

Your help will be much appreciated.

[HTML]\<?xml version="1.0" encoding="UTF-8"?\>  
  
  
  
  
  
  
  
  
  
  
  
  
  
\<dhcp\_hostname config:type=“boolean”\>false\</dhcp\_hostname\>  
\<dhcp\_resolv config:type=“boolean”\>true\</dhcp\_resolv\>  
??HOST\_NAME??  
localdomain  
  
  
  
dhcp  
??NET\_DEVICE??  
onboot  
  
  
  
  
  
  
  
  
  
  
  
  
true  
  
  
root  
\<user\_password\>??ROOT\_PASSWORD??\</user\_password\>  
true  
  
  
  
  
  
  
  
Africa/Abidjan  
  
  
english-us  
  
en\_US  
  
false  
true  
\<interactive\_boot config:type=“boolean”\>false\</interactive\_boot\>  
true  
  
  
AUTODETECT  
  
  
  
  
true  
  
  
ext2  
/  
\<partition\_id config:type=“integer”\>131\</partition\_id\>  
rw,acl,user\_xattr  
15000mb  
  
  
swap  
swap  
\<partition\_id config:type=“integer”\>130\</partition\_id\>  
200mb  
  
  
free  
  
  
  
  
true  
false  
10  
  
  
true  
false  
10  
  
  
true  
false  
10  
  
  
  
  
SLES  
  
  
enhanced\_base  
  
\<install\_recommended config:type=“boolean”\>true\</install\_recommended\>  
  
iproute2  
wget  
wicked-service  
insserv-compat  
systemd  
systemd-sysvinit  
coreutils  
openssh  
vim  
  
  
  
  
[/HTML]

---

<div class="post-metadata">

**Author:** ![Automatic\_Reply](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@Automatic\_Reply](https://forums.suse.com/u/Automatic_Reply)\
**Post date:** [March 25, 2019, 6:31am UTC](https://forums.suse.com/t/init-scripts-in-autoyast-files-are-not-getting-executed/33682/2 "2019-03-25T06:31:15Z")

</div>

meghana,

It appears that in the past few days you have not received a response to your  
posting. That concerns us, and has triggered this automated reply.

These forums are peer-to-peer, best effort, volunteer run and that if your issue  
is urgent or not getting a response, you might try one of the following options:

- Visit [http://www.suse.com/support](http://www.suse.com/support) and search the knowledgebase and/or check all  
the other support options available.
- Open a service request: [https://www.suse.com/support](https://www.suse.com/support)
- You could also try posting your message again. Make sure it is posted in the  
correct newsgroup. ([http://forums.suse.com](http://forums.suse.com))

Be sure to read the forum FAQ about what to expect in the way of responses:  
[http://forums.suse.com/faq.php](http://forums.suse.com/faq.php)

If this is a reply to a duplicate posting or otherwise posted in error, please  
ignore and accept our apologies and rest assured we will issue a stern reprimand  
to our posting bot…

Good luck!

Your SUSE Forums Team  
[http://forums.suse.com](http://forums.suse.com)
