Commit Graph

9633 Commits

Author SHA1 Message Date
Richard Hughes
66b69827b9 Release fwupd 0.1.4 2015-07-25 14:01:11 -05:00
Richard Hughes
9a5bacbc5a trivial: Fix make distcheck 2015-07-25 14:01:05 -05:00
Richard Hughes
324b49d6a1 trivial: post release version bump 2015-07-25 14:54:03 +01:00
Richard Hughes
578a195094 Release fwupd 0.1.4 2015-07-25 14:52:14 +01:00
Richard Hughes
31477cf4e7 trivial: Fix make distcheck 2015-07-25 14:51:36 +01:00
Mario Limonciello
221f7878f9 drop all patches upstream now 2015-07-24 12:14:32 -05:00
Mario Limonciello
e4177a7ad8 Add ITP bug to debian/changelog 2015-07-24 12:14:32 -05:00
Mario Limonciello
68ed437648 create a directory so that fwupdmgr refresh works 2015-07-24 12:14:32 -05:00
Mario Limonciello
48cb8fa12f add a few missing files from current upstream code 2015-07-24 12:14:32 -05:00
Mario Limonciello
803fc98d1f Merge branch 'master' into debian 2015-07-24 12:14:27 -05:00
Mario Limonciello
3ed5447c92 Reload appstream data after refreshing. 2015-07-23 19:01:15 -05:00
Mario Limonciello
a570bb5195 Fallback to offline install when calling the update argument.
The fallback support is currently only present in the regular
install argument.

Signed-off-by: Richard Hughes <richard@hughsie.com>
2015-07-23 20:40:52 +01:00
Richard Hughes
69fa1d37e9 trivial: Prepend the SHA hash to the uploaded firmware file
We don't want to enforce a filename policy on vendors.
2015-07-23 10:36:49 +01:00
Richard Hughes
0950db9340 Only sign files when the entire file has been copied
For large files, EVENT_CREATED gets emitted when the first chunk hits the disk,
not when the file has finished copying. To fix, just wait for the file monitor
to hint that all the changes in the operation have happened and then process
the firmware files.
2015-07-23 09:15:28 +01:00
Richard Hughes
152670a371 Increase the size limit of firmware to 50Mb 2015-07-23 09:13:58 +01:00
Richard Hughes
e70f12af9e trivial: Allow parsing unsigned firmware 2015-07-22 17:42:41 +01:00
Richard Hughes
e97261ab3d trivial: rename 'update-metadata' to 'refresh' now we have an 'update' command 2015-07-22 10:36:00 +01:00
Richard Hughes
777917ef21 Add a 'fwupdmgr update' command to update all devices to latest versions
This downloads the latest version of the firmware and applies it to any
matching hardware. e.g.

$ fwupdmgr update
Downloading 1.2.3 for ColorHug...
Updating 1.2.3 on ColorHug...
 * Loading firmware
 * Decompressing firmware
 * Restarting device
 * Writing firmware to device
 * Verifying firmware from device
 * Restarting device
Done!
2015-07-22 10:36:00 +01:00
Richard Hughes
ade063b0df Allow installing an offline UEFI update without --offline
The way this works is we try with the user settings, and if this fails with
NotSupported and the offline flag is unset then we retry the action with a
warning and the flag manually set.

I chose to do this in the client rather than the daemon as I don't want to
encode too many magic rules when we don't know the kind of devices that will
appear in the future.

Fixes the other half of https://github.com/hughsie/fwupd/pull/23
2015-07-22 10:36:00 +01:00
Richard Hughes
63a407ab34 Change the DBus method for installing firmware to 'Install'
It seems a little odd to call it 'Update' when it's being used for downgrading
and reinstalling as well.

As we're making things simpler, just use a single 'install' action in fwupdmgr
rather than 'install', 'update-online', 'update-offline'. We can use the flags
and fallbacks to do the right thing in all cases, and make the typical case
(installing a local file to any matching hardware) simple.

Fixes half of https://github.com/hughsie/fwupd/pull/23
2015-07-22 10:36:00 +01:00
Richard Hughes
7708a0f3fd Move GetUpdates to the daemon
This only returns the latest version, if you actually need to know details
about all versions including downgrades then you still need to load the
AppStream metadata and match devices manually.
2015-07-22 10:35:05 +01:00
Richard Hughes
0daed7c259 Do not use the file hash when storing the LVFS submitted firmwares
This means we can't easily map between the MetaInfo entry and the file itself.
2015-07-22 10:03:36 +01:00
Richard Hughes
ecbc06ff3d trivial: Add fwsignd systemd service file which was not added 2015-07-22 10:03:36 +01:00
Mario Limonciello
5db04e5d84 Adjust recommends to pull in fwupdate from fwupd 2015-07-21 12:56:18 -05:00
Richard Hughes
2b60a33c8f Do not merge existing LVFS metadata
If we change the filenames or hash values we don't want duplicate locations.
2015-07-21 17:19:54 +01:00
Richard Hughes
0b8d461099 trivial: Use the correct error codes when failing to download metadata 2015-07-21 13:27:10 +01:00
Richard Hughes
ebaf7ba035 Allow running fwsignd as the non-root user
...however, most users will still want to use the root user so that the owner
and group are set correctly on the destination files.
2015-07-21 13:24:26 +01:00
Richard Hughes
0bdd5cbcb8 Use the actual LVFS GPG key 2015-07-21 13:24:26 +01:00
Richard Hughes
b48e385922 Associate the contact email address directly with the vendor key
Also add a page to add and deactivate vendors.

