LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-13-2019, 07:40 AM   #1
tyasaswi
LQ Newbie
 
Registered: Sep 2019
Posts: 1

Rep: Reputation: Disabled
<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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error when creating “oc_vol.yaml”: Post https://console.com:8443/api/v1/persistentvolumes: Service Unavailable Epic555 Linux - Containers 0 01-16-2019 06:44 AM
ShellScript executed from command prmpt but not executed from crontab or at command BMMadhav Linux - Newbie 1 11-16-2012 07:20 PM
[SOLVED] Xwindow's program will not run when executed on boot or when executed remotely richman1234 Programming 2 10-08-2010 01:32 PM
reading YAML config into Perl as @list. OldGaf Programming 12 06-16-2010 07:31 AM
problems iterating in RUBY while extracting info from YAML, Pls help! wrapster Programming 0 10-04-2008 09:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 08:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration