Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions archinstall/lib/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseExceptio
# 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')
Expand All @@ -155,6 +157,10 @@ def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseExceptio
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)
Expand Down