Compare commits

..

No commits in common. "e672f281ef5b5d71999ce39e66970c3a93ea6c96" and "94956e7750ade5564f4464af3b81d7fa674cba7e" have entirely different histories.

13 changed files with 113 additions and 52 deletions

View File

@ -68,9 +68,6 @@ We also provide a script to generate an [Asahi Installer](https://github.com/Asa
Please default to submitting PRs against the `rawhide` branch. Release branches should generally merge from `rawhide` and only deviate where absolutely necessary. Please default to submitting PRs against the `rawhide` branch. Release branches should generally merge from `rawhide` and only deviate where absolutely necessary.
This project is tested using the [Software Factory Zuul CI instance](https://fedora.softwarefactory-project.io/zuul/project/pagure.io/fedora-asahi/kiwi-descriptions)
using the [Test Management Tool](https://tmt.readthedocs.io/).
## Licensing ## Licensing
This is free software: you can redistribute it and/or modify This is free software: you can redistribute it and/or modify

View File

@ -195,7 +195,7 @@ def tmtCopy(target):
image = f"{base}.raw.zst" image = f"{base}.raw.zst"
manifest = f"{base}.json" manifest = f"{base}.json"
artifacts = os.getenv("TMT_TEST_DATA") artifacts = os.getenv("TMT_PLAN_DATA")
if not os.path.exists(artifacts): if not os.path.exists(artifacts):
os.mkdir(artifacts) os.mkdir(artifacts)

View File

@ -2,15 +2,13 @@
<profiles> <profiles>
<profile name="BootCore" description="Boot core packages"/> <profile name="BootCore" description="Boot core packages"/>
</profiles> </profiles>
<packages type="bootstrap" patternType="plusRecommended" profiles="BootCore">
<package name="grubby"/>
</packages>
<packages type="image" patternType="plusRecommended" profiles="BootCore"> <packages type="image" patternType="plusRecommended" profiles="BootCore">
<package name="grub2-efi-aa64" arch="aarch64"/> <package name="grub2-efi-aa64" arch="aarch64"/>
<package name="grub2-efi-aa64-modules" arch="aarch64"/> <package name="grub2-efi-aa64-modules" arch="aarch64"/>
<package name="shim-signed-aa64" arch="aarch64"/> <package name="shim-signed-aa64" arch="aarch64"/>
<package name="grub2-efi-aa64" arch="aarch64"/> <package name="grub2-efi-aa64" arch="aarch64"/>
<package name="uboot-images-armv8" arch="aarch64"/> <package name="uboot-images-armv8" arch="aarch64"/>
<package name="grubby"/>
<package name="kernel-16k"/> <package name="kernel-16k"/>
<package name="kernel-16k-modules-extra"/> <package name="kernel-16k-modules-extra"/>
<package name="systemd-oomd-defaults"/> <package name="systemd-oomd-defaults"/>

View File

@ -28,20 +28,16 @@
<packages type="uninstall" profiles="DesktopCommon"> <packages type="uninstall" profiles="DesktopCommon">
<package name="xorg-x11-server-Xorg"/> <package name="xorg-x11-server-Xorg"/>
</packages> </packages>
<packages type="bootstrap" patternType="plusRecommended" profiles="GNOME-Desktop">
<package name="fedora-release-workstation"/>
</packages>
<packages type="image" patternType="plusRecommended" profiles="GNOME-Desktop"> <packages type="image" patternType="plusRecommended" profiles="GNOME-Desktop">
<namedCollection name="workstation-product-environment"/> <namedCollection name="workstation-product-environment"/>
</packages> <package name="fedora-release-workstation"/>
<packages type="bootstrap" patternType="plusRecommended" profiles="KDE-Desktop">
<package name="fedora-release-kde"/>
</packages> </packages>
<packages type="image" patternType="plusRecommended" profiles="KDE-Desktop"> <packages type="image" patternType="plusRecommended" profiles="KDE-Desktop">
<namedCollection name="kde-desktop-environment"/> <namedCollection name="kde-desktop-environment"/>
<namedCollection name="kde-apps"/> <namedCollection name="kde-apps"/>
<namedCollection name="kde-media"/> <namedCollection name="kde-media"/>
<package name="fuse"/> <package name="fuse"/>
<package name="fedora-release-kde"/>
<package name="kde-l10n"/> <package name="kde-l10n"/>
<package name="calamares-firstboot-config"/> <package name="calamares-firstboot-config"/>
<ignore name="@admin-tools"/> <ignore name="@admin-tools"/>

View File

@ -54,6 +54,12 @@ passwd -l root
# Setup default services # Setup default services
#-------------------------------------- #--------------------------------------
## Enable chrony
systemctl enable sshd.service
## Enable NetworkManager
systemctl enable NetworkManager.service
## Enable chrony
systemctl enable chronyd.service
## Enable persistent journal ## Enable persistent journal
mkdir -p /var/log/journal mkdir -p /var/log/journal

View File

@ -18,11 +18,9 @@
</oemconfig> </oemconfig>
</type> </type>
</preferences> </preferences>
<packages type="bootstrap" patternType="plusRecommended" profiles="Server">
<package name="fedora-release-server"/>
</packages>
<packages type="image" patternType="plusRecommended" profiles="Server"> <packages type="image" patternType="plusRecommended" profiles="Server">
<namedCollection name="container-management"/> <namedCollection name="container-management"/>
<namedCollection name="server-product-environment"/> <namedCollection name="server-product-environment"/>
<package name="fedora-release-server"/>
</packages> </packages>
</image> </image>

View File

@ -3,3 +3,8 @@
# Set ESP mount options to match what Fedora does # Set ESP mount options to match what Fedora does
# https://github.com/OSInside/kiwi/issues/2201 # https://github.com/OSInside/kiwi/issues/2201
gawk -i inplace '$2 == "/boot/efi" { $4 = $4",umask=0077,shortname=winnt" } { print $0 }' /etc/fstab gawk -i inplace '$2 == "/boot/efi" { $4 = $4",umask=0077,shortname=winnt" } { print $0 }' /etc/fstab
# Run selinux relabel at the right time
# https://github.com/OSInside/kiwi/issues/2192
# https://github.com/OSInside/kiwi/pull/2282#issuecomment-1514399308
setfiles -F -p -c /etc/selinux/targeted/policy/policy.* -e /proc -e /sys -e /dev /etc/selinux/targeted/contexts/files/file_contexts /

View File

@ -1,7 +1,28 @@
summary: Build GNOME image summary: Build GNOME image
prepare:
- name: install packages
how: install
package:
- distribution-gpg-keys
- fatcat
- git-core
- kiwi
- libselinux-utils
- p7zip-plugins
- python3-boto3
- rpmdistro-repoquery
- zip
- zstd
discover: discover:
how: fmf how: shell
environment: tests:
image_variant: gnome - name: build image
test: |
setenforce 0
$TMT_TREE/builder.py build gnome
$TMT_TREE/builder.py package gnome
$TMT_TREE/builder.py tmt gnome
setenforce 1
execute: execute:
how: tmt how: tmt

View File

@ -1,7 +1,28 @@
summary: Build KDE image summary: Build KDE image
prepare:
- name: install packages
how: install
package:
- distribution-gpg-keys
- fatcat
- git-core
- kiwi
- libselinux-utils
- p7zip-plugins
- python3-boto3
- rpmdistro-repoquery
- zip
- zstd
discover: discover:
how: fmf how: shell
environment: tests:
image_variant: kde - name: build image
test: |
setenforce 0
$TMT_TREE/builder.py build kde
$TMT_TREE/builder.py package kde
$TMT_TREE/builder.py tmt kde
setenforce 1
execute: execute:
how: tmt how: tmt

View File

@ -1,7 +1,28 @@
summary: Build Minimal image summary: Build Minimal image
prepare:
- name: install packages
how: install
package:
- distribution-gpg-keys
- fatcat
- git-core
- kiwi
- libselinux-utils
- p7zip-plugins
- python3-boto3
- rpmdistro-repoquery
- zip
- zstd
discover: discover:
how: fmf how: shell
environment: tests:
image_variant: minimal - name: build image
test: |
setenforce 0
$TMT_TREE/builder.py build minimal
$TMT_TREE/builder.py package minimal
$TMT_TREE/builder.py tmt minimal
setenforce 1
execute: execute:
how: tmt how: tmt

View File

@ -1,7 +1,28 @@
summary: Build Server image summary: Build Server image
prepare:
- name: install packages
how: install
package:
- distribution-gpg-keys
- fatcat
- git-core
- kiwi
- libselinux-utils
- p7zip-plugins
- python3-boto3
- rpmdistro-repoquery
- zip
- zstd
discover: discover:
how: fmf how: shell
environment: tests:
image_variant: server - name: build image
test: |
setenforce 0
$TMT_TREE/builder.py build server
$TMT_TREE/builder.py package server
$TMT_TREE/builder.py tmt server
setenforce 1
execute: execute:
how: tmt how: tmt

View File

@ -1,23 +0,0 @@
summary: Build image
require:
- distribution-gpg-keys
- fatcat
- git-core
- kiwi
- kiwi-systemdeps-disk-images
- libselinux-utils
- p7zip-plugins
- python3-boto3
- python3-click
- rpmdistro-repoquery
- zip
- zstd
framework: shell
path: /
test: |
setenforce 0
./builder.py build $image_variant
./builder.py package $image_variant
./builder.py tmt $image_variant
setenforce 1
duration: 60m