Commit graph

789 commits

Author SHA1 Message Date
Floris Bos
10b50d5f8e QRegExp -> QRegularExpression
- Change QRegExp -> QRegularExpression. To drop dependency on
  legacy Qt5Compat module, if we upgrade to a later Qt version
  at some point.

- Change some "for" constructs clang gives warnings about
  while we are at it.
2022-01-23 19:27:07 +01:00
Floris Bos
51a79c7229 Mac: set NSSupportsAutomaticGraphicsSwitching in plist
Closes #325
2022-01-23 16:37:05 +01:00
maxnet
9f1c87cc0b
Merge pull request #339 from bovirus/patch-5
Update italian language
2022-01-22 16:33:09 +01:00
bovirus
136c915dc0
Update italian language 2022-01-22 16:10:46 +01:00
Floris Bos
28148be1a0 Update translations 2022-01-21 17:32:07 +01:00
Floris Bos
ef6819f6c3 Embedded: reboot immeadetely upon success 2022-01-21 17:31:52 +01:00
Floris Bos
243da48257 cloud-init: reorder ssh/user creation 2022-01-21 17:25:32 +01:00
Floris Bos
566450c728 qml.qrc remove old cog icon 2022-01-20 17:31:34 +01:00
Floris Bos
83513733ef Advanced options: allow username and password to be set without ssh
- Allow username and password to be set separate to SSH.
  Does enforce password to be changed if SSH is enabled without
  public key authentication.
- cloud-init: apt: disable date/time checks
2022-01-20 17:24:25 +01:00
Floris Bos
ba5a27d154 Change advanced settings button
- Change image to button
- Add option to randomize OS list entries
2022-01-20 17:23:47 +01:00
maxnet
ef7106932e
Merge pull request #332 from 63BeetleSmurf/qml
Added option to specify SSID is hidden.
2022-01-20 13:06:58 +01:00
S Murphy
dcf93bd5e8 Added option to specify SSID is hidden. 2022-01-09 21:32:25 +00:00
Michael Zanetti
5cb57dae2b Make osdelegate more flexible and robust 2022-01-09 13:47:43 +01:00
Floris Bos
be40f05b50 Retry once on (GnuTLS) Recv errors
Try resuming download on CURLE_RECV_ERROR.
Will not retry more than once if nothing has been
downloaded since last attempt.

Ref #306
2021-12-21 23:07:53 +01:00
Floris Bos
69f5799145 Fix QtConcurrent use for future Qt version
Qt 6 has a breaking ABI change in relation to QtConcurrent::run()
https://doc.qt.io/qt-6/concurrent-changes-qt6.html
2021-12-21 22:50:13 +01:00
Floris Bos
47d331b664 Allow multi-line authorized_keys
Closes #316
2021-12-20 21:46:37 +01:00
Floris Bos
3733b0e4b3 Update Debian changelog for 1.6.3 2021-12-09 12:28:33 +01:00
Floris Bos
67618a2eac Bump bundled libarchive version to 3.5.2
- Update bunlded libarchive version used on Windows/Mac
- Enable requested zstd support while we are at it. Closes #211
2021-12-09 12:22:14 +01:00
Floris Bos
03e083b4f3 Embedded: do not mention mention that SD card can be removed 2021-11-30 23:18:21 +01:00
maxnet
652da25661
Merge pull request #314 from miharix/qml
Add sl-SI (EU/Slovenija) translation
2021-11-30 22:31:41 +01:00
miharix
d621cd18ba Add sl-SI (EU/Slovenija) translation
Changes to be committed:
	modified:   CMakeLists.txt
	new file:   i18n/rpi-imager_sl.ts
	modified:   i18n/translations.qrc
2021-11-28 17:04:10 +01:00
Floris Bos
5e2db9d16a QML: fix warning about anchors 2021-11-27 21:44:32 +01:00
Floris Bos
b42342d0ac Linux/udisks2/image customization: fix issue with mounting NVMe drives
When using image customization with an NVMe drive under RPI OS on a CM4,
the system will prompt non-root users for password when mounting the FAT file system.
(Passwordless mounting does is available for removable storage,
but the NVMe drive qualifies as internal storage instead).

- The mount command we send to udisks2 over dbus2 may timeout
before the user completed the password prompt.
Raise timeout to counter this.

- Print mount error details to console
- On mount error report error mounting in GUI instead of
  "/config.txt does not exist" (which happened when mountDevice()
  returned empty string)
2021-11-27 19:22:55 +01:00
Floris Bos
8b25991537 README.md: mention disabling parallel build on Pi
On bullseye it seems to default to 'make -j4' which will results
in OOM when it runs out of swap

