Richard Hughes
64d1a01d42
trivial: Downgrade a configure error() to a warning()
2021-11-15 15:01:22 +00:00
Richard Hughes
31d692f1a2
dfu: Fix all devices that rely on use-any-interface
...
This was a regression caused in aaa77c6f51
.
2021-11-15 15:00:07 +00:00
Richard Hughes
60612294f5
trivial: Use the device GType as the debugging root
...
We never show the fu_device_to_string() output to the user in normal
circumstances, and it's super useful for it to match the FuFirmware
format.
2021-11-15 14:59:52 +00:00
Richard Hughes
3e88040b7f
trivial: Always use a newline when at 100%, even if not idle
2021-11-15 14:59:37 +00:00
Richard Hughes
fca20c0722
trivial: Fix the progress status when required
...
When the child has completed we rely on the next fu_progress_step_done()
call to set the status value back to the parent-defined value. In the
case where there is a delay until the next step is done (e.g. waiting
for hardware to re-enumerate) the child status persisted incorrectly.
2021-11-15 14:59:37 +00:00
Richard Hughes
b932c16b17
Remove the FuEngine::percentage-changed signal
...
Proxying the values is firstly inefficient, in that there were only
three functions in fu-engine.c that did not already have FuProgress
objects passed to them.
Secondly, processing the 'status' values from the engine meant that we
reset the percentage value to 0 for a split second, which made the
progress bar jump back to zero for one frame making it flicker.
Just make it all simpler and use FuProgress directly.
2021-11-15 14:59:37 +00:00
Richard Hughes
99e903669a
Revert "Wait for device reboot when using fwupdtool detach"
...
This reverts commit 448772b73e
.
2021-11-15 12:21:32 +00:00
ml
61b575856d
fwupdtool: Show get-details command argument FILE
2021-11-15 06:55:18 +00:00
ml
abcea90ba8
firmware_packager.py: Fix templated values in XML
2021-11-14 19:55:25 -06:00
Richard Hughes
5f01678daa
Use -Doffline=false to reduce the install size by over 100Kb
...
If there's no SuperIO chip then there's no need to support this.
2021-11-12 21:06:34 +00:00
Richard Hughes
e840e9c23b
Use -Dfish_completion=false to reduce the install size by a few more Kb
2021-11-12 21:06:34 +00:00
Richard Hughes
34d531074c
Use -Dmetainfo=false to reduce the install size by over 100Kb
2021-11-12 21:06:34 +00:00
Richard Hughes
da4f50ccf0
dfu: Fix replugging when using dfu-tool to flash hardware
...
All kinds of things break when using more than one GUsbContext at the
same time.
2021-11-12 15:27:01 +00:00
Richard Hughes
f9cba32625
dfu: Fix critical warning when using dfu-tool
...
Actually connect to the correct object.
Fixes https://github.com/fwupd/fwupd/issues/3975
2021-11-12 15:27:01 +00:00
Richard Hughes
b87a909223
trivial: Do not show a critical warning is LANG is unset
2021-11-12 15:26:31 +00:00
Richard Hughes
2b37ec4afc
Fix critical warning when /etc/machine-id does not exist
2021-11-12 12:45:52 +00:00
Richard Hughes
68722ec6e4
redfish: Set SSL_VERIFYHOST=0 to fix OpenBMC auth
2021-11-11 20:47:20 +00:00
Richard Hughes
5a95cf61d8
redfish: Fix crash when specifying a URL without a port
2021-11-11 20:47:20 +00:00
Crag Wang
23e194413a
dell-dock: remove require-ac flag as dock supplies the power
2021-11-11 15:55:04 +00:00
Richard Hughes
4f3e2c3a57
Allow overriding HwId data from the config file
...
To use this on a immutable system like ChromeOS you can create a file
in /var/lib/fwupd/daemon.conf which is used as an override.
2021-11-10 17:59:52 +00:00
Richard Hughes
2c72b24978
thunderbolt: Use fu_device_inhibit() to correctly use UPDATABLE_HIDDEN
...
By not exposing either UPDATABLE or UPDATABLE_HIDDEN the device is
hidden in gnome-firmware. Do what all the other devices do.
2021-11-10 17:23:25 +00:00
Richard Hughes
c1f7ac47e8
tpm: Actually add the v1.2 device
...
Also, add end-to-end tests for this so it can never happen again.
Fixes https://github.com/fwupd/fwupd/issues/3972
2021-11-10 14:08:08 +00:00
Yehezkel Bernat
86286c3efd
trivial: remove outdated comment
...
This comment became outdated with #3940 , where the `NULL` check for `priv->ctx` that followed by early return was removed
2021-11-09 20:20:03 +00:00
Ross Burton
774a7098ad
build: check that outb is present in io.h
...
The flashrom plugin can use inb/outb to do a CMOS reset. The build gates
this on whether io.h exists (since bc43ad) as with glibc if io.h exists,
inb/outb are defined. However on musl, io.h always exists but it may not
define inb/outb.
Thus, fwupd builds with musl on non-x86 platforms will fail to link. Fix
this by checking for both io.h and that outb() is defined.
Signed-off-by: Ross Burton <ross.burton@arm.com>
2021-11-09 14:13:03 -06:00
Richard Hughes
683fae6be3
nvme: Fix the Samsung vendor to avoid showing junk in the UI
2021-11-09 16:09:16 +00:00
Richard Hughes
ae278e1b80
Be case insensitive when fixing the device model
2021-11-09 16:09:16 +00:00
Richard Hughes
e87fc05ab9
Speed up the daemon startup by ~2% by doing dlsym much less
...
We were calling g_module_symbol() 2703 times, which is actually more
expensive than you'd think.
It also means the plugins are actually what we tell people they are:
A set of vfuncs that get run. The reality before that they were dlsym'd
functions that get called at pretty random times.
2021-11-09 12:02:07 +00:00
Richard Hughes
4d63d4ad7c
Use g_subprocess_communicate() to fix IPFS downloads
...
Since switching to a custom GMainContext we broke reading the stream of
the GSubprocess.
2021-11-09 09:22:18 +00:00
Richard Hughes
09b946cb40
trivial: Fix ctrl+c when downloading with IPFS
2021-11-09 09:22:18 +00:00
Richard Hughes
eb508129a8
trivial: Remove devices already added on failed coldplug
...
Calling into the now-disabled makes things very tricky to debug.
2021-11-09 07:42:05 +00:00
Richard Hughes
bab0778e78
uefi-capsule: Skip devices that fail coldplug
...
This means that if the user has a single ESRT entry with a GUID of
00000000-0000-0000-0000-000000000000 then none of them work correctly.
Fixes https://github.com/fwupd/fwupd/issues/3950
2021-11-09 07:42:05 +00:00
Richard Hughes
37a5787229
logitech-hidpp: Set the vendor name in more places
2021-11-08 15:56:17 +00:00
Richard Hughes
764df76d34
Allow overriding the firmware GType from a quirk file
...
This also allows us to remove quite a lot of boilerplate from plugins.
2021-11-08 15:53:41 +00:00
Richard Hughes
36d7077f65
Add a new plugin to handle MTD devices
2021-11-05 20:01:51 +00:00
Richard Hughes
54f1557a81
trivial: Add some Impact sections to HSI attributes
2021-11-05 16:54:17 +00:00
Richard Hughes
ed419416d5
Allow setting the FuUdevDevice bind-id at runtime
2021-11-05 15:00:10 +00:00
Richard Hughes
e452f46309
trivial: Fix version typo in HSI specification
2021-11-05 14:53:11 +00:00
Richard Hughes
15d41d10ed
trivial: Use more standard English in the HSI specification
2021-11-05 14:53:11 +00:00
Richard Hughes
448772b73e
Wait for device reboot when using fwupdtool detach
2021-11-05 14:47:11 +00:00
Ross Burton
a346c582cc
installed-tests: use sh instead of bash
...
fwupdmgr.sh uses [[ ]] tests, but none of the functionality offered by
them.
Use traditional [ ] tests, and switch the interpreter to /bin/sh.
2021-11-05 12:16:23 +00:00
Ross Burton
3147fef735
uefi-capsule: use /bin/sh in grub hook
...
Use . instead of source as source is a bashism.
Use /bin/sh as the interpretter as there are no strict bashisms in the
hook.
Ideally the shell expansion using `` is changed to $(), but the escaping
behaviour is complex and dash/busybox sh both support ``.
2021-11-05 12:16:23 +00:00
Richard Hughes
1507055849
trivial: Use GObject notify when modifying the proxy
2021-11-05 12:00:48 +00:00
Richard Hughes
c33483a279
vli: Fix a tiny memory leak on idle exit
2021-11-05 12:00:42 +00:00
Richard Hughes
ba2d82cb1d
uefi-recovery: Set the device context to remove a daemon warning
2021-11-05 12:00:35 +00:00
Richard Hughes
02222a58c8
trivial: Add FU_UDEV_DEVICE_FLAG_OPEN_SYNC for future code
2021-11-05 08:01:25 +00:00
Richard Hughes
0fb2ef3aae
trivial: Add fu_udev_device_seek() for future code
2021-11-05 08:01:25 +00:00
Richard Hughes
fe180cbf5d
trivial: Add fu_udev_device_get_sysfs_attr_uint64() for future code
2021-11-05 08:01:25 +00:00
Richard Hughes
5dd2453012
Use a prepared query to improve startup speed by another 5%
2021-11-04 15:08:05 +00:00
Richard Hughes
9d6f862e14
trivial: Search all the GUIDs just once to speed up startup by 2%
...
We have to do a 2nd pass of all devices if the metadata or config file
changed, but we don't need to requery the silo at startup.
2021-11-04 15:08:05 +00:00
Richard Hughes
a32773efab
Use indexes with the XPath query to speed up startup by 2%
2021-11-04 10:09:17 +00:00