<post-scripts> not executed when provided in autoyast.yaml
Below is the autoyast file use for installing SuSE Linux using the virt-install command.
<?xml version="1.0"?>
<!DOCTYPE profile>
<profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns">
<deploy_image>
<image_installation config:type="boolean">false</image_installation>
</deploy_image>
<language>
<language>en_US</language>
<languages>en_GB,de_DE</languages>
</language>
<keyboard>
<keymap>english-us</keymap>
</keyboard>
<timezone>
<hwclock>UTC</hwclock>
<timezone>Europe/Stockholm</timezone>
</timezone>
<general>
<mode>
<confirm config:type="boolean">false</confirm>
<final_halt config:type="boolean">false</final_halt>
<final_reboot config:type="boolean">false</final_reboot>
<halt config:type="boolean">true</halt>
<second_stage config:type="boolean">false</second_stage>
</mode>
<signature-handling>
<accept_file_without_checksum config:type="boolean">true</accept_file_without_checksum>
<accept_non_trusted_gpg_key config:type="boolean">true</accept_non_trusted_gpg_key>
<accept_unknown_gpg_key config:type="boolean">true</accept_unknown_gpg_key>
<accept_unsigned_file config:type="boolean">true</accept_unsigned_file>
<accept_verification_failed config:type="boolean">false</accept_verification_failed>
<import_gpg_key config:type="boolean">false</import_gpg_key>
</signature-handling>
<storage/>
</general>
<software>
<products config:type="list">
<product>SLES</product>
</products>
</software>
<services-manager>
<default_target>multi-user</default_target>
<services>
<enable config:type="list">
<service>sshd</service>
</enable>
</services>
</services-manager>
<kdump>
<add_crash_kernel config:type="boolean">true</add_crash_kernel>
<crash_kernel config:type="list">
<listentry>128M,low</listentry>
<listentry>768M,high</listentry>
</crash_kernel>
</kdump>
<networking>
<interfaces config:type="list">
<interface>
<bootproto>static</bootproto>
<device>eth0</device>
<firewall>no</firewall>
<ipaddr>192.168.124.77</ipaddr>
<netmask>255.255.255.0</netmask>
<network>192.168.124.0</network>
<prefixlen>24</prefixlen>
<startmode>onboot</startmode>
<usercontrol>no</usercontrol>
</interface>
</interfaces>
<ipv6 config:type="boolean">true</ipv6>
<keep_install_network config:type="boolean">true</keep_install_network>
<managed config:type="boolean">false</managed>
<routing>
<ipv4_forward config:type="boolean">false</ipv4_forward>
<ipv6_forward config:type="boolean">false</ipv6_forward>
</routing>
</networking>
<scripts>
<post-scripts config:type="list">
<script>
<filename>post.sh</filename>
<interpreter>shell</interpreter>
<feedback config:type="boolean">true</feedback>
<source><![CDATA[
#!/bin/sh
echo "Running Post-install script"
touch /root/a /root/b /root/c
touch /mnt/a
]]>
</source>
</script>
</post-scripts>
</scripts>
<groups config:type="list">
<group>
<groupname>sudo</groupname>
<gid>1000</gid>
<userlist>omega</userlist>
</group>
<group>
<groupname>omega</groupname>
<gid>1001</gid>
<userlist>omega</userlist>
</group>
</groups>
<users config:type="list">
<user>
<username>root</username>
<gid>1001</gid>
<user_password>r00tme</user_password>
<encrypted config:type="boolean">false</encrypted>
<home>/root</home>
<authorized_keys config:type="list">
<authorized_key>ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCakAYsC4ESwEZS2Ke2kpeitXRjOXyZOFXR81goN2i49eBeKsfsMwA2ae3wO9DSflUEd9Ll x5v0ZH3RZrOh4HEcAhYfiLbKu//hfo+6lONPFRIIB6SNNyK2v4dKmYyTqBsedCOqTvDc+xguPZSu/qRaggWEv2SW8LFLElm9N2GlRfa6JjyrFLJ3HkArDIgYlHtw1faw3DmuG4KYGgxtbGT7ZIF1aky+EasgeDFRNJ4fdNPAVaqmuS6L5 nM5AdYBR1/bm+R5yT03dQkQTfETRRS98PTbJTRbSTmU4aSAqFezdz1liuA1+cCVqSofz5ROcj3eKOgPxIQSWGI0U/FdGFfz omega@linux-ktou</authorized_key>
</authorized_keys>
</user>
</users>
</profile>
But the post-scripts are not executed but the post.sh script is created in the VM. Could anyone let me know if there is any problem with the autoyast.yml
|