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.
|
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
|
||||||
|
@ -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_PLAN_DATA")
|
artifacts = os.getenv("TMT_TEST_DATA")
|
||||||
if not os.path.exists(artifacts):
|
if not os.path.exists(artifacts):
|
||||||
os.mkdir(artifacts)
|
os.mkdir(artifacts)
|
||||||
|
|
||||||
|
@ -2,13 +2,15 @@
|
|||||||
<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"/>
|
||||||
|
@ -28,16 +28,20 @@
|
|||||||
<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"/>
|
||||||
<package name="fedora-release-workstation"/>
|
</packages>
|
||||||
|
<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"/>
|
||||||
|
@ -54,12 +54,6 @@ 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
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ popd > /dev/null
|
|||||||
|
|
||||||
openh264_rpms=$(rpmdistro-repoquery fedora "$release" gstreamer1-plugin-openh264 mozilla-openh264 openh264 --location)
|
openh264_rpms=$(rpmdistro-repoquery fedora "$release" gstreamer1-plugin-openh264 mozilla-openh264 openh264 --location)
|
||||||
|
|
||||||
if [ -e "${openh264_rpms}"]; then
|
if [ -e "${openh264_rpms}" ]; then
|
||||||
extras="{}"
|
extras="{}"
|
||||||
else
|
else
|
||||||
extras="$(printf '%s\n' "${openh264_rpms}" | newlineToJson)"
|
extras="$(printf '%s\n' "${openh264_rpms}" | newlineToJson)"
|
||||||
|
@ -18,9 +18,11 @@
|
|||||||
</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>
|
||||||
|
@ -3,8 +3,3 @@
|
|||||||
# 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 /
|
|
||||||
|
@ -1,28 +1,7 @@
|
|||||||
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: shell
|
how: fmf
|
||||||
tests:
|
environment:
|
||||||
- name: build image
|
image_variant: gnome
|
||||||
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
|
||||||
|
@ -1,28 +1,7 @@
|
|||||||
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: shell
|
how: fmf
|
||||||
tests:
|
environment:
|
||||||
- name: build image
|
image_variant: kde
|
||||||
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
|
||||||
|
@ -1,28 +1,7 @@
|
|||||||
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: shell
|
how: fmf
|
||||||
tests:
|
environment:
|
||||||
- name: build image
|
image_variant: minimal
|
||||||
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
|
||||||
|
@ -1,28 +1,7 @@
|
|||||||
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: shell
|
how: fmf
|
||||||
tests:
|
environment:
|
||||||
- name: build image
|
image_variant: server
|
||||||
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
|
||||||
|
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