diff --git a/.github/workflows/obs-staging-products.yml b/.github/workflows/obs-staging-products.yml index f7bed76802..57cca558b6 100644 --- a/.github/workflows/obs-staging-products.yml +++ b/.github/workflows/obs-staging-products.yml @@ -18,5 +18,5 @@ jobs: # pass all secrets secrets: inherit with: - package_name: agama-products-opensuse + package_name: agama-products service_file: products.d/_service diff --git a/products.d/_service b/products.d/_service index fa490c0896..cd3b780e4f 100644 --- a/products.d/_service +++ b/products.d/_service @@ -7,8 +7,8 @@ master products.d enable - agama-products-opensuse.changes - agama-products-opensuse.spec + agama-products.changes + agama-products.spec agama.obsinfo diff --git a/products.d/agama-products-opensuse.changes b/products.d/agama-products.changes similarity index 87% rename from products.d/agama-products-opensuse.changes rename to products.d/agama-products.changes index 6bd4e35180..638a8a7e7d 100644 --- a/products.d/agama-products-opensuse.changes +++ b/products.d/agama-products.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Jul 17 07:34:01 UTC 2024 - Imobach Gonzalez Sosa + +- Add a definition for SUSE Linux Enteprise Server + (gh#openSUSE/agama#1473). +- Generate separate packages for openSUSE and SLE-based products. + ------------------------------------------------------------------- Tue Jul 12 17:29:00 UTC 2024 - Natasha Ament diff --git a/products.d/agama-products-opensuse.spec b/products.d/agama-products.spec similarity index 68% rename from products.d/agama-products-opensuse.spec rename to products.d/agama-products.spec index 31b90f3ed2..ef40297dad 100644 --- a/products.d/agama-products-opensuse.spec +++ b/products.d/agama-products.spec @@ -15,18 +15,18 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -Name: agama-products-opensuse +Name: agama-products # This will be set by osc services, that will run after this. Version: 0 Release: 0 -Summary: Definition of openSUSE products for the Agama installer +Summary: Definition of products for the Agama installer License: GPL-2.0-only Url: https://github.com/opensuse/agama BuildArch: noarch Source0: agama.tar %description -Products definition for Agama installer. This one is for opensuse products. +Products definition for Agama installer. %prep %autosetup -a0 -n agama @@ -37,7 +37,13 @@ Products definition for Agama installer. This one is for opensuse products. install -D -d -m 0755 %{buildroot}%{_datadir}/agama/products.d install -m 0644 *.yaml %{buildroot}%{_datadir}/agama/products.d -%files +%package opensuse +Summary: Definition of openSUSE products for the Agama installer. + +%description opensuse +Definition of openSUSE products (Tumbleweed, Leap and MicroOS) for the Agama installer. + +%files opensuse %doc README.md %license LICENSE %dir %{_datadir}/agama @@ -46,4 +52,18 @@ install -m 0644 *.yaml %{buildroot}%{_datadir}/agama/products.d %{_datadir}/agama/products.d/tumbleweed.yaml %{_datadir}/agama/products.d/leap_160.yaml +%package sle +Summary: Definition of SLE products for the Agama installer. + +%description sle +SLE-based products definition for Agama installer. +Definition of SLE-based products (e.g., SUSE Linux Enterprise Server) for the Agama installer. + +%files sle +%doc README.md +%license LICENSE +%dir %{_datadir}/agama +%dir %{_datadir}/agama/products.d +%{_datadir}/agama/products.d/sles_160.yaml + %changelog diff --git a/products.d/sles_160.yaml b/products.d/sles_160.yaml new file mode 100644 index 0000000000..e87e36b030 --- /dev/null +++ b/products.d/sles_160.yaml @@ -0,0 +1,135 @@ +id: SLES_16.0 +name: SUSE Linux Enteprise Server 16.0 Alpha +# ------------------------------------------------------------------------------ +# WARNING: When changing the product description delete the translations located +# at the at translations/description key below to avoid using obsolete +# translations!! +# ------------------------------------------------------------------------------ +description: "SUSE Linux Enterprise Server is the open, reliable, compliant, and future-proof + Linux Server choice that ensures the enterprise's business continuity. It is the secure and + adaptable OS for long-term supported, innovation-ready infrastructure running business-critical + workloads on-premises, in the cloud, and at the edge." +# Do not manually change any translations! See README.md for more details. +translations: + description: +software: + installation_repositories: + - url: http://download.suse.de/ibs/SUSE:/SLFO:/Products:/SLES:/16.0/product/repo/SLES-Packages-16.0-x86_64/ + archs: x86_64 + - url: http://download.suse.de/ibs/SUSE:/SLFO:/Products:/SLES:/16.0/product/repo/SLES-Packages-16.0-aarch64/ + archs: aarch64 + + mandatory_patterns: + - sles_enhanced_base + optional_patterns: null # no optional pattern shared + user_patterns: [] + mandatory_packages: + - NetworkManager + optional_packages: null + base_product: SLES + +security: + lsm: none + available_lsms: + apparmor: + patterns: + - apparmor + selinux: + patterns: + - selinux + policy: enforcing + none: + patterns: null + +storage: + space_policy: delete + volumes: + - "/" + - "swap" + volume_templates: + - mount_path: "/" + filesystem: btrfs + btrfs: + snapshots: true + read_only: false + default_subvolume: "@" + subvolumes: + - path: home + - path: opt + - path: root + - path: srv + - path: usr/local + # Unified var subvolume - https://lists.opensuse.org/opensuse-packaging/2017-11/msg00017.html + - path: var + copy_on_write: false + # Architecture specific subvolumes + - path: boot/grub2/arm64-efi + archs: aarch64 + - path: boot/grub2/arm-efi + archs: arm + - path: boot/grub2/i386-pc + archs: x86_64 + - path: boot/grub2/powerpc-ieee1275 + archs: ppc,!board_powernv + - path: boot/grub2/s390x-emu + archs: s390 + - path: boot/grub2/x86_64-efi + archs: x86_64 + - path: boot/grub2/riscv64-efi + archs: riscv64 + size: + auto: true + outline: + required: true + filesystems: + - btrfs + - ext2 + - ext3 + - ext4 + - xfs + auto_size: + base_min: 5 GiB + base_max: 15 GiB + snapshots_increment: 250% + max_fallback_for: + - "/home" + snapshots_configurable: true + - mount_path: "swap" + filesystem: swap + size: + auto: true + outline: + auto_size: + base_min: 1 GiB + base_max: 2 GiB + adjust_by_ram: true + required: false + filesystems: + - swap + - mount_path: "/home" + filesystem: xfs + size: + auto: false + min: 10 GiB + max: unlimited + outline: + required: false + filesystems: + - btrfs + - ext2 + - ext3 + - ext4 + - xfs + - filesystem: xfs + size: + auto: false + min: 1 GiB + outline: + required: false + filesystems: + - btrfs + - ext2 + - ext3 + - ext4 + - xfs + - vfat