summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinstaller/build.sh3
-rw-r--r--installer/system_files/overrides/etc/anaconda/profile.d/aerocore.conf6
-rw-r--r--installer/system_files/overrides/etc/xdg/autostart/aerocore-liveinst.desktop5
-rwxr-xr-xtests/test-aerocore-anaconda-profile.sh2
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