update-linux 3.5.2__tar.gz → 3.5.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {update_linux-3.5.2 → update_linux-3.5.3}/PKG-INFO +1 -1
- {update_linux-3.5.2 → update_linux-3.5.3}/src/update_linux/__init__.py +21 -19
- {update_linux-3.5.2 → update_linux-3.5.3}/src/update_linux.egg-info/PKG-INFO +1 -1
- {update_linux-3.5.2 → update_linux-3.5.3}/LICENSE +0 -0
- {update_linux-3.5.2 → update_linux-3.5.3}/README.md +0 -0
- {update_linux-3.5.2 → update_linux-3.5.3}/pyproject.toml +0 -0
- {update_linux-3.5.2 → update_linux-3.5.3}/requirements.txt +0 -0
- {update_linux-3.5.2 → update_linux-3.5.3}/setup.cfg +0 -0
- {update_linux-3.5.2 → update_linux-3.5.3}/src/update_linux/__main__.py +0 -0
- {update_linux-3.5.2 → update_linux-3.5.3}/src/update_linux.egg-info/SOURCES.txt +0 -0
- {update_linux-3.5.2 → update_linux-3.5.3}/src/update_linux.egg-info/dependency_links.txt +0 -0
- {update_linux-3.5.2 → update_linux-3.5.3}/src/update_linux.egg-info/entry_points.txt +0 -0
- {update_linux-3.5.2 → update_linux-3.5.3}/src/update_linux.egg-info/requires.txt +0 -0
- {update_linux-3.5.2 → update_linux-3.5.3}/src/update_linux.egg-info/top_level.txt +0 -0
|
@@ -9,7 +9,7 @@ import tempfile
|
|
|
9
9
|
import json
|
|
10
10
|
from config_path import ConfigPath # type: ignore
|
|
11
11
|
|
|
12
|
-
VERSION = '3.5.
|
|
12
|
+
VERSION = '3.5.3'
|
|
13
13
|
|
|
14
14
|
default_json_config_template = u'''{
|
|
15
15
|
"group":
|
|
@@ -671,30 +671,32 @@ class UpdatePluginFedora:
|
|
|
671
671
|
self.app.checkServices( host, status_log_name )
|
|
672
672
|
|
|
673
673
|
def systemUpgrade( self, host, target_release, upgrade_log_name ):
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
674
|
+
while True:
|
|
675
|
+
current_release = self.releaseInfo( host )
|
|
676
|
+
if current_release >= target_release:
|
|
677
|
+
self.app.info( host, 'Already running release %d' % (current_release,) )
|
|
678
|
+
return
|
|
678
679
|
|
|
679
|
-
|
|
680
|
+
self.app.info( host, 'Currently release %d' % (current_release,) )
|
|
680
681
|
|
|
681
|
-
|
|
682
|
-
|
|
682
|
+
# only update by one release at a time
|
|
683
|
+
next_release = current_release + 1
|
|
683
684
|
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
685
|
+
cmd = ['dnf', 'system-upgrade', 'download', '--releasever=%d' % (next_release,), '--assumeyes']
|
|
686
|
+
rc, stdout = self.app.runAndLog( host, cmd )
|
|
687
|
+
self.app.writeLines( upgrade_log_name, stdout )
|
|
687
688
|
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
689
|
+
if rc != 0:
|
|
690
|
+
self.app.error( host, 'Failure to download release %d' % (next_release,) )
|
|
691
|
+
return
|
|
691
692
|
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
693
|
+
self.app.info( host, 'Rebooting to install system-upgrade' )
|
|
694
|
+
# upgrades of lots of packages can be slow - wait for 45 minutes
|
|
695
|
+
if self.app.reboot( host, ['dnf', 'system-upgrade', 'reboot', '--assumeyes'], wait_limit=45*60 ):
|
|
696
|
+
if not self.app.checkServices( host, upgrade_log_name ):
|
|
697
|
+
return
|
|
696
698
|
|
|
697
|
-
|
|
699
|
+
self.app.info( host, 'Now running release %d' % (self.releaseInfo( host ),) )
|
|
698
700
|
|
|
699
701
|
def releaseInfo( self, host ):
|
|
700
702
|
cmd = ['cat', '/etc/system-release-cpe']
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|