Skip to content

Instantly share code, notes, and snippets.

@ofrzeta
Last active July 4, 2023 11:28
Show Gist options
  • Save ofrzeta/60d895d8ddbd581ac9f08b16c36ba6a9 to your computer and use it in GitHub Desktop.
Save ofrzeta/60d895d8ddbd581ac9f08b16c36ba6a9 to your computer and use it in GitHub Desktop.
Minimal Autoyast installation file for OpenSuse Tumbleweed
<?xml version="1.0"?>
<!DOCTYPE profile>
<profile
xmlns="http://www.suse.com/1.0/yast2ns"
xmlns:config="http://www.suse.com/1.0/configns">
<general>
<mode>
<confirm config:type="boolean">false</confirm>
<second_stage config:type="boolean">false</second_stage>
</mode>
</general>
<partitioning config:type="list">
<drive>
<device>/dev/vda</device>
<partitions config:type="list">
<partition>
<filesystem config:type="symbol">btrfs</filesystem>
<size>10G</size>
<mount>/</mount>
</partition>
</partitions>
</drive>
</partitioning>
<users config:type="list">
<user>
<encrypted config:type="boolean">false</encrypted>
<uid>0</uid>
<gid>0</gid>
<user_password>password</user_password>
<username>root</username>
<forename/>
<surname/>
</user>
</users>
<software>
<packages config:type="list">
<package>zypper</package>
</packages>
<do_online_update config:type="boolean">true</do_online_update>
</software>
<services-manager>
<default_target>multi-user</default_target>
<services>
<enable config:type="list">
<service>sshd</service>
</enable>
</services>
</services-manager>
<scripts>
<chroot-scripts config:type="list">
<script>
<chrooted config:type="boolean">true</chrooted>
<filename>ssh.sh</filename>
<source>
<![CDATA[
#!/bin/sh
umask 077
mkdir /root/.ssh
echo "ssh-dss AAAAB3NzaC1kc3MAAACBAPKD0JbHFAiTsfFDDFKJDFlFDFJKLDFDFvAAAAFQCoJbNCpHlv/dM9n/w1y+Pl3pcRaQAAAIBa6UVptfh5uV31dYIPLI0lcXSqqL4lbrV3DK9eJOPAoJAGPX8rq14UdRDMvEVzhkefsUodqnE/QG81cmUk3veY4Uhv3r28pgdbtrKis7p8kMZBLq4Pdd9DFRyZkcG+dff1PBgcoXi1ni0JGTR+aooyNoxmaPpKTp2vxKGRPirafQAAAIEA7bUbZzMTlol8ZoDNht2wVWk2EG/9k/L6EZyrSe39SrO5Tf7MDuqB0wLtlae2q+upWka3Ba39HsjtG7BeErJsZT9jTfRbiBKR8JAFQni5T+kVVpZl3ihEXA5kdfYp2xfvoRXSP8Uq0aDzwudwaxFgprObn8N9V7XEHHUOBR7a+Bw= oliver@itanet.de" >> /root/.ssh/authorized_keys
systemctl enable sshd
exit 0
]]>
</source>
</script>
</chroot-scripts>
</scripts>
</profile>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment