summaryrefslogtreecommitdiff
path: root/just_scripts
diff options
context:
space:
mode:
authortranch <tranch.xiao@gmail.com>2026-11-13 07:26:34 +0800
committertranch <tranch.xiao@gmail.com>2026-11-13 07:26:44 +0800
commita3c746895a8c2ab7f2cb0cbfa50070a730da70fe (patch)
tree90973190a9a3d8e99ba2ff70094b46d027b32f99 /just_scripts
parentf25dd094fda3d9ec647c5f572c64334dfa115b70 (diff)
downloadAeroCore-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.
Diffstat (limited to 'just_scripts')
-rwxr-xr-xjust_scripts/build-live-iso.sh12
1 files changed, 9 insertions, 3 deletions
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"
)