From a3c746895a8c2ab7f2cb0cbfa50070a730da70fe Mon Sep 17 00:00:00 2001 From: tranch Date: Fri, 13 Nov 2026 07:26:34 +0800 Subject: 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. --- installer/Containerfile | 2 +- installer/build.sh | 51 ++++++++++++++++++++++++++++++++----------------- 2 files changed, 34 insertions(+), 19 deletions(-) (limited to 'installer') 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 <&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 -- cgit v1.2.3 From 9b2b8f7e4d84aab81756b3c326e3d035a18fb1be Mon Sep 17 00:00:00 2001 From: tranch Date: Fri, 13 Nov 2026 10:01:38 +0800 Subject: Open Live installer and fix target paths Launch Anaconda at Live session startup instead of the Bazzite Portal. Use canonical target paths so systemd-tmpfiles accepts SELinux relabeling during installation. --- installer/build.sh | 3 ++- .../system_files/overrides/etc/anaconda/profile.d/aerocore.conf | 6 ++++++ .../overrides/etc/xdg/autostart/aerocore-liveinst.desktop | 5 +++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 installer/system_files/overrides/etc/xdg/autostart/aerocore-liveinst.desktop (limited to 'installer') diff --git a/installer/build.sh b/installer/build.sh index 3b9d987..80690ec 100755 --- a/installer/build.sh +++ b/installer/build.sh @@ -112,7 +112,8 @@ 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 +rm -f /etc/skel/.config/autostart/steam*.desktop \ + /etc/skel/.config/autostart/bazzite-portal.desktop live_product_name="AeroCore OS" sed -i "s/^NAME=.*/NAME=\"${live_product_name}\"/" /usr/lib/os-release diff --git a/installer/system_files/overrides/etc/anaconda/profile.d/aerocore.conf b/installer/system_files/overrides/etc/anaconda/profile.d/aerocore.conf index 0dd8f41..749ebc9 100644 --- a/installer/system_files/overrides/etc/anaconda/profile.d/aerocore.conf +++ b/installer/system_files/overrides/etc/anaconda/profile.d/aerocore.conf @@ -11,6 +11,12 @@ profile_id = aerocore [Profile Detection] os_id = aerocore +# Bazzite's /mnt is a symlink to /var/mnt. Use canonical paths so +# systemd-tmpfiles can relabel the deployed target without rejecting it. +[Installation Target] +physical_root = /var/mnt/sysimage +system_root = /var/mnt/sysroot + [Network] default_on_boot = FIRST_WIRED_WITH_LINK diff --git a/installer/system_files/overrides/etc/xdg/autostart/aerocore-liveinst.desktop b/installer/system_files/overrides/etc/xdg/autostart/aerocore-liveinst.desktop new file mode 100644 index 0000000..e70cf8e --- /dev/null +++ b/installer/system_files/overrides/etc/xdg/autostart/aerocore-liveinst.desktop @@ -0,0 +1,5 @@ +[Desktop Entry] +Type=Application +Name=Install to Hard Drive +Exec=liveinst +Icon=org.fedoraproject.AnacondaInstaller -- cgit v1.2.3 From 81b85a89fcbdf960a126c3a70c3a1c3dbd94633a Mon Sep 17 00:00:00 2001 From: tranch Date: Fri, 13 Nov 2026 10:01:43 +0800 Subject: Align unstable with Bazzite stable 45.20261112 Pin the system and Live bases to the latest upstream stable release. Keep CI fallbacks and local build defaults aligned. --- installer/Containerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'installer') diff --git a/installer/Containerfile b/installer/Containerfile index 93d4cc4..065fe43 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-44.20261026 +ARG BASE_IMAGE=ghcr.io/ublue-os/bazzite:stable-45.20261112 ARG IMAGE_VENDOR=aerocore-io ARG IMAGE_NAME=aerocore-os ARG INSTALL_IMAGE_PAYLOAD=ghcr.io/${IMAGE_VENDOR}/${IMAGE_NAME}:stable -- cgit v1.2.3