Compare commits

..
11 changed files with 47 additions and 43 deletions

No files matched your search

+5 -11
View File
@@ -83,15 +83,9 @@ jobs:
if [[ "$BRANCH" == "main" ]]; then
echo "IMAGE_TAG=${DEFAULT_TAG}" >> "${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
echo "IMAGE_TAG=test-${SANITIZED}" >> "${GITHUB_ENV}"
echo "IS_TEST_BUILD=true" >> "${GITHUB_ENV}"
echo "SIGN_IMAGE=false" >> "${GITHUB_ENV}"
fi
# Cache pro Branch: main (Kinoite) und Test-Branches (bootc) haben
@@ -274,7 +268,7 @@ jobs:
# ------------------------------------------------------------
- name: Install envsubst dependencies
if: github.event_name != 'pull_request' && env.SIGN_IMAGE == 'true'
if: github.event_name != 'pull_request' && env.IS_TEST_BUILD == 'false'
run: |
sudo apt-get update
sudo apt-get install -y gettext
@@ -284,15 +278,15 @@ jobs:
# ------------------------------------------------------------
- name: Install Cosign
if: github.event_name != 'pull_request' && env.SIGN_IMAGE == 'true'
uses: sigstore/cosign-installer@v4.1.3
if: github.event_name != 'pull_request' && env.IS_TEST_BUILD == 'false'
uses: sigstore/cosign-installer@v4.1.4
# ------------------------------------------------------------
# Sign image (rekursiv, Legacy-.sig für sigstoreSigned-Policy)
# ------------------------------------------------------------
- name: Sign container image (Recursive Digest)
if: github.event_name != 'pull_request' && env.SIGN_IMAGE == 'true'
if: github.event_name != 'pull_request' && env.IS_TEST_BUILD == 'false'
env:
COSIGN_PRIVATE_KEY: ${{ secrets.SIGNING_SECRET }}
COSIGN_PASSWORD: ""
@@ -309,7 +303,7 @@ jobs:
OUTER_DIGEST=$(
skopeo inspect \
--creds "${{ github.repository_owner }}:${{ secrets.REGISTRY }}" \
"docker://${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}" \
"docker://${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.DEFAULT_TAG }}" \
| jq -r .Digest
)
+6 -6
View File
@@ -102,23 +102,23 @@ jobs:
compression: zstd
provenance: false
sbom: false
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-${{ replace(github.ref_name, '/', '-') }},mode=max
cache-from: type=registry,ref=${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache-amd64-main
cache-to: type=registry,ref=${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache-amd64-main,mode=max
outputs: type=registry,oci-mediatypes=true,compression=zstd,compression-args=binary-path=/usr/bin/go-zstd-chunked
- name: Install gettext dependencies
if: github.event_name != 'pull_request' && (github.ref_name == 'main' || github.ref_name == 'feature/cosmic-desktop')
if: github.event_name != 'pull_request' && github.ref_name == 'main'
run: |
set -euo pipefail
sudo apt-get update
sudo apt-get install -y gettext
- name: Install Cosign
if: github.event_name != 'pull_request' && (github.ref_name == 'main' || github.ref_name == 'feature/cosmic-desktop')
uses: sigstore/cosign-installer@v4.1.3
if: github.event_name != 'pull_request' && github.ref_name == 'main'
uses: sigstore/cosign-installer@v4.1.4
- name: Sign container image
if: github.event_name != 'pull_request' && (github.ref_name == 'main' || github.ref_name == 'feature/cosmic-desktop')
if: github.event_name != 'pull_request' && github.ref_name == 'main'
env:
COSIGN_PRIVATE_KEY: ${{ secrets.SIGNING_SECRET }}
COSIGN_PASSWORD: ""
+2 -2
View File
@@ -28,7 +28,7 @@ jobs:
RENOVATE_REPOSITORY_CACHE: 'enabled'
run: |
set -euo pipefail
docker pull renovate/renovate:44
docker pull renovate/renovate:45
docker run --rm \
-e RENOVATE_PLATFORM \
-e RENOVATE_ENDPOINT \
@@ -39,4 +39,4 @@ jobs:
-e RENOVATE_PRODUCT_METADATA_URL \
-e RENOVATE_FETCH_CHANGELOGS \
-e RENOVATE_REPOSITORY_CACHE \
renovate/renovate:44
renovate/renovate:45
+7 -8
View File
@@ -26,7 +26,7 @@ COPY build /build
###############################################################################
# BASE IMAGE
###############################################################################
FROM quay.io/fedora-ostree-desktops/cosmic-atomic:45
FROM quay.io/fedora/fedora-kinoite:45
### /opt (Unverändert)
# 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/log \
--mount=type=tmpfs,dst=/tmp \
bash /tmp/10-repos.sh
bash /tmp/10-repos.sh && dnf5 clean all
# 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 \
@@ -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)
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
# bolt (Thunderbolt): Framework-NHI-IDs fehlen in bolts Liste -> kosmetische
# boltd (Thunderbolt): Framework-NHI-IDs fehlen in bolts Liste -> kosmetische
# "unknown NHI PCI id"-Meldung. Log-Stufe auf warning begrenzen.
COPY --chmod=0644 configs/systemd/system/bolt.service.d/log-level.conf /usr/lib/systemd/system/bolt.service.d/log-level.conf
COPY --chmod=0644 configs/systemd/system/boltd.service.d/log-level.conf /usr/lib/systemd/system/boltd.service.d/log-level.conf
# systemd-remount-fs scheitert auf bootc/composefs deterministisch; die
# 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
@@ -119,7 +119,7 @@ RUN install -d -m 0755 /usr/lib/bootc/kargs.d && \
chmod 0755 \
/usr/lib/systemd/system/bootc-fetch-apply-updates.timer.d \
/usr/lib/systemd/system/bootc-fetch-apply-updates.service.d \
/usr/lib/systemd/system/bolt.service.d \
/usr/lib/systemd/system/boltd.service.d \
/usr/lib/systemd/system/systemd-remount-fs.service.d \
/usr/lib/bootc/kargs.d \
/usr/lib/sysctl.d \
@@ -128,7 +128,7 @@ RUN install -d -m 0755 /usr/lib/bootc/kargs.d && \
chmod 0644 \
/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/bolt.service.d/log-level.conf \
/usr/lib/systemd/system/boltd.service.d/log-level.conf \
/usr/lib/systemd/system/systemd-remount-fs.service.d/skip-on-ostree.conf \
/usr/lib/bootc/kargs.d/kargs.toml \
/usr/lib/sysctl.d/99-fluffy-pancake.conf \
@@ -152,8 +152,7 @@ RUN systemctl enable \
# virtlogd.service \
podman.socket \
bootc-fetch-apply-updates.timer \
flatpak-preinstall.service \
bolt.service
flatpak-preinstall.service
###############################################################################
# FINAL CLEANUP
+3 -2
View File
@@ -19,6 +19,7 @@ dnf5 install -y \
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
cp -n /usr/share/pki/rpm-gpg/* /etc/pki/rpm-gpg/ 2>/dev/null || true
dnf5 clean all
+8 -1
View File
@@ -8,4 +8,11 @@ set -eoux pipefail
echo "Removing Firefox and langpacks..."
dnf5 remove -y \
firefox \
firefox-langpacks* || true
firefox-langpacks* \
plasma-discover \
plasma-discover-flatpak \
plasma-discover-notifier
rm -f /etc/xdg/autostart/org.kde.discover.notifier.desktop
dnf5 clean all
+9 -4
View File
@@ -5,26 +5,31 @@ set -eoux pipefail
# Transaction 2: Virtualization, Tools & Hardware Helpers
# Zusammengefasst für effizientere Paketauflösung.
###############################################################################
echo "Installing Virtualization and Hardware Helpers..."
echo "Installing Virtualization, Plasma Setup and Hardware Helpers..."
dnf5 install -y \
--allowerasing \
--skip-unavailable \
distrobox \
toolbox \
plasma-setup \
libva-utils \
micro \
fuse \
fuse-libs \
fuse3 \
jq \
libnotify \
bolt
libnotify
# Soft-Check: --skip-unavailable darf keine stillen Luecken reissen.
# Fehlende Pakete werden geloggt, brechen den Build aber nicht ab
# (bewusste Toleranz fuer Umbenennungen/Repo-Hickups).
for pkg in distrobox toolbox libva-utils micro fuse fuse-libs fuse3 jq libnotify bolt; do
for pkg in distrobox toolbox plasma-setup libva-utils micro fuse fuse-libs fuse3 jq libnotify; do
if ! rpm -q "${pkg}" >/dev/null 2>&1; then
echo "WARN: ${pkg} nicht installiert (Repo-/Umbenennungsproblem?)" >&2
fi
done
dnf5 clean all
+2
View File
@@ -34,6 +34,8 @@ for pkg in mesa-va-drivers-freeworld mesa-vulkan-drivers-freeworld ffmpeg \
fi
done
dnf5 clean all
#echo "Installing rocm"
#dnf5 install -y \
# rocm-clinfo \
+3 -7
View File
@@ -9,7 +9,7 @@ Scripts are named with a number prefix and run in ascending order during the con
## Included Scripts
- **`10-repos.sh`** - RPM Fusion repositories einrichten (frei + nonfree)
- **`20-remove-packages.sh`** - Entfernt unerwuenschte Pakete (Firefox)
- **`20-remove-packages.sh`** - Entfernt unerwuenschte Pakete (Firefox, Plasma Discover)
- **`30-virt.sh`** - Virtualisierungstools, Distrobox, Toolbox, Micro, etc.
- **`40-multimedia.sh`** - Mesa Freeworld, Codecs, FFmpeg, GStreamer, Intel-Media-Treiber
- **`50-prepare-flatpak-for-bazaar.sh`** - Laedt Flathub-Repo-Definition fuer Bazaar
@@ -49,16 +49,12 @@ Ohne Loeschen deaktivieren:
## Ausfuehrung im Containerfile
```dockerfile
RUN --mount=type=bind,from=build-ctx,source=/build/10-repos.sh,target=/tmp/10-repos.sh \
RUN --mount=type=bind,from=ctx,source=/build/10-repos.sh,target=/tmp/10-repos.sh \
--mount=type=cache,dst=/var/cache \
--mount=type=cache,dst=/var/log \
--mount=type=tmpfs,dst=/tmp \
bash /tmp/10-repos.sh
bash /tmp/10-repos.sh && dnf5 clean all
```
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
- Scripts laufen als root waehrend des Builds
+1 -1
View File
@@ -1,4 +1,4 @@
# Kernel-Args – fluffy-pancake (Cosmic Atomic / Framework 13 AMD)
# Kernel-Args – fluffy-pancake (Kinoite / Framework 13 AMD)
# bootc wertet /usr/lib/bootc/kargs.d bei Installation und Upgrade aus.
#
# Zielhardware: Framework 13 AMD (Phoenix/Zen4, AMD-Grafik, Intel AX210,
@@ -1,5 +1,5 @@
[Service]
# bolt (boltd) meldet "failed to determine if uid is stable: unknown NHI PCI id"
# boltd meldet "failed to determine if uid is stable: unknown NHI PCI id"
# fuer Frameworks Pink-Sardine-USB4-Controller (0x1668/0x1669), weil diese
# IDs in bolts interner NHI-Liste fehlen. Funktionell irrelevant: bei
# aktivem IOMMU werden Geraete automatisch mit iommu-Policy enrolled und