Skip to content

trust doesn't persist across reboots #2

Description

@aslammaududy

After running sudo phpark trust, internet works fine — but after every reboot it breaks again until I re-run sudo phpark trust.

Root cause: setupLinuxDNS() in internal/dns/resolver.go calls systemctl restart dnsmasq but never systemctl enable dnsmasq. So dnsmasq doesn't start at boot, and systemd-resolved can overwrite /etc/resolv.conf.

Fix: Add after the restart call:

exec.Command("sudo", "systemctl", "enable", "dnsmasq").Run()

Workaround: sudo systemctl enable dnsmasq after each trust.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions