summaryrefslogtreecommitdiff
path: root/installer/build.sh
diff options
context:
space:
mode:
authortranch <tranch.xiao@gmail.com>2026-07-25 07:14:05 +0800
committertranch <tranch.xiao@gmail.com>2026-07-25 07:14:05 +0800
commit981dde9ceed99c6b0a9dde1bce74e6100f0593d2 (patch)
tree10eceedd13c42814a5f84d5739b913b8922c6c7a /installer/build.sh
parent4bf6f276a7c616ebb7797952c5f33e5f282fb2c8 (diff)
downloadAeroCore-OS-981dde9ceed99c6b0a9dde1bce74e6100f0593d2.tar.gz
AeroCore-OS-981dde9ceed99c6b0a9dde1bce74e6100f0593d2.zip
Apply var tmp fix in installer payload
Write the pre-install /var/tmp bind mount hook from installer/build.sh so both Titanoboa CI builds and local ISO builds carry the fix. The previous lorax template path was only wired through the local helper and did not affect GitHub Actions.
Diffstat (limited to 'installer/build.sh')
-rwxr-xr-xinstaller/build.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/installer/build.sh b/installer/build.sh
index c8ac830..aa30f42 100755
--- a/installer/build.sh
+++ b/installer/build.sh
@@ -91,6 +91,25 @@ fi
# 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
+
ostreecontainer --url=${INSTALL_IMAGE_PAYLOAD} --transport=containers-storage --no-signature-verification
EOF