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
Always read wpa_supplicant.conf from boot partition on bootup #1421
Comments
@ccrisan What do you think of deleting |
I must admit it's definitely a simpler solution than the one originally proposed by me :) And does the same job. |
@ccrisan There's one issue with deleting the This is what my S35wifi looks like: if [ -f $boot_conf ]; then
cp -f $boot_conf $conf
grep -E "/boot .*ro[\s,]" /proc/mounts
RO=$?
test $RO == 0 && mount -o remount,rw /boot
rm -f $boot_conf
test $RO == 0 && mount -o remount,ro /boot
fi Another issue is when users upgrade firmware, their Thoughts? |
@jasaw I agree that if we want to implement it this way, we should temporarily remount the partition read-write. Can we remount it read-only back again without a reboot though? |
@ccrisan Yes, we can definitely remount /boot partition back to read-only without reboot. I do it all the time. :-) |
Why does it endlessly reboot when no network is found, in the first place? That is so frustrating and I just don't see why its like that? I had a monitor keyboard and mouse connected on first boot and all I got was endless reboots? Why can't you just go in after it boots up and setup your WIFI? IMHO having to edit and add a wpa_supplicant file is not the answer. Its way to easy to have an editing error, especially if your doing it on a Windows PC. |
@alphanumeric007 I believe rebooting when no network connection behaviour is to workaround bad wifi drivers/hardware that only recover after a reboot. You can disable this from the web UI. Why do we need write the wpa_supplicant.conf file? I agree with you that the user experience needs to be improved, but I do not agree with your approach of prompting user to enter wifi credentials at boot time. Like I mentioned before, I believe setting up a wifi access point when wifi is not configured gives a better user experience. |
@jasaw Ok, thanks for the response. |
Addressed via ccrisan/thingos#20 |
To improve user experience, it would be better to read
wpa_supplicant.conf
from boot partition whenever the file is updated. This prevents the need to reflash the SD card if wpa_supplicant.conf was missing or wrong at first boot.As @ccrisan suggested: a complex but viable solution would be to keep a hash of the boot variant and therefore be able to tell when it has changed. If the boot variant has changed, we use it to overwrite the data variant. And this mechanism could/should be applied for all config files that support "boot provisioning".
A few examples to describe how this would work:
Original discussions here: #876
The text was updated successfully, but these errors were encountered: