Commit Graph

2018 Commits

Author SHA1 Message Date
Mario Limonciello
ce5ed9ce58 Add bash completion for fwupdmgr 2018-02-28 06:40:59 -06:00
Richard Hughes
8e883407c0 Fix running the self tests when no fwupd is installed
Fixes https://github.com/hughsie/fwupd/issues/409
2018-02-27 14:30:28 -06:00
Mario Limonciello
963dc4245c
uefi: Allow overriding ESP mount point via conf file (Fixes: #421) (#422)
* uefi: Allow overriding ESP mount point via conf file (Fixes: #421)
2018-02-27 14:26:58 -06:00
Ogier Bouvier
620d973fc2 unifying: fix signature writing and parsing for texas bootloader
Signed-off-by: Ogier Bouvier <obouvier@logitech.com>
2018-02-26 11:25:51 +00:00
Robert Ancell
5c535a53ce Generate Vala bindings 2018-02-26 06:04:27 +00:00
Richard Hughes
60a9bded16 trivial: Fix up three typos in error messages 2018-02-23 15:57:30 +00:00
Richard Hughes
34e48634af trivial: Fix a critical warning when checking component requirements 2018-02-23 15:26:15 +00:00
Richard Hughes
efc5abe74e unifying: Fix a tiny memory leak on daemon unload 2018-02-23 13:08:58 +00:00
Richard Hughes
3f0b3f8f24 Only send success and failure reports to the server
We were getting some composite reports with 'needs-reboot' which isn't useful.
2018-02-23 12:55:51 +00:00
Richard Hughes
4ee0836ff3 Use a CNAME to redirect to the correct CDN for metadata
The current CDN (~$100/month) is kindly sponsored by Amazon, but that won't
last forever. In the future we can switch to a 'dumb' provider like BunnyCDN
for 1/10th of the cost.

Use a CNAME we control to make switching CDN providers easy in the future.
2018-02-22 06:21:17 +00:00
Mario Limonciello
a0f9f619ca contrib: Don't declare OS variable in docker run command (Fixes: #413)
Since the containers are ephemeral just declare directly in the Dockerfile
This also simplifies the run command for users building fwupd
2018-02-21 13:30:12 -06:00
Mario Limonciello
d838ae045f trivial: Re-enable the Debian builds 2018-02-21 13:30:12 -06:00
Mario Limonciello
d0b4898912 Rename ubuntu-clang to ubuntu-x86_64
Although it's built with clang, it's the x86_64 variant.
2018-02-21 13:30:12 -06:00
Mario Limonciello
2de274fada contrib/ci: Detect machine type when generating debian/control 2018-02-21 13:30:12 -06:00
Mario Limonciello
02c469052f uefi: Report if UX capsule was supported in the report metadata 2018-02-19 15:06:29 -06:00
Richard Hughes
7b19f7db5b Use a longer timeout when powering back the Thunderbolt device
It seems 2s is not long enough on some hardware. We also get a much better
error message if the device fails to come back online.
2018-02-19 19:02:36 +00:00
Mario Limonciello
5d4d7272cd trivial: travis: re-enable ubuntu CI builds
The efivar transition finished there.
2018-02-19 11:36:19 -06:00
Richard Hughes
fbf17e9c85 Allow devices to use the runtime version when in bootloader mode
Some devices like the Nitrokey use a generic DFU bootloader that reports a
version number unrelated to the version number of the runtime. Add a flag so
that we can set the correct version when switching plugins during detach and
attach.
2018-02-16 18:23:07 +00:00
Richard Hughes
3c94eb0909 trivial: Don't remove all flags when the device is removed
We only really want to say 'the device is no longer updatable' and other flags
on the device (for instance, if it was locked) might still be useful.
2018-02-16 18:23:07 +00:00
Mario Limonciello
6a029ba2f6 trivial: 386 will fail too, only do s390x 2018-02-14 16:15:55 -06:00
Mario Limonciello
7af8d4cb70 trivial: disable deb builds for now
there is a transition going on with efivar and they won't yield
useful data until it's done
2018-02-14 16:12:26 -06:00
Mario Limonciello
7f458e67dd Update VCS URL for debian packaging 2018-02-14 16:01:10 -06:00
Mario Limonciello
1d2a243978 contrib/ci: explicitly require at least fwupdate 10-3 to build
efivar 34-1 is needed to fix the ux_capsule_guid symbol
2018-02-14 16:00:10 -06:00
Richard Hughes
3698deb351 trivial: post release version bump 2018-02-14 20:04:30 +00:00
Richard Hughes
1ef028121e Release fwupd 1.0.5 2018-02-14 19:58:36 +00:00
Richard Hughes
849914e642 trivial: Don't keep asking the user if they want to report firmware
Don't optimize the device flag away. We need to be able to set the flag on all
devices that match the device ID, not just the one that happens to match now.
2018-02-14 19:57:27 +00:00
Mario Limonciello
ef5305ddeb contrib/ci: Place all build results in dist/ 2018-02-14 09:12:55 -06:00
Richard Hughes
321f77a07f Use the default value if ArchiveSizeMax is unspecified in daemon.conf
Fixes: https://github.com/hughsie/fwupd/issues/405
2018-02-14 12:55:45 +00:00
Richard Hughes
919f8ab910 trivial: Do no assert if we try to read from a fd with zero maximum size 2018-02-14 12:55:45 +00:00
Richard Hughes
271f68b740 trivial: Fix critical warning when reporting history against a broken server 2018-02-14 12:45:40 +00:00
Mario Limonciello
bd60825749 libfwupd: Allow skipping machine ID self test (Fixes #403)
Some sandbox environments won't allow creating this file, so skip
this test.

We're still running it on all Travis CI test cases though.
2018-02-14 07:00:36 +00:00
Richard Hughes
29a9e4f105 trivial: Show the 'known issue' URI by searching the message
If the report replaces an existing report we'll get two messages.
2018-02-13 20:36:58 +00:00
Mario Limonciello
238d14669f ci: Drop unneeded perl-sgmls dependency 2018-02-13 14:13:49 -06:00
Bruno Pagani
2c96c630eb ci: Remove an unneeded dep for building on Arch
perl-sgml is not required anymore since docbook has been removed.
2018-02-13 14:13:49 -06:00
Mario Limonciello
911925642f contrib: re-enable test suite on arch (Fixes #370)
Arch has a new umockdev now with the fixes
2018-02-13 14:13:49 -06:00
Mario Limonciello
a9d7c365d7 contrib: Install new arch keyring package immediately (Fixes #399)
Fixes problems with umockdev package signed with a key not in base.
2018-02-13 14:13:49 -06:00
Mario Limonciello
a076c81a07 uefi: Log the efivar library version too into the report 2018-02-13 19:19:11 +00:00
Mario Limonciello
b27639ae9f uefi: Save SecureBoot status into debug log and LVFS report 2018-02-13 09:18:30 -06:00
Mario Limonciello
335c30ebd2 fu-util: Add fwupdate version to --version output 2018-02-13 09:18:30 -06:00
Mario Limonciello
44ebdb82d4 fu-engine: Clarify which devices don't have upgrades (Fixes #397) 2018-02-12 16:26:01 -06:00
Richard Hughes
50aea367b7 thunderbolt: Enforce the thunderbolt version is xx.yy
Fixes: https://github.com/hughsie/fwupd/issues/387
2018-02-12 12:48:13 -06:00
Richard Hughes
c9cdf1dfc8 Show the user a URL when they report a known problem
Resolves half of https://github.com/hughsie/lvfs-website/issues/43
2018-02-12 16:08:43 +00:00
Richard Hughes
7ec355ed94 Support split cabinet archives as produced by Windows Update
I assume they're trying to avoid compressing the firmware, but compressing the
metadata. Not insane, but slightly odd given the metadata is typically tiny.

Fixes: https://github.com/hughsie/fwupd/issues/392
2018-02-09 21:09:09 +00:00
Mario Limonciello
1b907a7d25 Drop docbook dependencies 2018-02-09 17:26:18 +00:00
Mario Limonciello
2c43d3e6e6 use help2man for dfu-tool too 2018-02-09 17:26:18 +00:00
Richard Hughes
9b8eef4ccc trivial: Allow setting reported flags in the database 2018-02-09 16:55:09 +00:00
Richard Hughes
4082d3367b Correctly mark updates as successful even if the device version number is wrong
If the device firmware was set incorrectly make then set it to the release
version so the database update works correctly. We can't do any kind of vercmp
in the database, so use a daemon warning so we can either fix the plugin or
the XML.

This fixes up the issue that the hardware reports '28.00' and the AppStream
release specifies '28.0'.

Fixes: https://github.com/hughsie/fwupd/issues/387
2018-02-09 16:55:09 +00:00
Mario Limonciello
a31895b316 thunderbolt: Report safe mode and native in success/fail 2018-02-09 14:43:56 +00:00
Richard Hughes
c0cd023d31 Be more careful deleting and modifying device history
If this happens:

1.2.3 -> 1.2.4 = failure
1.2.3 -> 1.2.5 = success

...we want to preserve both in the history database so they can both be shared
with the LVFS. Use the device ID and the new and old firmware versions when
modifying and deleting entries.

This fix is made slightly more tricky as we have to drop the PRIMARY KEY
attribute on the device_id, and due to a limitation in SQLite, it means copying
the old history into a new table.
2018-02-07 10:20:19 +00:00
Richard Hughes
65e44cac96 Always return useful information when calling GetResults()
Previous to having the history database we could only notify about firmware that
as installed using the uefi plugin, as that had a few system-wide API calls to
say 'this update failed' or 'this was the error'.

Now we have the local history database not only can we report more details about
the UEFI update (e.g. the old version number) but we can also offer the same
functionality for all other plugins.

Although this does rework how the data for GetResults() is populated, it does
make the FuEngine object quite a lot less confused.

It also fixes a warning in the fwupd plugin for gnome-software, which was
expecting the FwupdRelease to be populated for the FwupdDevice.
2018-02-07 10:20:19 +00:00