Allows specifying a default OS and destination
(the last for Imager embedded only) in the repository json.
Like:
==
"imager": {
"latest_version": "1.6",
"url": "https://www.raspberrypi.org/software/",
"default_os": "Raspberry Pi OS (32-bit)",
"embedded_default_destination": "/dev/mmcblk0p1"
},
==
- after writing new partition table, make sure auto-mount has
not mounted any old FAT filesystems that were previously
on disks at the same offset.
- error out on format errors. (timeout was raised to prevent
false positives on formatting time'ing out)
If mounting partition after FAT32 format fails, check if race
occurs in which the Linux distribution was faster in auto-mounting
the partition then we were in manually mounting it.
- Enclose SSID within brackets, to allow SSIDs with spaces
- Call 'setupcon' to have keyboard layout change applied
Setting wifi country code on Ubuntu still broken
The FAT partition /dev node is supposed to be already available
after running partprobe, but since there is a user report that
is not always the case, double check and delay if necessary.
Closes#237
In order to be consistent with other services moving to raspberrypi.com,
send telemetry there instead of raspberrypi.org.
Note that the raspberrypi.org endpoint will continue to work
indefinitely in order to support existing clients.
Offer to prefill the wifi password of the system running
Imager, like we do on Windows.
Ask user first if that is desired, as it does cause OS X to
generate a prompt asking for admin password.
We could cover the backtic case by using nowdoc instead of
heredoc, but then there may still be problems with double quotes.
Put the PBKDF2 hash instead of plaintext password in
wpa_supplicant.conf to solve such problems.
Closes#206
Had wrongfully assumed CFStringRef's were reference counted
objects that needed to be CFRelease()'d when we no longer
needed them.
However according to the CFArrayGetValueAtIndex() API docs
( https://developer.apple.com/documentation/corefoundation/1388767-cfarraygetvalueatindex?language=objc )
it follows "get rule" for memory ownership, meaning it is not
ours to release.
Only prefLangs returned by CFLocaleCopyPreferredLanguages()
need to be CFRelease()'d as that does follow "create rule"
Ref #202 (Crash on Mac OS Big Sur)