summaryrefslogtreecommitdiff
path: root/tests/test-aerocore-anaconda-profile.sh
diff options
context:
space:
mode:
authortranch <tranch.xiao@gmail.com>2026-08-26 10:41:53 +0800
committertranch <tranch.xiao@gmail.com>2026-08-26 11:38:14 +0800
commitcc2a2c630120627d8d89e6fec90fdeeb04ca1a51 (patch)
tree1160cfbd2d42d4bc74035c3c1605fb6d87ba3b93 /tests/test-aerocore-anaconda-profile.sh
parent65906b9536aaebdec4169b40e7b9eb86b73e65fe (diff)
downloadAeroCore-OS-cc2a2c630120627d8d89e6fec90fdeeb04ca1a51.tar.gz
AeroCore-OS-cc2a2c630120627d8d89e6fec90fdeeb04ca1a51.zip
fix(installer): restore interactive account setup
Use an AeroCore Anaconda profile so the live installer keeps the accounts page that Fedora KDE hides.
Diffstat (limited to 'tests/test-aerocore-anaconda-profile.sh')
-rwxr-xr-xtests/test-aerocore-anaconda-profile.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test-aerocore-anaconda-profile.sh b/tests/test-aerocore-anaconda-profile.sh
new file mode 100755
index 0000000..3b3bb61
--- /dev/null
+++ b/tests/test-aerocore-anaconda-profile.sh
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+
+set -euo pipefail
+
+project_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
+profile="${project_root}/installer/system_files/overrides/etc/anaconda/profile.d/aerocore.conf"
+build_script="${project_root}/installer/build.sh"
+
+grep -qx 'profile_id = aerocore' "${profile}"
+grep -qx 'os_id = aerocore' "${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
+ echo "AeroCore's Anaconda profile must leave account creation visible" >&2
+ exit 1
+fi