Bug 440078 - Support disabling updates on live system
Summary: Support disabling updates on live system
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: 5.22.3
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-20 15:15 UTC by Alex
Modified: 2023-01-12 18:11 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex 2021-07-20 15:15:31 UTC
At the moment, when using Discover on a live system, you're able to install updates, which shouldn't be allowed. On a live system, discover should still be able to install and uninstall apps, but not perform system updates.

So maybe this could just be a configuration option which hides the update option on the left pane.

I originally filed this issue downstream here https://pagure.io/fedora-kde/SIG/issue/60
Comment 1 Neal Gompa 2021-07-20 23:44:43 UTC
Discover can "discover" (lol) from the kernel command-line whether or not we're running on live OSes by looking at kernel args to see if "rd.live.image" is in the kernel command-line. Discover can self-disable by default when that is present in the kernel command line.
Comment 2 Rex Dieter 2021-07-29 13:55:18 UTC
I'm not necessarily convinced this is a good idea.  Live users should be able to update/install items if they wish (even if it's not necessarily a good idea)
Comment 3 Nate Graham 2023-01-12 18:11:10 UTC
Discover offers support for "Offline Updates" which implements this feature.

Distros get to choose whether it's on or off by default, and a number have opted in--at least Fedora and Neon, off the top of my head. Users can also opt in if their distro doesn't do this.