Do not install upgrades while the session is running it fucks things up. Instead update via systemd on bootup. Tech there. Needs looking into and implementation. Also might need checking with VDG first on whether this is really behavior we want. Also btrfs or zfs kind of need using by default to make this work reasonably since rollbacks are a major concern.
https://phabricator.kde.org/D2044
https://bugs.kde.org/show_bug.cgi?id=364897
Relevent bits of documentation
- systemd: https://www.freedesktop.org/wiki/Software/systemd/SystemUpdates/
- fedora has this: https://fedoraproject.org/wiki/Features/OfflineSystemUpdates
- packagekit: https://github.com/hughsie/PackageKit/blob/master/docs/offline-updates.txt
Requirements
- Discover to have a switch to enable offline-updates (either buildtime or runtime)
- Discover to have UI feedback that the user needs to restart the computer to install the updates
- Plymouth to give install feedback (this should already be implemented)
- Neon to default to BTRFS or ZFS, to do offline updates efficiently and safely we need to be able to properly rollback which requires a snapshot supporting filesystem.