You are not logged in.

#1 2024-06-22 22:53:58

eomanis
Member
Registered: 2013-04-17
Posts: 67

[SOLVED] How do I reset fwupd to its initial state, i.e. clear its da…

SOLVED

tl;dr
Run "fwupdtool clear-history".
To verify that the data in the report has been fixed you can print a new one to the terminal with "fwupdtool get-report-metadata".

-------------------------------------

I have cloned my Arch installation from PC A to PC B. After that was done I wanted to see if there are firmware updates for PC B, so I ran `fwupdmgr get-updates`.

After listing available updates it asked me whether I would like to upload a report, and I thought "why not".
However, when skimming the report, I noticed it basically lists the old hardware from PC A.

That does not sit well with me. What if fwupd tries to apply a firmware update that is intended for PC A to the new PC B? It could brick things.

How do I make fwupd "forget everything" and start from scratch?
I swear, I have been googling for 30 minutes straight and I have yet failed to achieve this.

What I tried: Stop fwupd.service, delete everything in /var/cache/fwupd/, and reboot PC B.
Unfortunately the report still lists the hardware from PC A.
Where is that stored so that I may exorcise this wrong information from the fwupd application data?

Last edited by eomanis (2024-06-25 19:27:45)

Offline

#2 2024-06-24 09:06:18

impossibleveins23
Member
From: Israel
Registered: 2022-06-18
Posts: 171

Re: [SOLVED] How do I reset fwupd to its initial state, i.e. clear its da…

Did you try:

fwupdmgr clear-results
fwupdtool clear-history

* Good formatted problem description will cause good and quick solution smile
* Please don't forget to mark as [SOLVED].

Offline

#3 2024-06-25 19:23:26

eomanis
Member
Registered: 2013-04-17
Posts: 67

Re: [SOLVED] How do I reset fwupd to its initial state, i.e. clear its da…

I did "fwupdtool clear-history", which produced no output, so I assume it worked as intended.

"fwupdmgr clear-results" launches a text user interface where I can select a device. The devices listed do seem to be all "real" devices from PC B.
I tried two times selecting one of them and both times got this error:

Failed to find <UUID of device> in history database: No devices found

I presume that may have been caused by clearing the history beforehand.

By reading the output of "fwupdtool --help" I found out how to retrieve the hardware report: "fwupdtool get-report-metadata".
Now the report indeed lists PC B's hardware, as expected.

Thanks for the assistance.

Offline

Board footer

Powered by FluxBB