Fixes: https://github.com/hughsie/fwupd/issues/25
2015-07-20 21:48:55 +01:00
Mario Limonciello
28b8151ca0 Don't call efibootmgr after fwupdate.
fwupdate will handle creating the appropriate BootNext entry.
No other changes are needed from fwupd.

Signed-off-by: Richard Hughes <richard@hughsie.com>
2015-07-20 16:21:24 +01:00
Richard Hughes
c7cf166a2f Automatically download metadata using fwupdmgr if required
Using no arguments to 'fwupdmgr update-metadata' means we use the network.
2015-07-20 16:19:20 +01:00
Richard Hughes
691e02d652 Add a simple signing server that operates on .cab files 2015-07-20 15:31:10 +01:00
Richard Hughes
1a886b1b76 Allow cab files to be saved
This means reworking the way we load the file as we have to keep the full
filelist in case we have to re-extract and save each and every file.
2015-07-20 15:31:05 +01:00
Richard Hughes
eec19e760d Add the ability to create detached signatures 2015-07-20 15:30:48 +01:00
Richard Hughes
60a7210318 Move the LVFS website to the fwupd project 2015-07-20 15:07:24 +01:00
Mario Limonciello
6c240d0637 update patchset to what's being submitted upstream at https://github.com/hughsie/fwupd/pull/23 2015-07-16 15:14:16 -05:00
Mario Limonciello
6ca673cb2a include some patches that have been submitted upstream that make the full flow for uefi work properly: https://github.com/hughsie/fwupd/pull/22 2015-07-15 17:02:34 -05:00
Mario Limonciello
4ff82a7818 Add missing locale files to fwupd 2015-07-14 10:57:18 -05:00
Mario Limonciello
eab9e5e08b add missing fwupd binary to package 2015-07-13 23:46:16 -05:00
Richard Hughes
8ffbd403cb Fix ROM PPID searching to work for all ROMs 2015-07-08 14:28:53 +01:00
Richard Hughes
f720e9fe92 trivial: Do not add an extra ROM section for a NUL padded ROM 2015-07-05 21:13:43 +01:00
Richard Hughes
57a31bc98d Fix the example .inf file to reflect reality
I misunderstood the role of the ClassGuid for UEFI firmware. It is not supposed
to be the ESRT GUID, but instead a generic 'firmware' GUID set by Microsoft.

We fall back to the old method in libappstream-glib, so either format is fine.
2015-07-03 17:14:47 +01:00
Richard Hughes
fe68ff584f Make the version parsing more resilient to corrupt firmware 2015-07-03 12:37:56 +01:00
Richard Hughes
53fc7961dc trivial: Remove a magic number introduced with the last patch 2015-07-01 14:12:15 +01:00
Richard Hughes
885128a7c8 Keep hitting the hardware until it gives us enough ROM 2015-07-01 14:06:28 +01:00
Richard Hughes
5e330b0f0c Fix trivial bug when parsing firmware versions 2015-07-01 13:30:23 +01:00
Richard Hughes
46535115ee trivial: Remove debug info that snuck in 2015-07-01 13:05:01 +01:00
Richard Hughes
5dc6f5ccfc Add a 'verify-update' command to fwupdmgr
This allows us to do something like:

    $ fwupdmgr verify
    e9b8eebd-b5f8-18d4-9fbd-d7da7711985c	f21e1d2c969dedbefcf5acfdab4fa0c5ff111a57	No metadata
    $ find /sys/devices -name rom -exec sudo fwupdmgr verify-update /var/cache/app-info/xmls/fwupd-verify.xml {} \;
    $ fwupdmgr verify
    e9b8eebd-b5f8-18d4-9fbd-d7da7711985c	f21e1d2c969dedbefcf5acfdab4fa0c5ff111a57	OK
    $ # flash the firmware
    $ fwupdmgr verify
    e9b8eebd-b5f8-18d4-9fbd-d7da7711985c	5c946b3950deaf7b102e75be488052afd4dcf16	        Failed: for v013.012.000.019.000000 expected f21e1d2c969dedbefcf5acfdab4fa0c5ff111a57
2015-07-01 12:16:09 +01:00
Richard Hughes
826a5698e3 trivial: Always return the verification hash for the first verify run
The property is being cached, so re-request the list of devices.
2015-07-01 12:07:07 +01:00
Richard Hughes
5e33bccd54 Accept multiple files at one time when using fwupdmgr dump-rom 2015-07-01 11:53:33 +01:00