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 +++++ tests/test-aerocore-anaconda-profile.sh | 2 ++ 4 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 installer/system_files/overrides/etc/xdg/autostart/aerocore-liveinst.desktop 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 diff --git a/tests/test-aerocore-anaconda-profile.sh b/tests/test-aerocore-anaconda-profile.sh index 3b3bb61..aa9e7b5 100755 --- a/tests/test-aerocore-anaconda-profile.sh +++ b/tests/test-aerocore-anaconda-profile.sh @@ -8,6 +8,8 @@ build_script="${project_root}/installer/build.sh" grep -qx 'profile_id = aerocore' "${profile}" grep -qx 'os_id = aerocore' "${profile}" +grep -qx 'physical_root = /var/mnt/sysimage' "${profile}" +grep -qx 'system_root = /var/mnt/sysroot' "${profile}" grep -Fqx "sed -i 's/^ID=.*/ID=aerocore/' /usr/lib/os-release" "${build_script}" if grep -Eq '^[[:space:]]*(UserSpoke|anaconda-screen-accounts)[[:space:]]*$' "${profile}"; then -- cgit v1.2.3