Compare commits
10 Commits
94956e7750
...
e672f281ef
Author | SHA1 | Date | |
---|---|---|---|
|
e672f281ef | ||
|
2820e4b2bb | ||
|
01b18f3e89 | ||
|
0521c46afa | ||
|
84a2a2a187 | ||
|
726d50088f | ||
|
d036ad6d83 | ||
|
0a91c4077b | ||
|
f055b4d18d | ||
|
806f23b694 |
@ -68,6 +68,9 @@ 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.
|
||||
|
||||
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
|
||||
|
||||
This is free software: you can redistribute it and/or modify
|
||||
|
@ -195,7 +195,7 @@ def tmtCopy(target):
|
||||
image = f"{base}.raw.zst"
|
||||
manifest = f"{base}.json"
|
||||
|
||||
artifacts = os.getenv("TMT_PLAN_DATA")
|
||||
artifacts = os.getenv("TMT_TEST_DATA")
|
||||
if not os.path.exists(artifacts):
|
||||
os.mkdir(artifacts)
|
||||
|
||||
|
@ -2,13 +2,15 @@
|
||||
<profiles>
|
||||
<profile name="BootCore" description="Boot core packages"/>
|
||||
</profiles>
|
||||
<packages type="bootstrap" patternType="plusRecommended" profiles="BootCore">
|
||||
<package name="grubby"/>
|
||||
</packages>
|
||||
<packages type="image" patternType="plusRecommended" profiles="BootCore">
|
||||
<package name="grub2-efi-aa64" arch="aarch64"/>
|
||||
<package name="grub2-efi-aa64-modules" arch="aarch64"/>
|
||||
<package name="shim-signed-aa64" arch="aarch64"/>
|
||||
<package name="grub2-efi-aa64" arch="aarch64"/>
|
||||
<package name="uboot-images-armv8" arch="aarch64"/>
|
||||
<package name="grubby"/>
|
||||
<package name="kernel-16k"/>
|
||||
<package name="kernel-16k-modules-extra"/>
|
||||
<package name="systemd-oomd-defaults"/>
|
||||
|
@ -28,16 +28,20 @@
|
||||
<packages type="uninstall" profiles="DesktopCommon">
|
||||
<package name="xorg-x11-server-Xorg"/>
|
||||
</packages>
|
||||
<packages type="bootstrap" patternType="plusRecommended" profiles="GNOME-Desktop">
|
||||
<package name="fedora-release-workstation"/>
|
||||
</packages>
|
||||
<packages type="image" patternType="plusRecommended" profiles="GNOME-Desktop">
|
||||
<namedCollection name="workstation-product-environment"/>
|
||||
<package name="fedora-release-workstation"/>
|
||||
</packages>
|
||||
<packages type="bootstrap" patternType="plusRecommended" profiles="KDE-Desktop">
|
||||
<package name="fedora-release-kde"/>
|
||||
</packages>
|
||||
<packages type="image" patternType="plusRecommended" profiles="KDE-Desktop">
|
||||
<namedCollection name="kde-desktop-environment"/>
|
||||
<namedCollection name="kde-apps"/>
|
||||
<namedCollection name="kde-media"/>
|
||||
<package name="fuse"/>
|
||||
<package name="fedora-release-kde"/>
|
||||
<package name="kde-l10n"/>
|
||||
<package name="calamares-firstboot-config"/>
|
||||
<ignore name="@admin-tools"/>
|
||||
|
@ -54,12 +54,6 @@ passwd -l root
|
||||
# Setup default services
|
||||
#--------------------------------------
|
||||
|
||||
## Enable chrony
|
||||
systemctl enable sshd.service
|
||||
## Enable NetworkManager
|
||||
systemctl enable NetworkManager.service
|
||||
## Enable chrony
|
||||
systemctl enable chronyd.service
|
||||
## Enable persistent journal
|
||||
mkdir -p /var/log/journal
|
||||
|
||||
|
@ -18,9 +18,11 @@
|
||||
</oemconfig>
|
||||
</type>
|
||||
</preferences>
|
||||
<packages type="bootstrap" patternType="plusRecommended" profiles="Server">
|
||||
<package name="fedora-release-server"/>
|
||||
</packages>
|
||||
<packages type="image" patternType="plusRecommended" profiles="Server">
|
||||
<namedCollection name="container-management"/>
|
||||
<namedCollection name="server-product-environment"/>
|
||||
<package name="fedora-release-server"/>
|
||||
</packages>
|
||||
</image>
|
||||
|
@ -3,8 +3,3 @@
|
||||
# Set ESP mount options to match what Fedora does
|
||||
# https://github.com/OSInside/kiwi/issues/2201
|
||||
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 /
|
||||
|
@ -1,28 +1,7 @@
|
||||
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:
|
||||
how: shell
|
||||
tests:
|
||||
- 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
|
||||
|
||||
how: fmf
|
||||
environment:
|
||||
image_variant: gnome
|
||||
execute:
|
||||
how: tmt
|
||||
|
@ -1,28 +1,7 @@
|
||||
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:
|
||||
how: shell
|
||||
tests:
|
||||
- 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
|
||||
|
||||
how: fmf
|
||||
environment:
|
||||
image_variant: kde
|
||||
execute:
|
||||
how: tmt
|
||||
|
@ -1,28 +1,7 @@
|
||||
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:
|
||||
how: shell
|
||||
tests:
|
||||
- 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
|
||||
|
||||
how: fmf
|
||||
environment:
|
||||
image_variant: minimal
|
||||
execute:
|
||||
how: tmt
|
||||
|
@ -1,28 +1,7 @@
|
||||
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:
|
||||
how: shell
|
||||
tests:
|
||||
- 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
|
||||
|
||||
how: fmf
|
||||
environment:
|
||||
image_variant: server
|
||||
execute:
|
||||
how: tmt
|
||||
|
23
tmt/tests/build-image.fmf
Normal file
23
tmt/tests/build-image.fmf
Normal file
@ -0,0 +1,23 @@
|
||||
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
|
Loading…
Reference in New Issue
Block a user