summaryrefslogtreecommitdiff
path: root/installer/build.sh
diff options
context:
space:
mode:
authortranch <tranch.xiao@gmail.com>2026-11-13 15:09:33 +0800
committertranch <tranch.xiao@gmail.com>2026-11-13 15:09:33 +0800
commitf273f285f546173a4a9abf61eee0ec8b83e09ad7 (patch)
treeb252a21c3fdc3c8c4f1fde7c3a4eb220efbf9424 /installer/build.sh
parent0e52c0f8da6da518c00fd95edd6443b2bd1528a3 (diff)
parent81b85a89fcbdf960a126c3a70c3a1c3dbd94633a (diff)
downloadAeroCore-OS-f273f285f546173a4a9abf61eee0ec8b83e09ad7.tar.gz
AeroCore-OS-f273f285f546173a4a9abf61eee0ec8b83e09ad7.zip
Merge unstable into testingtesting-45.20261113
Bring in the validated Fedora 45 Live installer fixes and align both image bases with Bazzite stable 45.20261112. Retain testing history while resolving version pin conflicts.
Diffstat (limited to 'installer/build.sh')
-rwxr-xr-xinstaller/build.sh52
1 files changed, 34 insertions, 18 deletions
diff --git a/installer/build.sh b/installer/build.sh
index 34c55b7..80690ec 100755
--- a/installer/build.sh
+++ b/installer/build.sh
@@ -97,8 +97,24 @@ 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 \
+ /etc/skel/.config/autostart/bazzite-portal.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 +145,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