==
[ 3004.100215] Out of memory: Killed process 6983 (cc1plus) total-vm:211660kB, anon-rss:170332kB, file-rss:0kB, shmem-rss:0kB, UID:1000 pgtables:428kB oom_score_adj:0
==

Mention how to disable parallel build in README.md
2021-11-27 19:11:09 +01:00
Floris Bos
35172d3489 README.md remove qt5-default
There is no qt4 anymore in bullseye.
2021-11-27 18:54:30 +01:00
Floris Bos
9a9c5eb490 cloud-init: set keyboard through localectl
Set keyboard through systemd's localectl instead of writing to
Debian specific /etc/default/keyboard directly, as this also
works for other Linux distributions.

On Debian/Ubuntu one does still need to run a distro specific
command to have the keyboard change be effective without
reboot first (setupcon).
2021-11-25 01:34:13 +01:00
Floris Bos
6845a86fc3 Linux: link liblzma explicity
Otherwise it gives unresolved symbols if libarchive is compiled statically.
2021-11-23 16:25:34 +01:00
Floris Bos
24d7546830 Embedded: allow custom repo to be set through EEPROM setting
Set IMAGER_REPO_URL in EEPROM  (sudo rpi-eeprom-config --edit)
to use an alternative repository.
2021-11-23 13:50:48 +01:00
Floris Bos
a4fb8293ed Embedded: Fix ability to change language back to English 2021-11-23 13:32:12 +01:00
Floris Bos
b34d2a54af Show keyboard instructions if no mouse / warning on custom repo 2021-11-23 12:27:04 +01:00
Floris Bos
f5390c821a Allow specifying default OS selection and destination
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"
    },
==
2021-11-23 02:53:50 +01:00
Floris Bos
cde6d1eaa0 udisks2: FAT32 format auto-mount fix
- 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)
2021-11-22 13:26:34 +01:00
Floris Bos
71c1ea21dd Customization: also apply changes if there is only firstrun and no cmdline/config changes 2021-11-22 13:23:39 +01:00
Floris Bos
fe2c1c55bd Linux Embedded: add support for language/keyboard selection 2021-11-22 00:21:30 +01:00
Floris Bos
2ada96e53a Custom username on RPI OS: fixup sudo nopasswd
Ref #287
2021-11-20 13:29:22 +01:00
Floris Bos
0f3a6a2786 Linux/udisks2/multi-file zip extraction: handle auto-mount better
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.
2021-11-20 13:08:52 +01:00
Floris Bos
506330f486 Advanced settings: allow specifying username
Ref #287
2021-11-19 23:30:42 +01:00
Floris Bos
81f2c50cf2 Merge branch 'qml' of https://github.com/raspberrypi/rpi-imager into qml 2021-11-19 22:26:56 +01:00
maxnet
7bcbb0eebe
Merge pull request #308 from AaronDewes/patch-1
Fix a few mistakes in the German translation
2021-11-19 22:26:46 +01:00
Floris Bos
9c8f737cf6 Minor cloudinit tweaks
- 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
2021-11-19 21:45:47 +01:00
Aaron Dewes
d532e1a1ee
Fix a few mistakes in the German translation
I forgot to submit a PR ealier, but here's another improvement PR.
2021-11-18 21:03:49 +01:00
Floris Bos
8f9fbcffeb First attempt at cloudinit support
Experimental
2021-11-18 20:50:44 +01:00
Floris Bos
2e5cc7508a Linux (as root): FAT32 format: wait for FAT partition after sfdisk
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
2021-11-18 12:21:24 +01:00
Floris Bos
08b7398e6b Linux: explicitly link in zlib
Prevent undefined reference to inflateEnd when statically linking
Qt under rpi-imager embedded.
2021-11-18 11:35:32 +01:00
Floris Bos
99a9fefb0b German: "Authethifizierung" -> "Authentifizierung"
Closes #281
2021-11-18 11:26:59 +01:00
Floris Bos
e79467b626 Pass OS proxy settings to libcurl
Closes #186
2021-11-18 11:16:30 +01:00
Floris Bos
6a1744e29d Windows: fix Chinese language
Closes #271
Closes #272
2021-11-18 10:13:17 +01:00
maxnet
e7ce11eddf
Merge pull request #201 from bovirus/patch-3
Update Italian language
2021-11-18 10:03:44 +01:00
maxnet
2bc13fcfd0
Merge pull request #246 from RPiOS/qml
fix & update Chinese translations
2021-11-18 10:03:26 +01:00
maxnet
c662c16d5b
Merge pull request #249 from JofreFaraudo/qml
Add Catalan translations
2021-11-18 10:02:51 +01:00