Commit graph

782 commits

Author SHA1 Message Date
Tom Dewey
fc9423e65b deps: zlib upgrade 1.2.13 -> 1.3.1 2024-09-11 17:12:48 +01:00
Tom Dewey
61171a0db6 deps: Upgrade libarchive 3.6.2->3.7.4 2024-09-11 17:12:48 +01:00
Tom Dewey
c2ed524e44 gitignore: Ignore macOS DS_Store files 2024-09-11 17:12:48 +01:00
Alistair Buxton
7725ce7a40 Linux/OSX: Fix reversed fsync check
This if() condition checks the result of seek, write, flush
and fsync. The first three are methods on QFile, so return
a truthy value on success. write() returns number of bytes
written while seek() and flush() return bool true on success.
Therefore they have to be inverted to detect errors. However,
fsync() is a posix system call, so it returns zero (false) on
success. Therefore it should not be inverted.

Note that currently this entire code block can never run.
knownsize is always zero because QFile.size() currently
cannot determine the size of a block device. However, when I
asked to confirm this behavior, a Qt maintainer decided to
implement it, so there is now a PR. If that is released then
this code block will become live and the reversed fsync check
will cause a problem.

PR: https://codereview.qt-project.org/c/qt/qtbase/+/581443
2024-08-07 11:45:20 +01:00
Jason Kridner
c1c8c5a7dd Fix GPT signature test
gpt.Signature is not a null-terminated string, but an 8-byte character array. Using `strcmp` will not provide a valid result. Use `strncmp` over the first 8 bytes instead.

Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
2024-07-17 10:44:13 +01:00
Tom Dewey
686ad14308 embedded: Change how buildroot patch is applied
- Apply with p1, using a patch generated from git-format-patch.
- Use POSIX 'cd' over 'pushd, popd'
- Use OLDPWD to the find the patch, rather than making assumptions
  about the relative location of it.
2024-06-25 10:10:55 +01:00
Tom Dewey
725d651f96 buildroot: Apply patch inside buildroot directory 2024-06-25 10:10:55 +01:00
Tom Dewey
1c39a198f7 buildroot: Add BCM2712d0 Mesa Patch 2024-06-25 10:10:55 +01:00
Tom Dewey
7e5de45038 buildroot-2024.02.3 2024-06-25 10:10:55 +01:00
Tom Dewey
4c7342af08 bcm2712d0 support 2024-06-25 10:10:55 +01:00
Tom Dewey
98f5f62e91 embedded: Update defconfig, build script 2024-06-25 10:10:55 +01:00
Tom Dewey
eee59445d2 embedded: Favour CoreAppliation over Application 2024-06-25 10:10:55 +01:00
Tom Dewey
c793c34b46 embedded: Use 2024.02.2 2024-06-25 10:10:55 +01:00
ykla
78b7f7418e Add Simplified Chinese translations to the desktop files 2024-06-13 11:44:47 +01:00
ykla
fd9e44f11f The terms related to public keys were replaced with translations more in line with the localization habits of Simplified Chinese. 2024-06-13 11:44:47 +01:00
ykla
6a09f27bea Translate the Simplified Chinese translation of Raspberry Pi Imager to better match the original text. 2024-06-13 11:44:47 +01:00
ykla
ef49eb3dd4 To make Simplified Chinese translations more accurate 2024-06-13 11:44:47 +01:00
ykla
b66496e324 Update zh-CN (Simplified Chinese) translation 2024-06-13 11:44:47 +01:00
ykla
41f504c7a0 Update zh-CN translation 2024-06-13 11:44:47 +01:00
Dave Jones
4b6ee9bb4b localectl doesn't work on modern Debian/Ubuntu [1] [2]
The keyboard: section should be used instead, which should do the right
thing on whatever platform cloud-init is being used on (writes
/etc/default/keyboard on Debian/Ubuntu, uses localectl on RHEL/Fedora,
runs setup-keymap on Alpine).

