From 18ef716b0fd69b2a2722ee1996258e8256a32b59 Mon Sep 17 00:00:00 2001 From: Daniel Girtler Date: Mon, 2 Jun 2025 21:50:34 +1000 Subject: [PATCH] Add sync after installation completed (#3569) --- archinstall/lib/installer.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index f6a544c1..51ab6443 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -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)