Bug 1295553 - FutureFeature: Change Offline System Updates to Reboot Once
FutureFeature: Change Offline System Updates to Reboot Once
Product: Fedora
Classification: Fedora
Component: systemd (Show other bugs)
All Linux
unspecified Severity low
: ---
: ---
Assigned To: systemd-maint
Fedora Extras Quality Assurance
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2016-01-04 15:02 EST by Joseph D. Wagner
Modified: 2016-02-10 08:40 EST (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-02-10 08:40:36 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Joseph D. Wagner 2016-01-04 15:02:24 EST
Description of problem: I have a dual boot system with LUKS.  When it reboots, I need to babysit it.  Currently, offline system updates:
 1) Reboots into system-update.target (so that all file systems are mounted but little else is running)
 2) Performs the update.
 3) Reboots second time (in case something in the base system was changed).

See http://freedesktop.org/wiki/Software/systemd/SystemUpdates/ for a more detailed description of the current process.

Proposed Change:
Change the shutdown/reboot process as follows:
1) All daemons/services are shutdown (shutdown.target)
2) **** Perform update here. ****  <= NEW
3) File systems are unmounted (umount.target)
4) System reboot/poweroff/halt (final.target)

1) Reboots are reduced from two to one.
2) The only services still running at that point should be the same services as now when it boots into system-update.target.  Hence, the risks should be the same.
3) The shutdown process may need to be changed to allow long-running processes in proposed step #2.  It can't kill the update process thinking that shutdown is taking too long.
Comment 1 Lennart Poettering 2016-02-10 08:40:36 EST
Sorry, but no. We do this excercise primarily to get the system into a defined state before update, and hence we reboot first. It's kinda the whole idea of the offline update concept.

Note You need to log in before you can comment on or make changes to this bug.