Fix check_and_enable_services.sh and hosts guard

- Fix startup_monitor check to verify timer instead of service
- Fix pacman hooks filename check (10-unlock-etc-hosts.hook, 90-relock-etc-hosts.hook)
- Add re-verification after fixes to update status correctly
- Set immutable attribute before bind mount in pacman-post-relock-hosts.sh
- Add new check_and_enable_services.sh script for verifying all digital wellbeing services
This commit is contained in:
Krzysztof Rudnicki 2025-12-04 15:14:50 +01:00
parent 7eb3338de6
commit 355a19425d

View File

@ -37,6 +37,10 @@ if [[ -x $ENFORCE ]]; then
"$ENFORCE" >/dev/null 2>&1 || true "$ENFORCE" >/dev/null 2>&1 || true
fi fi
if command -v chattr >/dev/null 2>&1; then
chattr +i "$TARGET" >/dev/null 2>&1 || true
fi
# Apply exactly one ro bind layer # Apply exactly one ro bind layer
mount --bind "$TARGET" "$TARGET" >/dev/null 2>&1 || true mount --bind "$TARGET" "$TARGET" >/dev/null 2>&1 || true
mount -o remount,ro,bind "$TARGET" >/dev/null 2>&1 || true mount -o remount,ro,bind "$TARGET" >/dev/null 2>&1 || true