File SUSE-MicroOS.kiwi of Package SUSE-MicroOS

<?xml version="1.0" encoding="utf-8"?>
<!-- OBS-Profiles: @BUILD_FLAVOR@ -->
<!-- OBS-Milestone: %current_milestone -->
<image schemaversion="6.7" name="openSUSE-Leap-Micro" displayname="openSUSE Leap Micro">
    <description type="system">
        <author>openSUSE</author>
        <contact>crc@suse.com</contact>
        <specification>openSUSE Leap Micro</specification>
    </description>
    <profiles>
        <!-- Profiles used as dependencies of actual image profiles -->
        <!-- Flavors -->
	<profile name="full" description="openSUSE Leap Micro as KVM and Container host"/>
	<profile name="container-host" description="openSUSE Leap Micro as Container host"/>
	<!-- Platforms - support profiles -->
        <profile name="bootloader" description="Bootloader files for x86_64 and aarch64"/>
	<!-- Platforms -->
	<profile name="x86" description="Raw disk for x86_64 - uEFI" arch="x86_64">
	  <requires profile="bootloader"/>
	</profile>
	<profile name="x86-legacy" description="Raw disk for x86_64 - legacy boot" arch="x86_64">
	  <requires profile="bootloader"/>
	</profile>
	<profile name="x86-rt" description="Raw disk for x86_64 with RT kernel - uEFI" arch="x86_64">
	  <requires profile="bootloader"/>
	</profile>
	<profile name="rpi" description="Raw disk for Raspberry Pi" arch="aarch64">
	  <requires profile="bootloader"/>
	</profile>
	<profile name="x86-vdi" description="VDI for x86_64 - uEFI" arch="x86_64">
	  <requires profile="bootloader"/>
	</profile>
	<profile name="x86-vdi-legacy" description="VDI for x86_64 - legacy boot" arch="x86_64">
	  <requires profile="bootloader"/>
	</profile>
	<profile name="x86-qcow" description="qcow2 for x86_64 - uEFI" arch="x86_64">
	  <requires profile="bootloader"/>
	</profile>
	<profile name="s390-kvm" description="Raw disk for s390 - DASD" arch="s390x">
	  <requires profile="bootloader"/>
	</profile>
	<profile name="s390-dasd" description="Raw disk for s390 - DASD" arch="s390x">
	  <requires profile="bootloader"/>
	</profile>
	<profile name="s390-fba" description="Raw disk for s390 - DASD" arch="s390x">
	  <requires profile="bootloader"/>
	</profile>
	<!-- Images (flavor + platform) -->
	<profile name="Default" description="openSUSE Leap Micro with Podman as raw image with uEFI boot" arch="x86_64">
	    <requires profile="full"/>
	    <requires profile="x86"/>
        </profile>
	<profile name="Default" description="openSUSE Leap Micro with Podman as raw image with uEFI boot" arch="aarch64">
	    <requires profile="full"/>
	    <requires profile="rpi"/>
        </profile>
	<profile name="Default-RT" description="openSUSE Leap Micro with Podman as raw image with uEFI boot" arch="x86_64">
	    <requires profile="container-host"/>
	    <requires profile="x86-rt"/>
        </profile>
	<profile name="Default-kvm" description="openSUSE Leap Micro with Podman as raw image for KVM on System z" arch="s390x">
	    <requires profile="full"/>
	    <requires profile="s390-kvm"/>
        </profile>
	<profile name="Default-dasd" description="openSUSE Leap Micro with Podman as raw image for KVM on System z" arch="s390x">
	    <requires profile="full"/>
	    <requires profile="s390-dasd"/>
        </profile>
	<profile name="Default-fba" description="openSUSE Leap Micro with Podman as raw image for KVM on System z" arch="s390x">
	    <requires profile="full"/>
	    <requires profile="s390-fba"/>
        </profile>
	<profile name="Default-legacy" description="openSUSE Leap Micro with Podman as raw image with legacy boot" arch="x86_64">
	    <requires profile="full"/>
	    <requires profile="x86-legacy"/>
        </profile>
	<profile name="Default-vdi-legacy" description="openSUSE Leap Micro with Podman as raw image with legacy boot" arch="x86_64">
	    <requires profile="full"/>
	    <requires profile="x86-vdi-legacy"/>
        </profile>
	<profile name="Default-qcow" description="openSUSE Leap Micro with Podman as raw image with uEFI boot" arch="x86_64">
	    <requires profile="full"/>
	    <requires profile="x86-qcow"/>
        </profile>
    </profiles>




    <preferences profiles="x86,x86-rt">
        <version>5.1.0</version>
        <packagemanager>zypper</packagemanager>
        <bootsplash-theme>openSUSE</bootsplash-theme>
        <bootloader-theme>openSUSE</bootloader-theme>
        <rpm-excludedocs>true</rpm-excludedocs>
        <locale>en_US</locale>
        <type
            image="oem"
            initrd_system="dracut"
            filesystem="btrfs"
            bootloader="grub2"
            bootloader_console="gfxterm"
            firmware="uefi"
            kernelcmdline="console=ttyS0,115200 console=tty0 quiet net.ifnames=0 \$ignition_firstboot"
            bootpartition="false"
            bootkernel="custom"
            devicepersistency="by-uuid"
            btrfs_root_is_snapshot="true"
            btrfs_root_is_readonly_snapshot="true"
            btrfs_quota_groups="true"
        >
            <systemdisk>
                <volume name="home"/>
                <volume name="root"/>
		<!-- on tmpfs jsc#SMO-2                <volume name="tmp"/> -->
 		<volume name="opt"/>
                <volume name="srv"/>
                <volume name="boot/grub2/i386-pc"/>
                <volume name="boot/grub2/x86_64-efi" mountpoint="boot/grub2/x86_64-efi"/>
                <volume name="boot/writable"/>
		<volume name="usr/local"/>
		<volume name="var" copy_on_write="false"/>
            </systemdisk>
        </type>
    </preferences>

    <preferences profiles="rpi">
        <version>5.1.0</version>
        <packagemanager>zypper</packagemanager>
        <bootsplash-theme>openSUSE</bootsplash-theme>
        <bootloader-theme>openSUSE</bootloader-theme>
        <rpm-excludedocs>true</rpm-excludedocs>
        <locale>en_US</locale>
        <type
            image="oem"
            initrd_system="dracut"
            filesystem="btrfs"
            fsmountoptions="noatime"
            bootloader="grub2"
            bootloader_console="gfxterm"
            firmware="efi"
            kernelcmdline="console=ttyS0,115200n8 console=tty0 quiet net.ifnames=0 \$ignition_firstboot ignition.platform.id=metal"
            bootpartition="false"
            devicepersistency="by-uuid"
            btrfs_root_is_snapshot="true"
            efipartsize="16"
            editbootinstall="editbootinstall_rpi.sh"
            btrfs_root_is_readonly_snapshot="true"
            btrfs_quota_groups="false"
        >
            <systemdisk>
                <volume name="home"/>
                <volume name="root"/>
		<!-- on tmpfs jsc#SMO-2                <volume name="tmp"/> -->
                <volume name="opt"/>
                <volume name="srv"/>
                <volume name="boot/grub2/arm64-efi" mountpoint="boot/grub2/arm64-efi"/>
                <volume name="boot/writable"/>
                <volume name="usr/local"/>
                <volume name="var" copy_on_write="false"/>
            </systemdisk>
        </type>
    </preferences>

    <preferences profiles="s390-kvm">
        <version>5.1.0</version>
        <packagemanager>zypper</packagemanager>
        <bootsplash-theme>openSUSE</bootsplash-theme>
        <bootloader-theme>openSUSE</bootloader-theme>
        <rpm-excludedocs>true</rpm-excludedocs>
	<locale>en_US</locale>

        <type
            image="oem"
            filesystem="btrfs"
            bootpartition="true"
            bootpartsize="300"
            bootfilesystem="ext2"
	    initrd_system="dracut"
	    format="qcow2"
            boottimeout="0"
            bootloader="grub2_s390x_emu"
            kernelcmdline="hvc_iucv=8 TERM=dumb quiet \$ignition_firstboot"
	    devicepersistency="by-path"
            btrfs_root_is_snapshot="true"
            btrfs_root_is_readonly_snapshot="true"
            btrfs_quota_groups="true"
	>
              <systemdisk>
                  <volume name="home"/>
                  <volume name="root"/>
                  <volume name="opt"/>
                  <volume name="srv"/>
		  <volume name="boot/grub2/s390x-emu" mountpoint="boot/grub2/s390x-emu"/>
                  <volume name="boot/writable"/>
                  <volume name="usr/local"/>
                  <volume name="var" copy_on_write="false"/>
               </systemdisk>
	       <size unit="G">32</size>
      </type>
    </preferences>


    <preferences profiles="s390-dasd">
        <version>5.1.0</version>
        <packagemanager>zypper</packagemanager>
        <bootsplash-theme>openSUSE</bootsplash-theme>
        <bootloader-theme>openSUSE</bootloader-theme>
        <rpm-excludedocs>true</rpm-excludedocs>
        <locale>en_US</locale>
        <type
          image="oem"
          filesystem="btrfs"
          bootpartition="true"
          bootpartsize="300"
          bootfilesystem="ext2"
          initrd_system="dracut"
          bootloader="grub2_s390x_emu"
          bootloader_console="serial"
          kernelcmdline="dasd_mod.dasd=ipldev hvc_iucv=8 TERM=dumb quiet \$ignition_firstboot"
          zipl_targettype="CDL"
          devicepersistency="by-path"
          target_blocksize="4096"
          btrfs_root_is_snapshot="true"
          btrfs_root_is_readonly_snapshot="true"
          btrfs_quota_groups="true"
	  >
              <systemdisk>
                  <volume name="home"/>
                  <volume name="root"/>
                  <volume name="opt"/>
                  <volume name="srv"/>
		  <volume name="boot/grub2/s390x-emu" mountpoint="boot/grub2/s390x-emu"/>
                  <volume name="boot/writable"/>
                  <volume name="usr/local"/>
                  <volume name="var" copy_on_write="false"/>
               </systemdisk>
               <size unit="G">5</size>
      </type>
    </preferences>



    <preferences profiles="s390-fba">
        <version>5.1.0</version>
        <packagemanager>zypper</packagemanager>
        <bootsplash-theme>openSUSE</bootsplash-theme>
        <bootloader-theme>openSUSE</bootloader-theme>
        <rpm-excludedocs>true</rpm-excludedocs>
        <locale>en_US</locale>
        <type
          image="oem"
          filesystem="btrfs"
          bootpartition="true"
          bootpartsize="300"
          bootfilesystem="ext2"
          initrd_system="dracut"
          bootloader="grub2_s390x_emu"
          bootloader_console="serial"
          kernelcmdline="dasd_mod.dasd=ipldev hvc_iucv=8 TERM=dumb quiet \$ignition_firstboot"
          zipl_targettype="FBA"
          devicepersistency="by-path"
          btrfs_root_is_snapshot="true"
          btrfs_root_is_readonly_snapshot="true"
          btrfs_quota_groups="true"
	  >
              <systemdisk>
                  <volume name="home"/>
                  <volume name="root"/>
                  <volume name="opt"/>
                  <volume name="srv"/>
		  <volume name="boot/grub2/s390x-emu" mountpoint="boot/grub2/s390x-emu"/>
                  <volume name="boot/writable"/>
                  <volume name="usr/local"/>
                  <volume name="var" copy_on_write="false"/>
               </systemdisk>
               <size unit="G">5</size>
      </type>
    </preferences>



    <preferences profiles="x86-vdi">
        <version>5.1.0</version>
        <packagemanager>zypper</packagemanager>
        <bootsplash-theme>openSUSE</bootsplash-theme>
        <bootloader-theme>openSUSE</bootloader-theme>
        <rpm-excludedocs>true</rpm-excludedocs>
        <locale>en_US</locale>
        <type
            image="vmx"
            filesystem="btrfs"
            format="vdi"
            bootloader="grub2"
            bootloader_console="gfxterm"
            firmware="uefi"
            kernelcmdline="console=ttyS0,115200 console=tty0 quiet net.ifnames=0 \$ignition_firstboot ignition.platform.id=virtualbox"
            bootpartition="false"
            bootkernel="custom"
            devicepersistency="by-uuid"
            btrfs_root_is_snapshot="true"
            btrfs_root_is_readonly_snapshot="true"
            btrfs_quota_groups="true"
            spare_part="5G" spare_part_mountpoint="/var" spare_part_fs="btrfs" spare_part_is_last="true" spare_part_fs_attributes="no-copy-on-write"
        >
            <systemdisk>
                <volume name="home"/>
                <volume name="root"/>
		<!-- on tmpfs jsc#SMO-2                <volume name="tmp"/> -->
                <volume name="opt"/>
                <volume name="srv"/>
                <volume name="boot/grub2/i386-pc"/>
                <volume name="boot/grub2/x86_64-efi" mountpoint="boot/grub2/x86_64-efi"/>
                <volume name="boot/writable"/>
                <volume name="usr/local"/>
            </systemdisk>
            <size unit="G">24</size>
            <machine memory="1024" HWversion="10" guestOS="suse-64"/>
        </type>
    </preferences>

    <preferences profiles="x86-vdi-legacy">
        <version>5.1.0</version>
        <packagemanager>zypper</packagemanager>
        <bootsplash-theme>openSUSE</bootsplash-theme>
        <bootloader-theme>openSUSE</bootloader-theme>
        <rpm-excludedocs>true</rpm-excludedocs>
        <locale>en_US</locale>
        <type
            image="vmx"
            filesystem="btrfs"
            format="vdi"
            bootloader="grub2"
            bootloader_console="gfxterm"
            firmware="bios"
            kernelcmdline="console=ttyS0,115200 console=tty0 quiet net.ifnames=0 \$ignition_firstboot ignition.platform.id=virtualbox"
            bootpartition="false"
            bootkernel="custom"
            devicepersistency="by-uuid"
            btrfs_root_is_snapshot="true"
            btrfs_root_is_readonly_snapshot="true"
            btrfs_quota_groups="true"
            spare_part="5G" spare_part_mountpoint="/var" spare_part_fs="btrfs" spare_part_is_last="true" spare_part_fs_attributes="no-copy-on-write"
        >
            <systemdisk>
                <volume name="home"/>
                <volume name="root"/>
		<!-- on tmpfs jsc#SMO-2                <volume name="tmp"/> -->
                <volume name="opt"/>
                <volume name="srv"/>
                <volume name="boot/grub2/i386-pc"/>
                <volume name="boot/grub2/x86_64-efi" mountpoint="boot/grub2/x86_64-efi"/>
                <volume name="boot/writable"/>
                <volume name="usr/local"/>
            </systemdisk>
            <size unit="G">24</size>
            <machine memory="1024" HWversion="10" guestOS="suse-64"/>
        </type>
    </preferences>
    <preferences profiles="x86-qcow">
        <version>5.1.0</version>
        <packagemanager>zypper</packagemanager>
        <bootsplash-theme>openSUSE</bootsplash-theme>
        <bootloader-theme>openSUSE</bootloader-theme>
        <rpm-excludedocs>true</rpm-excludedocs>
        <locale>en_US</locale>
        <type
            image="vmx"
            format="qcow2"
            filesystem="btrfs"
            bootloader="grub2"
            bootloader_console="gfxterm"
            firmware="uefi"
            kernelcmdline="console=ttyS0,115200 console=tty0 quiet net.ifnames=0 \$ignition_firstboot ignition.platform.id=qemu"
            bootpartition="false"
            bootkernel="custom"
            devicepersistency="by-uuid"
            btrfs_root_is_snapshot="true"
            btrfs_root_is_readonly_snapshot="true"
            btrfs_quota_groups="true"
            spare_part="5G" spare_part_mountpoint="/var" spare_part_fs="btrfs" spare_part_is_last="true" spare_part_fs_attributes="no-copy-on-write"
        >
            <systemdisk>
                <volume name="home"/>
                <volume name="root"/>
		<!-- on tmpfs jsc#SMO-2                <volume name="tmp"/> -->
 		<volume name="opt"/>
                <volume name="srv"/>
                <volume name="boot/grub2/i386-pc"/>
                <volume name="boot/grub2/x86_64-efi" mountpoint="boot/grub2/x86_64-efi"/>
                <volume name="boot/writable"/>
		<volume name="usr/local"/>
            </systemdisk>
        </type>
    </preferences>

   <repository type="rpm-md" >
        <source path='obsrepositories:/'/>
    </repository>

    <packages type="image" profiles="full">
        <namedCollection name="microos-salt_minion"/>
	<package name="patterns-microos-salt_minion"/>
        <namedCollection name="microos-kvm_host"/>
	<package name="patterns-microos-kvm_host"/>
        <namedCollection name="microos-container_runtime"/>
	<package name="patterns-microos-container_runtime"/>
        <namedCollection name="microos-cockpit"/>
	<package name="patterns-microos-cockpit"/>
        <namedCollection name="microos-selinux"/>
	<package name="patterns-microos-selinux"/>
	<package name="podman"/>
	<package name="suseconnect-ng"/>
	<package name="Leap-Micro-release"/>
	<package name="grub2-branding-openSUSE" arch="x86_64,aarch64"/>
	<package name="systemd-presets-branding-SMO"/>
	<package name="systemd-default-settings-branding-SLE-Micro"/>
	<package name="firewalld"/>
    </packages>

    <packages type="image" profiles="container-host">
        <namedCollection name="microos-salt_minion"/>
	<package name="patterns-microos-salt_minion"/>
        <namedCollection name="microos-container_runtime"/>
	<package name="patterns-microos-container_runtime"/>
        <namedCollection name="microos-cockpit"/>
	<package name="patterns-microos-cockpit"/>
        <namedCollection name="microos-selinux"/>
	<package name="patterns-microos-selinux"/>
	<package name="podman"/>
	<package name="suseconnect-ng"/>
	<package name="Leap-Micro-release"/>
	<package name="grub2-branding-openSUSE" arch="x86_64,aarch64"/>
	<package name="systemd-presets-branding-SMO"/>
	<package name="systemd-default-settings-branding-SLE-Micro"/>
	<package name="firewalld"/>
    </packages>


    <packages type="image">
        <namedCollection name="basesystem"/>
        <package name="patterns-microos-basesystem"/>
        <namedCollection name="microos-hardware"/>
	<package name="live-add-yast-repos"/>
        <package name="patterns-microos-hardware"/>
        <package name="grub2"/>
        <package name="glibc-locale-base"/>
        <package name="ca-certificates"/>
	<package name="Leap-Micro-release"/>
	<package name="systemd-presets-branding-SMO"/>
	<package name="systemd-default-settings-branding-SLE-Micro"/>
	<package name="firewalld"/>
        <package name="ignition"/>
        <package name="ignition-dracut-grub2"/>
	<package name="combustion"/>
	<package name="growpart-generator"/>
	<package name="openSUSE-build-key"/>
	<!-- for debugging -->
	<package name="less"/>
	<package name="vim-small"/>

        <namedCollection name="microos-defaults"/>
        <package name="patterns-microos-defaults"/>
    </packages>

    <packages type="image" profiles="bootloader">
      <package name="grub2-i386-pc" arch="x86_64"/>
      <package name="grub2-x86_64-efi" arch="x86_64"/>
      <package name="grub2-arm64-efi" arch="aarch64"/>
      <package name="grub2-s390x-emu" arch="s390x"/>
      <package name="grub2-branding-openSUSE" bootinclude="true" arch="x86_64,aarch64"/>
      <package name="grub2-snapper-plugin"/>
      <package name="shim" arch="x86_64,aarch64"/>
      <package name="mokutil" arch="x86_64,aarch64"/>
    </packages>
    <!-- rpi kernel-default-base does not provide all necessary drivers -->
    <packages type="image" profiles="x86,x86-legacy,x86-vdi,x86-vdi-legacy">
      <package name="kernel-default"/>
      <package name="kernel-firmware-all"/>
    </packages>
    <packages type="image" profiles="x86-rt">
      <package name="kernel-rt"/>
      <package name="kernel-firmware-all"/>
    </packages>
    <packages type="image" profiles="s390-kvm,s390-dasd,s390-fba">
        <package name="dracut-kiwi-oem-repart"/>
        <package name="blog"/>
    </packages>
    <packages type="image" profiles="x86,x86-legacy,x86-rt">
        <package name="dracut-kiwi-oem-repart"/>
    </packages>
    <packages type="image" profiles="rpi">
        <package name="raspberrypi-firmware" arch="aarch64"/>
        <package name="raspberrypi-firmware-config" arch="aarch64"/>
        <package name="raspberrypi-firmware-dt" arch="aarch64"/>
        <package name="u-boot-rpiarm64" arch="aarch64"/>
        <package name="dracut-kiwi-oem-repart"/>
        <package name="bcm43xx-firmware"/>
        <package name="kernel-firmware-all"/><!-- Fix choice between kernel-firmware and kernel-firmware-all -->
        <package name="wireless-tools"/>
	<package name="wpa_supplicant"/>
        <package name="grub2-arm64-efi"/>
	<!-- kernel-default-base does not have all required drivers -->
        <package name="kernel-default"/>
    </packages>
    <packages type="bootstrap">
        <package name="filesystem"/>
    </packages>
</image>
openSUSE Build Service is sponsored by