Compare commits

...
Author SHA1 Message Date
Gunnar c0cbf6e08b refactor Caching
build.yml (push) Invalid workflow file
2026-11-18 21:21:00 +01:00
Gunnar 2f8bf49626 feat: install bolt and enable bolt.service for Thunderbolt dock authorization
build.yml (push) Invalid workflow file
2026-11-10 20:34:48 +01:00
Gunnar 4a185d6e0a fix: mirror Fedora 45 repo configs to legacy paths
build.yml (push) Invalid workflow file
2026-11-09 20:27:03 +01:00
Gunnar 2ff1038cd0 fix: sign digest lookup and sudoif askpass handling
build.yml (push) Invalid workflow file
2026-11-09 20:07:53 +01:00
Gunnar 3e37a88726 ci: sign cosmic feature branch builds
build.yml (push) Invalid workflow file
2026-11-09 19:41:57 +01:00
Gunnar 0ffbbdbe9e feat: base image on Fedora Cosmic Atomic 45 2026-11-09 19:00:06 +01:00
11 changed files with 49 additions and 42 deletions

No files matched your search

+10 -4
View File
@@ -83,9 +83,15 @@ jobs:
if [[ "$BRANCH" == "main" ]]; then if [[ "$BRANCH" == "main" ]]; then
echo "IMAGE_TAG=${DEFAULT_TAG}" >> "${GITHUB_ENV}" echo "IMAGE_TAG=${DEFAULT_TAG}" >> "${GITHUB_ENV}"
echo "IS_TEST_BUILD=false" >> "${GITHUB_ENV}" echo "IS_TEST_BUILD=false" >> "${GITHUB_ENV}"
echo "SIGN_IMAGE=true" >> "${GITHUB_ENV}"
elif [[ "$BRANCH" == "feature/cosmic-desktop" ]]; then
echo "IMAGE_TAG=test-${SANITIZED}" >> "${GITHUB_ENV}"
echo "IS_TEST_BUILD=true" >> "${GITHUB_ENV}"
echo "SIGN_IMAGE=true" >> "${GITHUB_ENV}"
else else
echo "IMAGE_TAG=test-${SANITIZED}" >> "${GITHUB_ENV}" echo "IMAGE_TAG=test-${SANITIZED}" >> "${GITHUB_ENV}"
echo "IS_TEST_BUILD=true" >> "${GITHUB_ENV}" echo "IS_TEST_BUILD=true" >> "${GITHUB_ENV}"
echo "SIGN_IMAGE=false" >> "${GITHUB_ENV}"
fi fi
# Cache pro Branch: main (Kinoite) und Test-Branches (bootc) haben # Cache pro Branch: main (Kinoite) und Test-Branches (bootc) haben
@@ -268,7 +274,7 @@ jobs:
# ------------------------------------------------------------ # ------------------------------------------------------------
- name: Install envsubst dependencies - name: Install envsubst dependencies
if: github.event_name != 'pull_request' && env.IS_TEST_BUILD == 'false' if: github.event_name != 'pull_request' && env.SIGN_IMAGE == 'true'
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y gettext sudo apt-get install -y gettext
@@ -278,7 +284,7 @@ jobs:
# ------------------------------------------------------------ # ------------------------------------------------------------
- name: Install Cosign - name: Install Cosign
if: github.event_name != 'pull_request' && env.IS_TEST_BUILD == 'false' if: github.event_name != 'pull_request' && env.SIGN_IMAGE == 'true'
uses: sigstore/cosign-installer@v4.1.3 uses: sigstore/cosign-installer@v4.1.3
# ------------------------------------------------------------ # ------------------------------------------------------------
@@ -286,7 +292,7 @@ jobs:
# ------------------------------------------------------------ # ------------------------------------------------------------
- name: Sign container image (Recursive Digest) - name: Sign container image (Recursive Digest)
if: github.event_name != 'pull_request' && env.IS_TEST_BUILD == 'false' if: github.event_name != 'pull_request' && env.SIGN_IMAGE == 'true'
env: env:
COSIGN_PRIVATE_KEY: ${{ secrets.SIGNING_SECRET }} COSIGN_PRIVATE_KEY: ${{ secrets.SIGNING_SECRET }}
COSIGN_PASSWORD: "" COSIGN_PASSWORD: ""
@@ -303,7 +309,7 @@ jobs:
OUTER_DIGEST=$( OUTER_DIGEST=$(
skopeo inspect \ skopeo inspect \
--creds "${{ github.repository_owner }}:${{ secrets.REGISTRY }}" \ --creds "${{ github.repository_owner }}:${{ secrets.REGISTRY }}" \
"docker://${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.DEFAULT_TAG }}" \ "docker://${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}" \
| jq -r .Digest | jq -r .Digest
) )
+5 -5
View File
@@ -102,23 +102,23 @@ jobs:
compression: zstd compression: zstd
provenance: false provenance: false
sbom: false sbom: false
cache-from: type=registry,ref=${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache-amd64-main cache-from: type=registry,ref=${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache-amd64-${{ replace(github.ref_name, '/', '-') }}
cache-to: type=registry,ref=${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache-amd64-main,mode=max cache-to: type=registry,ref=${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache-amd64-${{ replace(github.ref_name, '/', '-') }},mode=max
outputs: type=registry,oci-mediatypes=true,compression=zstd,compression-args=binary-path=/usr/bin/go-zstd-chunked outputs: type=registry,oci-mediatypes=true,compression=zstd,compression-args=binary-path=/usr/bin/go-zstd-chunked
- name: Install gettext dependencies - name: Install gettext dependencies
if: github.event_name != 'pull_request' && github.ref_name == 'main' if: github.event_name != 'pull_request' && (github.ref_name == 'main' || github.ref_name == 'feature/cosmic-desktop')
run: | run: |
set -euo pipefail set -euo pipefail
sudo apt-get update sudo apt-get update
sudo apt-get install -y gettext sudo apt-get install -y gettext
- name: Install Cosign - name: Install Cosign
if: github.event_name != 'pull_request' && github.ref_name == 'main' if: github.event_name != 'pull_request' && (github.ref_name == 'main' || github.ref_name == 'feature/cosmic-desktop')
uses: sigstore/cosign-installer@v4.1.3 uses: sigstore/cosign-installer@v4.1.3
- name: Sign container image - name: Sign container image
if: github.event_name != 'pull_request' && github.ref_name == 'main' if: github.event_name != 'pull_request' && (github.ref_name == 'main' || github.ref_name == 'feature/cosmic-desktop')
env: env:
COSIGN_PRIVATE_KEY: ${{ secrets.SIGNING_SECRET }} COSIGN_PRIVATE_KEY: ${{ secrets.SIGNING_SECRET }}
COSIGN_PASSWORD: "" COSIGN_PASSWORD: ""
+8 -7
View File
@@ -26,7 +26,7 @@ COPY build /build
############################################################################### ###############################################################################
# BASE IMAGE # BASE IMAGE
############################################################################### ###############################################################################
FROM quay.io/fedora/fedora-kinoite:45 FROM quay.io/fedora-ostree-desktops/cosmic-atomic:45
### /opt (Unverändert) ### /opt (Unverändert)
# RUN rm /opt && mkdir /opt # RUN rm /opt && mkdir /opt
@@ -40,7 +40,7 @@ RUN --mount=type=bind,from=build-ctx,source=/build/10-repos.sh,target=/tmp/10-re
--mount=type=cache,dst=/var/cache \ --mount=type=cache,dst=/var/cache \
--mount=type=cache,dst=/var/log \ --mount=type=cache,dst=/var/log \
--mount=type=tmpfs,dst=/tmp \ --mount=type=tmpfs,dst=/tmp \
bash /tmp/10-repos.sh && dnf5 clean all bash /tmp/10-repos.sh
# LAYER 2: Unerwünschte Pakete entfernen (Bereinigungsschicht - vorgezogen) # LAYER 2: Unerwünschte Pakete entfernen (Bereinigungsschicht - vorgezogen)
RUN --mount=type=bind,from=build-ctx,source=/build/20-remove-packages.sh,target=/tmp/20-remove-packages.sh \ RUN --mount=type=bind,from=build-ctx,source=/build/20-remove-packages.sh,target=/tmp/20-remove-packages.sh \
@@ -91,9 +91,9 @@ RUN chmod 0644 /etc/containers/policy.json /etc/pki/containers/cosign.pub && \
# --chmod=0644: schliesst world-writable Warnungen von systemd aus (0644 statt 0666 durch Checkout-umask) # --chmod=0644: schliesst world-writable Warnungen von systemd aus (0644 statt 0666 durch Checkout-umask)
COPY --chmod=0644 configs/bootc-timer-override.conf /usr/lib/systemd/system/bootc-fetch-apply-updates.timer.d/override.conf COPY --chmod=0644 configs/bootc-timer-override.conf /usr/lib/systemd/system/bootc-fetch-apply-updates.timer.d/override.conf
COPY --chmod=0644 configs/bootc-override.conf /usr/lib/systemd/system/bootc-fetch-apply-updates.service.d/override.conf COPY --chmod=0644 configs/bootc-override.conf /usr/lib/systemd/system/bootc-fetch-apply-updates.service.d/override.conf
# boltd (Thunderbolt): Framework-NHI-IDs fehlen in bolts Liste -> kosmetische # bolt (Thunderbolt): Framework-NHI-IDs fehlen in bolts Liste -> kosmetische
# "unknown NHI PCI id"-Meldung. Log-Stufe auf warning begrenzen. # "unknown NHI PCI id"-Meldung. Log-Stufe auf warning begrenzen.
COPY --chmod=0644 configs/systemd/system/boltd.service.d/log-level.conf /usr/lib/systemd/system/boltd.service.d/log-level.conf COPY --chmod=0644 configs/systemd/system/bolt.service.d/log-level.conf /usr/lib/systemd/system/bolt.service.d/log-level.conf
# systemd-remount-fs scheitert auf bootc/composefs deterministisch; die # systemd-remount-fs scheitert auf bootc/composefs deterministisch; die
# Mounts kommen bereits mit den richtigen fstab-Optionen hoch. # Mounts kommen bereits mit den richtigen fstab-Optionen hoch.
COPY --chmod=0644 configs/remount-fs-ostree-skip.conf /usr/lib/systemd/system/systemd-remount-fs.service.d/skip-on-ostree.conf COPY --chmod=0644 configs/remount-fs-ostree-skip.conf /usr/lib/systemd/system/systemd-remount-fs.service.d/skip-on-ostree.conf
@@ -119,7 +119,7 @@ RUN install -d -m 0755 /usr/lib/bootc/kargs.d && \
chmod 0755 \ chmod 0755 \
/usr/lib/systemd/system/bootc-fetch-apply-updates.timer.d \ /usr/lib/systemd/system/bootc-fetch-apply-updates.timer.d \
/usr/lib/systemd/system/bootc-fetch-apply-updates.service.d \ /usr/lib/systemd/system/bootc-fetch-apply-updates.service.d \
/usr/lib/systemd/system/boltd.service.d \ /usr/lib/systemd/system/bolt.service.d \
/usr/lib/systemd/system/systemd-remount-fs.service.d \ /usr/lib/systemd/system/systemd-remount-fs.service.d \
/usr/lib/bootc/kargs.d \ /usr/lib/bootc/kargs.d \
/usr/lib/sysctl.d \ /usr/lib/sysctl.d \
@@ -128,7 +128,7 @@ RUN install -d -m 0755 /usr/lib/bootc/kargs.d && \
chmod 0644 \ chmod 0644 \
/usr/lib/systemd/system/bootc-fetch-apply-updates.timer.d/override.conf \ /usr/lib/systemd/system/bootc-fetch-apply-updates.timer.d/override.conf \
/usr/lib/systemd/system/bootc-fetch-apply-updates.service.d/override.conf \ /usr/lib/systemd/system/bootc-fetch-apply-updates.service.d/override.conf \
/usr/lib/systemd/system/boltd.service.d/log-level.conf \ /usr/lib/systemd/system/bolt.service.d/log-level.conf \
/usr/lib/systemd/system/systemd-remount-fs.service.d/skip-on-ostree.conf \ /usr/lib/systemd/system/systemd-remount-fs.service.d/skip-on-ostree.conf \
/usr/lib/bootc/kargs.d/kargs.toml \ /usr/lib/bootc/kargs.d/kargs.toml \
/usr/lib/sysctl.d/99-fluffy-pancake.conf \ /usr/lib/sysctl.d/99-fluffy-pancake.conf \
@@ -152,7 +152,8 @@ RUN systemctl enable \
# virtlogd.service \ # virtlogd.service \
podman.socket \ podman.socket \
bootc-fetch-apply-updates.timer \ bootc-fetch-apply-updates.timer \
flatpak-preinstall.service flatpak-preinstall.service \
bolt.service
############################################################################### ###############################################################################
# FINAL CLEANUP # FINAL CLEANUP
+1 -1
View File
@@ -59,7 +59,7 @@ sudoif command *args:
function sudoif(){ function sudoif(){
if [[ "${UID}" -eq 0 ]]; then if [[ "${UID}" -eq 0 ]]; then
"$@" "$@"
elif [[ "$(command -v sudo)" && -n "${SSH_ASKPASS:-}" ]] && [[ -n "${DISPLAY:-}" || -n "${WAYLAND_DISPLAY:-}" ]]; then elif [[ "$(command -v sudo)" && -n "${SUDO_ASKPASS:-}" ]] && [[ -n "${DISPLAY:-}" || -n "${WAYLAND_DISPLAY:-}" ]]; then
/usr/bin/sudo --askpass "$@" || exit 1 /usr/bin/sudo --askpass "$@" || exit 1
elif [[ "$(command -v sudo)" ]]; then elif [[ "$(command -v sudo)" ]]; then
/usr/bin/sudo "$@" || exit 1 /usr/bin/sudo "$@" || exit 1
+11 -1
View File
@@ -11,4 +11,14 @@ dnf5 install -y \
"https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-${FEDORA_VERSION}.noarch.rpm" \ "https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-${FEDORA_VERSION}.noarch.rpm" \
"https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-${FEDORA_VERSION}.noarch.rpm" "https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-${FEDORA_VERSION}.noarch.rpm"
dnf5 clean all # Fedora 45 hat die paketierten Repo-Configs nach /usr/share/dnf5/repos.d
# verlagert. Tools, die noch den alten Pfad /etc/yum.repos.d erwarten
# (z. B. rpm-ostree/Client-Side-Layering, ältere Skripte), finden sie dort
# nicht. Daher die Repo-Infos zusätzlich an den bisherigen Standard-Ort
# kopieren (ohne vorhandene, vom Admin angepasste Dateien zu überschreiben).
mkdir -p /etc/yum.repos.d
cp -n /usr/share/dnf5/repos.d/*.repo /etc/yum.repos.d/ 2>/dev/null || true
# GPG-Keys ebenfalls an den bisherigen Ort spiegeln (DNF4/rpm-ostree).
mkdir -p /etc/pki/rpm-gpg
cp -n /usr/share/pki/rpm-gpg/* /etc/pki/rpm-gpg/ 2>/dev/null || true
+1 -8
View File
@@ -8,11 +8,4 @@ set -eoux pipefail
echo "Removing Firefox and langpacks..." echo "Removing Firefox and langpacks..."
dnf5 remove -y \ dnf5 remove -y \
firefox \ firefox \
firefox-langpacks* \ firefox-langpacks* || true
plasma-discover \
plasma-discover-flatpak \
plasma-discover-notifier
rm -f /etc/xdg/autostart/org.kde.discover.notifier.desktop
dnf5 clean all
+4 -9
View File
@@ -5,31 +5,26 @@ set -eoux pipefail
# Transaction 2: Virtualization, Tools & Hardware Helpers # Transaction 2: Virtualization, Tools & Hardware Helpers
# Zusammengefasst für effizientere Paketauflösung. # Zusammengefasst für effizientere Paketauflösung.
############################################################################### ###############################################################################
echo "Installing Virtualization, Plasma Setup and Hardware Helpers..." echo "Installing Virtualization and Hardware Helpers..."
dnf5 install -y \ dnf5 install -y \
--allowerasing \ --allowerasing \
--skip-unavailable \ --skip-unavailable \
distrobox \ distrobox \
toolbox \ toolbox \
plasma-setup \
libva-utils \ libva-utils \
micro \ micro \
fuse \ fuse \
fuse-libs \ fuse-libs \
fuse3 \ fuse3 \
jq \ jq \
libnotify libnotify \
bolt
# Soft-Check: --skip-unavailable darf keine stillen Luecken reissen. # Soft-Check: --skip-unavailable darf keine stillen Luecken reissen.
# Fehlende Pakete werden geloggt, brechen den Build aber nicht ab # Fehlende Pakete werden geloggt, brechen den Build aber nicht ab
# (bewusste Toleranz fuer Umbenennungen/Repo-Hickups). # (bewusste Toleranz fuer Umbenennungen/Repo-Hickups).
for pkg in distrobox toolbox plasma-setup libva-utils micro fuse fuse-libs fuse3 jq libnotify; do for pkg in distrobox toolbox libva-utils micro fuse fuse-libs fuse3 jq libnotify bolt; do
if ! rpm -q "${pkg}" >/dev/null 2>&1; then if ! rpm -q "${pkg}" >/dev/null 2>&1; then
echo "WARN: ${pkg} nicht installiert (Repo-/Umbenennungsproblem?)" >&2 echo "WARN: ${pkg} nicht installiert (Repo-/Umbenennungsproblem?)" >&2
fi fi
done done
dnf5 clean all
-2
View File
@@ -34,8 +34,6 @@ for pkg in mesa-va-drivers-freeworld mesa-vulkan-drivers-freeworld ffmpeg \
fi fi
done done
dnf5 clean all
#echo "Installing rocm" #echo "Installing rocm"
#dnf5 install -y \ #dnf5 install -y \
# rocm-clinfo \ # rocm-clinfo \
+7 -3
View File
@@ -9,7 +9,7 @@ Scripts are named with a number prefix and run in ascending order during the con
## Included Scripts ## Included Scripts
- **`10-repos.sh`** - RPM Fusion repositories einrichten (frei + nonfree) - **`10-repos.sh`** - RPM Fusion repositories einrichten (frei + nonfree)
- **`20-remove-packages.sh`** - Entfernt unerwuenschte Pakete (Firefox, Plasma Discover) - **`20-remove-packages.sh`** - Entfernt unerwuenschte Pakete (Firefox)
- **`30-virt.sh`** - Virtualisierungstools, Distrobox, Toolbox, Micro, etc. - **`30-virt.sh`** - Virtualisierungstools, Distrobox, Toolbox, Micro, etc.
- **`40-multimedia.sh`** - Mesa Freeworld, Codecs, FFmpeg, GStreamer, Intel-Media-Treiber - **`40-multimedia.sh`** - Mesa Freeworld, Codecs, FFmpeg, GStreamer, Intel-Media-Treiber
- **`50-prepare-flatpak-for-bazaar.sh`** - Laedt Flathub-Repo-Definition fuer Bazaar - **`50-prepare-flatpak-for-bazaar.sh`** - Laedt Flathub-Repo-Definition fuer Bazaar
@@ -49,12 +49,16 @@ Ohne Loeschen deaktivieren:
## Ausfuehrung im Containerfile ## Ausfuehrung im Containerfile
```dockerfile ```dockerfile
RUN --mount=type=bind,from=ctx,source=/build/10-repos.sh,target=/tmp/10-repos.sh \ RUN --mount=type=bind,from=build-ctx,source=/build/10-repos.sh,target=/tmp/10-repos.sh \
--mount=type=cache,dst=/var/cache \ --mount=type=cache,dst=/var/cache \
--mount=type=cache,dst=/var/log \
--mount=type=tmpfs,dst=/tmp \ --mount=type=tmpfs,dst=/tmp \
bash /tmp/10-repos.sh && dnf5 clean all bash /tmp/10-repos.sh
``` ```
Kein `dnf5 clean all` in den Zwischenlayern: das wuerde den geteilten Cache-Mount
sofort wieder leeren. Die Bereinigung erfolgt einmalig in `99-cleanup.sh`.
## Hinweise ## Hinweise
- Scripts laufen als root waehrend des Builds - Scripts laufen als root waehrend des Builds
+1 -1
View File
@@ -1,4 +1,4 @@
# Kernel-Args – fluffy-pancake (Kinoite / Framework 13 AMD) # Kernel-Args – fluffy-pancake (Cosmic Atomic / Framework 13 AMD)
# bootc wertet /usr/lib/bootc/kargs.d bei Installation und Upgrade aus. # bootc wertet /usr/lib/bootc/kargs.d bei Installation und Upgrade aus.
# #
# Zielhardware: Framework 13 AMD (Phoenix/Zen4, AMD-Grafik, Intel AX210, # Zielhardware: Framework 13 AMD (Phoenix/Zen4, AMD-Grafik, Intel AX210,
@@ -1,5 +1,5 @@
[Service] [Service]
# boltd meldet "failed to determine if uid is stable: unknown NHI PCI id" # bolt (boltd) meldet "failed to determine if uid is stable: unknown NHI PCI id"
# fuer Frameworks Pink-Sardine-USB4-Controller (0x1668/0x1669), weil diese # fuer Frameworks Pink-Sardine-USB4-Controller (0x1668/0x1669), weil diese
# IDs in bolts interner NHI-Liste fehlen. Funktionell irrelevant: bei # IDs in bolts interner NHI-Liste fehlen. Funktionell irrelevant: bei
# aktivem IOMMU werden Geraete automatisch mit iommu-Policy enrolled und # aktivem IOMMU werden Geraete automatisch mit iommu-Policy enrolled und