[1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1038762

[2]: 2030788
2024-06-03 09:57:08 +01:00
Dave Jones
b00815058f Fix timeout on systems with large numbers of loops
On systems with a very large number of snap packages installed, there
are a considerable number of loop devices. In this case, the `lsblk`
command in linuxdrivelist fills the stdout pipe, blocks, and the
rpi-imager process assumes it has timed out [1].

This is a trivial work-around that simply excludes loop devices
(major=7) from the `lsblk` output. Given subsequent code excludes
everything starting with `/dev/loop` anyway, there should be no change
in user experience with this exclusion.

[1]: https://github.com/waveform80/imager-snap/issues/6
2024-05-23 10:25:59 +01:00
Dima
f79a6874d8 Corrected the spelling for Kyiv 2024-05-22 17:30:35 +01:00
Tom Dewey
16c298beb4 cli: Connect disable-eject flag to ImageWriter 2024-05-01 13:38:22 +01:00
Tom Dewey
215099e106 cli: Add disable-eject, rework options specification 2024-05-01 13:38:22 +01:00
Nicolas Martignoni
d825c22fb9
Update French translation (#833) 2024-03-12 15:00:03 +00:00
Tom Dewey
f053d54dfb
Disallow blank issue reports 2024-02-19 14:25:42 +00:00
Tom Dewey
75eb08c2a0
Update issue creation templates (#823)
Rather than providing a free text template, as we've done so far, introduce a form to more stringently require information that we need to debug the problem.
2024-02-19 09:46:09 +00:00
Tom Dewey
6a19fa1938 OS Customisation: Validate usernames
Import the systemd recommended username validation regex.

Resolves a ticket reported to the Raspberry Pi information inbox.
2024-02-14 14:28:41 +00:00
MrSmör
a44b9ae856 Exposing 'DRIVELIST_FILTER_SYSTEM_DRIVES' as a cmake variable
Makes the filtering-behaviour userconfigureable during compile-time.
This way its easier to configure the imager for flashing SATA or NVME
Drives installed in your system (because of lack of adapters),
or if the drives are (accidentally) labled as systemdrives by drivelist.
2024-02-09 15:59:24 +00:00
bovirus
4378127872 Update Italian language 2024-02-07 11:21:28 +00:00
Tom Dewey
38ea837ba7 imagewriter: Use QCoreApplication::translate
tr() is not safe for strings that you move between contexts,
as it fails to provide a mechanism for specifying the context
of the string.

Regenerate the translation files, and use QCoreApplication to locate
the real translations.

Additionally, bodge a race condition between translator replacement
and OS list fetching, by marking the OS list as something to be
re-calculated on a translator change.

Fixes #799
2024-02-06 16:12:05 +00:00
bovirus
1c9c641924 Update Italian language 2024-02-06 13:26:45 +00:00
Jonathan Dahan
cf9ceacfdd Create placeholder translations 2024-02-05 10:11:34 +00:00
Jonathan Dahan
fba63d01a7 Add a message when there are no storage devices. Fixes #798 2024-02-05 10:11:34 +00:00
Joey Riches
ab3b56af12 appstream metainfo: Fix appstream-builder generation
launchable desktop-id type was no longer matching after 06abbadbb5
causing appstream-builder to fail to generate appdata for this package.
2024-01-31 13:40:30 +00:00
Floris Bos
5700ebec08 Linux: pretend UAS drives are always removable
Ref #795
2024-01-29 22:31:09 +01:00
Floris Bos
03f6a9bc30 Linux: don't offer ssh-keygen on embedded platform
Closes #786
2024-01-29 22:27:25 +01:00
Floris Bos
06abbadbb5 Linux: rename .desktop file to match DBus name
Fixes #785
2024-01-20 16:39:13 +01:00
Floris Bos
8c9de2d78c Embedded: fix network detection 2024-01-15 00:16:43 +01:00
Floris Bos
ebe72a4b16 Disable LTO (just in case it gives hard to debug compiler problems) 2024-01-15 00:15:49 +01:00
Floris Bos
6f6a90adbb Fix BSD wifi support
Closes #773
2024-01-06 15:27:14 +01:00
Nicolas Martignoni
602f9170b4 Update French translation 2024-01-05 10:25:01 +00:00
Floris Bos
b918a7ea6f Retry on HTTP/2 frame errors as long as it do is making progress
Ref #767
2023-12-26 16:09:21 +01:00
Floris Bos
26c9dc4dfb Add PL translation to CMakeLists.txt 2023-12-22 21:57:03 +01:00
maxnet
ce36f7fca8
Merge pull request #761 from tdewey-rpi/meta/1.8.4
meta: Release 1.8.4
2023-12-22 21:35:16 +01:00
Tom Dewey
30433d512f meta: Release 1.8.4 2023-12-22 15:37:36 +00:00
Jacek Brzozowski
ffeadef654 Add Polish translation 2023-12-22 14:05:15 +00:00
Tom Dewey
23eadf9afe qml: Use regular password field
But, as a consideration for users wanting to verify their password, add a 2s dwell time before the characters are masked. This timeout is prematurely terminated in the event that you enter another key.
2023-12-18 16:29:55 +00:00
Tom Dewey
9b15f7909b qml: Clear saved password using onPressed handler
Using onTextEdited meant that the clear() call would happen after the edit had actually happened.

Instead, use the Keys.onPressed handler, which happens earlier in the input chain.
2023-12-18 16:29:55 +00:00
Davidmp
d19c7599f7 Update rpi-imager_ca.ts
Correcció
2023-11-23 14:14:20 +00:00