diff options
| author | tranch <tranch.xiao@gmail.com> | 2026-11-13 10:01:38 +0800 |
|---|---|---|
| committer | tranch <tranch.xiao@gmail.com> | 2026-11-13 10:01:38 +0800 |
| commit | 9b2b8f7e4d84aab81756b3c326e3d035a18fb1be (patch) | |
| tree | afaf0b31f78df4d8c85d680d368748d2be999dd4 | |
| parent | a3c746895a8c2ab7f2cb0cbfa50070a730da70fe (diff) | |
| download | AeroCore-OS-9b2b8f7e4d84aab81756b3c326e3d035a18fb1be.tar.gz AeroCore-OS-9b2b8f7e4d84aab81756b3c326e3d035a18fb1be.zip | |
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.
4 files changed, 15 insertions, 1 deletions
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 |
