diff options
| author | tranch <tranch.xiao@gmail.com> | 2026-11-13 07:26:34 +0800 |
|---|---|---|
| committer | tranch <tranch.xiao@gmail.com> | 2026-11-13 07:26:44 +0800 |
| commit | a3c746895a8c2ab7f2cb0cbfa50070a730da70fe (patch) | |
| tree | 90973190a9a3d8e99ba2ff70094b46d027b32f99 | |
| parent | f25dd094fda3d9ec647c5f572c64334dfa115b70 (diff) | |
| download | AeroCore-OS-a3c746895a8c2ab7f2cb0cbfa50070a730da70fe.tar.gz AeroCore-OS-a3c746895a8c2ab7f2cb0cbfa50070a730da70fe.zip | |
Fix Live ISO startup and branding
Use a matching Bazzite desktop base and isolate temporary space.
Disable Live session setup that fills the overlay and provide the
launcher icon. Keep the installer image separate from the payload.
| -rw-r--r-- | .github/workflows/build-live-iso.yml | 6 | ||||
| -rw-r--r-- | installer/Containerfile | 2 | ||||
| -rwxr-xr-x | installer/build.sh | 51 | ||||
| -rwxr-xr-x | just_scripts/build-live-iso.sh | 12 |
4 files changed, 46 insertions, 25 deletions
diff --git a/.github/workflows/build-live-iso.yml b/.github/workflows/build-live-iso.yml index a364f6c..9270363 100644 --- a/.github/workflows/build-live-iso.yml +++ b/.github/workflows/build-live-iso.yml @@ -29,9 +29,6 @@ jobs: IMAGE_NAME: ${{ vars.IMAGE_NAME || github.event.repository.name }} IMAGE_TAG: ${{ inputs.image_tag || 'latest' }} ISO_FILE_TAG: ${{ github.ref_name == 'testing' && 'testing' || (inputs.image_tag || 'latest') }} - # Keep these aligned with the Fedora major used by the target bazzite-deck base image. - LIVE_BASE_IMAGE: quay.io/fedora/fedora-kinoite:44 - FEDORA_VERSION: "44" OSTREE_IMAGE_REF: ${{ vars.OSTREE_IMAGE_REF }} steps: @@ -67,6 +64,9 @@ jobs: - name: Pull AeroCore install image run: | sudo podman pull "${IMAGE_REGISTRY}/${IMAGE_NAME}:${IMAGE_TAG}" + fedora_version="$(sudo podman run --rm --network none --entrypoint /usr/bin/rpm "${IMAGE_REGISTRY}/${IMAGE_NAME}:${IMAGE_TAG}" -E %fedora)" + [[ "${fedora_version}" =~ ^[0-9]+$ ]] || { echo "Invalid Fedora version: ${fedora_version}" >&2; exit 1; } + echo "LIVE_BASE_IMAGE=ghcr.io/ublue-os/bazzite:stable-${fedora_version}" >> "$GITHUB_ENV" - name: Build installer ISO payload run: | diff --git a/installer/Containerfile b/installer/Containerfile index a7f1d3b..93d4cc4 100644 --- a/installer/Containerfile +++ b/installer/Containerfile @@ -1,7 +1,7 @@ # Build the installer ISO payload from a desktop Bazzite runtime. # The image installed to disk is supplied separately as INSTALL_IMAGE_PAYLOAD. -ARG BASE_IMAGE=ghcr.io/ublue-os/bazzite:stable +ARG BASE_IMAGE=ghcr.io/ublue-os/bazzite:stable-44.20261026 ARG IMAGE_VENDOR=aerocore-io ARG IMAGE_NAME=aerocore-os ARG INSTALL_IMAGE_PAYLOAD=ghcr.io/${IMAGE_VENDOR}/${IMAGE_NAME}:stable diff --git a/installer/build.sh b/installer/build.sh index 34c55b7..3b9d987 100755 --- a/installer/build.sh +++ b/installer/build.sh @@ -97,8 +97,23 @@ if [[ -f /usr/share/icons/hicolor/scalable/places/distributor-logo.svg ]]; then /usr/share/icons/hicolor/scalable/apps/start-here.svg cp -f /usr/share/icons/hicolor/scalable/places/distributor-logo.svg \ /usr/share/icons/hicolor/scalable/places/start-here.svg + install -m0644 /usr/share/icons/hicolor/scalable/places/distributor-logo.svg \ + /usr/share/icons/hicolor/scalable/apps/aerocore-logo.svg fi +# Bazzite's first-boot setup and Steam autostart can fill the Live overlay, +# which shares the small /run tmpfs, before Anaconda can start. +for unit in brew-setup.service brew-update.timer brew-upgrade.timer \ + bazzite-hardware-setup.service ublue-hardware-setup.service \ + ublue-system-setup.service bazzite-flatpak-manager.service \ + ublue-flatpak-manager.service; do + systemctl disable "${unit}" || true +done +for unit in bazzite-user-setup.service ublue-user-setup.service; do + systemctl --global disable "${unit}" || true +done +rm -f /etc/skel/.config/autostart/steam*.desktop + live_product_name="AeroCore OS" sed -i "s/^NAME=.*/NAME=\"${live_product_name}\"/" /usr/lib/os-release sed -i "s/^PRETTY_NAME=.*/PRETTY_NAME=\"${live_product_name} ${live_version_id} (Kinoite)\"/" /usr/lib/os-release @@ -129,27 +144,27 @@ else podman pull "${INSTALL_IMAGE_PAYLOAD}" fi +# Match Bazzite's dedicated Live-session temporary filesystem for ostree. +rm -rf /var/tmp +mkdir -m 1777 /var/tmp +cat > /etc/systemd/system/var-tmp.mount <<'EOF' +[Unit] +Description=Larger tmpfs for /var/tmp on live system + +[Mount] +What=tmpfs +Where=/var/tmp +Type=tmpfs +Options=mode=1777,size=50%%,nr_inodes=1m,x-systemd.graceful-option=usrquota + +[Install] +WantedBy=local-fs.target +EOF +systemctl enable var-tmp.mount + # Tell Anaconda to install the bootc container that was loaded above. mkdir -p /var/lib/rpm-state cat >> /usr/share/anaconda/interactive-defaults.ks <<EOF -%pre-install --log=/tmp/aerocore-var-tmp.log -set -eux -target_tmp= -for root in /mnt/sysimage /mnt/sysroot /var/mnt/sysimage; do - if mountpoint -q \${root}; then - target_tmp=\${root}/var/tmp - break - fi -done -if [ x\${target_tmp} = x ]; then - echo No mounted target system found for /var/tmp bind mount >&2 - exit 1 -fi -mkdir -p \${target_tmp} -chmod 1777 \${target_tmp} -mount --bind \${target_tmp} /var/tmp -df -h /var/tmp \${target_tmp} -%end # bootc relies on systemd's GPT auto-root discovery on the first boot. Anaconda # can leave the installed root partition with the generic Linux filesystem diff --git a/just_scripts/build-live-iso.sh b/just_scripts/build-live-iso.sh index 5d40a05..b40c3eb 100755 --- a/just_scripts/build-live-iso.sh +++ b/just_scripts/build-live-iso.sh @@ -7,7 +7,7 @@ cd "${project_root}" image_name="${IMAGE_NAME:-localhost/$(just image_name)}" image_tag="${IMAGE_TAG:-$(just generate-default-tag)}" -live_base_image="${LIVE_BASE_IMAGE:-quay.io/fedora/fedora-kinoite:44}" +live_base_image="${LIVE_BASE_IMAGE:-}" titanoboa_repository="${TITANOBOA_REPOSITORY:-https://github.com/Zeglius/titanoboa.git}" titanoboa_revision="${TITANOBOA_REVISION:-7737f4748458252ac827dca14b3d6dd09298472a}" source_image="${image_name}:${image_tag}" @@ -24,6 +24,7 @@ install_image_ref="${ostree_image_ref#ostree-image-signed:docker://}" install_image_ref="${install_image_ref#ostree-unverified-registry:docker://}" install_image_ref="${install_image_ref#docker://}" payload="${install_image_ref}:${image_tag}" +installer_image="localhost/aerocore-os-installer:${image_tag}" output_dir="${project_root}/output" payload_archive="${output_dir}/install-payload.oci" iso="${output_dir}/aerocore-os-${image_tag}-live-amd64.iso" @@ -108,6 +109,11 @@ validate_install_payload() { mkdir -p "${output_dir}" ensure_rootful_image validate_install_payload +if [[ -z "${live_base_image}" ]]; then + fedora_version="$("${podman_cmd[@]}" run --rm --network none --entrypoint /usr/bin/rpm "${source_image}" -E %fedora)" + [[ "${fedora_version}" =~ ^[0-9]+$ ]] || { echo "Invalid Fedora version: ${fedora_version}" >&2; exit 1; } + live_base_image="ghcr.io/ublue-os/bazzite:stable-${fedora_version}" +fi "${podman_cmd[@]}" tag "${source_image}" "${payload}" "${podman_cmd[@]}" save --format oci-archive --output "${payload_archive}" "${payload}" @@ -120,7 +126,7 @@ validate_install_payload --build-arg "INSTALL_IMAGE_PAYLOAD_ARCHIVE=/install-payload.oci" \ --build-arg "INSTALL_IMAGE_TAG=${image_tag}" \ --build-arg "OSTREE_IMAGE_REF=${ostree_image_ref}" \ - --tag "${payload}" \ + --tag "${installer_image}" \ --file installer/Containerfile \ . @@ -144,7 +150,7 @@ git -C "${tmp_titanoboa}" checkout --quiet "${titanoboa_revision}" cd "${tmp_titanoboa}" env \ CI=1 \ - TITANOBOA_CTR_IMAGE="${payload}" \ + TITANOBOA_CTR_IMAGE="${installer_image}" \ TITANOBOA_OUTPUT_DIR="${tmp_titanoboa}/output" \ "${tmp_titanoboa}/main.sh" ) |
