Build containers / Compute changes (pull_request) Successful in 2s
Build containers / fedora-remote (44) (pull_request) Successful in 11m9s
Build containers / fedora-cosmic (rawhide) (pull_request) Successful in 12m8s
Build containers / fedora-cosmic (44) (pull_request) Successful in 14m20s
Build containers / fedora-intune (44) (pull_request) Canceled after 10m35s
Build containers / fedora-intune-himmelblau (44) (pull_request) Canceled after 9m41s
Build containers / Prune old releases and tags (pull_request) Skipped
Fixes found by building and inspecting the image: - Select the Intune authselect profile with-altfiles. Without it system users in /usr/lib/passwd (gdm, pipewire, mdatp) do not resolve and the login screen never starts. The build now fails if gdm does not resolve. - Ship /opt as a plain directory (opt-usrlocal: root). Defender installs to /opt/microsoft/mdatp and keeps state in /var/opt/microsoft/mdatp; with the default /opt -> /var/opt symlink those were the same read-only directory. rpm-ostree still relocates /opt content to /usr/lib/opt, so finalize.d/60-opt-links links it back (only for images where /opt is a directory; fedora-cosmic/remote are unaffected). - Run Defender's %post on first boot (mdatp-firstboot.service): in a compose /var is read-only and the machine GUID/state must not be shared. mdatp.service waits for it. New image fedora-intune-himmelblau: the same workstation with Entra ID sign-in through Himmelblau (Community Nightly packages), which joins the device at the first sign-in and enrolls it in Intune (apply_policy) instead of the Microsoft Intune app. Workstation, Edge and Defender manifests move to images/shared so both images use them; build.sh copies images/shared/*.yaml and CI builds both images in one matrix job. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
31 lines
972 B
Bash
Executable File
31 lines
972 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Given changed paths on stdin, print `cosmic=<bool>`, `remote=<bool>` and
|
|
# `intune=<bool>` so the workflow can skip images that didn't change. Shared
|
|
# files or build tooling changes rebuild everything; empty input
|
|
# (schedule/manual) rebuilds everything.
|
|
set -euo pipefail
|
|
|
|
changed="$(cat || true)"
|
|
|
|
all=0
|
|
[[ -z "${changed}" ]] && all=1
|
|
grep -qE '^(build\.sh|release\.sh|prune-releases\.sh|prune-registry\.sh|ci-changes\.sh|\.gitea/)' <<< "${changed}" && all=1
|
|
grep -qE '^images/shared/' <<< "${changed}" && all=1
|
|
|
|
cosmic=false
|
|
remote=false
|
|
intune=false
|
|
if [[ "${all}" == 1 ]]; then
|
|
cosmic=true
|
|
remote=true
|
|
intune=true
|
|
fi
|
|
grep -qE '^images/fedora-cosmic/' <<< "${changed}" && cosmic=true
|
|
grep -qE '^images/fedora-remote/' <<< "${changed}" && remote=true
|
|
# Both fedora-intune and fedora-intune-himmelblau.
|
|
grep -qE '^images/fedora-intune' <<< "${changed}" && intune=true
|
|
|
|
echo "cosmic=${cosmic}"
|
|
echo "remote=${remote}"
|
|
echo "intune=${intune}"
|