Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reinstall service unable to finish executing after firmware update #2

Open
evie-lau opened this issue Jul 25, 2024 · 3 comments
Open

Comments

@evie-lau
Copy link
Owner

After firmware updates, the reinstall service is not finishing its job. It seems it's able to install wpa supplicant, and enable the service, but seems to die before the start command.
Have to manually start the wpa_supplicant service.
image

@evie-lau
Copy link
Owner Author

Unsure if timing out, or OOM... maybe running too early on bootup?

Maybe can try delaying the service, or changing/removing the timeout

@evie-lau
Copy link
Owner Author

For comparison, a manual successful run of the reinstall service looks like this:

image

@evie-lau
Copy link
Owner Author

Decided to modify the reinstall service with the following:

  • add After=basic.target sysinit.target
  • add Wants=basic.target sysinit.target
  • add Restart=on-failure

Haven't tested, but hopefully will fix the wpa_supplicant reinstall.

[Unit]
Description=Reinstall and start/enable wpa_supplicant
AssertPathExistsGlob=/etc/wpa_supplicant/packages/wpasupplicant*arm64.deb
AssertPathExistsGlob=/etc/wpa_supplicant/packages/libpcsclite1*arm64.deb
ConditionPathExists=!/sbin/wpa_supplicant
After=basic.target sysinit.target
Wants=basic.target sysinit.target

[Service]
Type=oneshot
ExecStartPre=/bin/sh -xc 'sleep 15 && dpkg -Ri /etc/wpa_supplicant/packages'
ExecStart=/bin/sh -xc 'systemctl start wpa_supplicant-wired@eth1'
ExecStartPost=/bin/sh -xc 'systemctl enable wpa_supplicant-wired@eth1'
Restart=on-failure

[Install]
WantedBy=multi-user.target

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant