Merge pull request #126 from naturallaw777/copilot/fix-security-warning-reappearance

Fix legacy security warning reappearing on every reboot after password change
This commit is contained in:
Sovran_Systems
2026-04-07 13:29:32 -05:00
committed by GitHub

View File

@@ -116,6 +116,14 @@ EOF
exit 0 exit 0
fi fi
# If the user completed Hub onboarding, they've addressed security
[ -f /var/lib/sovran/onboarding-complete ] && exit 0
# If the free password has been changed from the factory default, no warning needed
if [ -f /var/lib/secrets/free-password ]; then
[ "$(cat /var/lib/secrets/free-password)" != "free" ] && exit 0
fi
# No flags at all + secrets exist = legacy (pre-seal era) machine # No flags at all + secrets exist = legacy (pre-seal era) machine
if [ -f /var/lib/secrets/root-password ]; then if [ -f /var/lib/secrets/root-password ]; then
mkdir -p /var/lib/sovran mkdir -p /var/lib/sovran