Run slapprepare -u when running slapupdate.

parent 48f7e482
...@@ -173,6 +173,9 @@ def update_system (): ...@@ -173,6 +173,9 @@ def update_system ():
""" Dist-Upgrade of system """ """ Dist-Upgrade of system """
_call(['zypper','--gpg-auto-import-keys','dup','-ly'], stdout = None) _call(['zypper','--gpg-auto-import-keys','dup','-ly'], stdout = None)
def update_slapprepare_scripts ():
""" Run slapprepare -u (script that upgrade boot scripts and so on) """
_call(['slapprepare','-u'], stdout = None)
def download_info_from_networkcache(path,slapos_conf): def download_info_from_networkcache(path,slapos_conf):
""" """
...@@ -264,6 +267,7 @@ def update_machine(config): ...@@ -264,6 +267,7 @@ def update_machine(config):
# Check if dist-upgrade is needed # Check if dist-upgrade is needed
if suse_version() < config.opensuse_version: if suse_version() < config.opensuse_version:
logger.info("We will now upgrade your system") logger.info("We will now upgrade your system")
update_slapprepare_scripts()
update_system() update_system()
os.system('reboot') os.system('reboot')
else : else :
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment