Add sync after installation completed (#3569)

This commit is contained in:
Daniel Girtler 2025-06-02 21:50:34 +10:00 committed by GitHub
parent 92b384d1d3
commit 18ef716b0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -138,6 +138,8 @@ class Installer:
# Return None to propagate the exception
return None
self.sync()
if not (missing_steps := self.post_install_check()):
msg = f'Installation completed without any errors.\nLog files temporarily available at {logger.directory}.\nYou may reboot when ready.\n'
log(msg, fg='green')
@ -155,6 +157,10 @@ class Installer:
self.sync_log_to_install_medium()
return False
def sync(self) -> None:
info(tr('Syncing the system...'))
SysCommand('sync')
def remove_mod(self, mod: str) -> None:
if mod in self._modules:
self._modules.remove(mod)