From 0821513ca4b48e7b67c37933f683c8b18613f29a Mon Sep 17 00:00:00 2001 From: codefiles <11915375+codefiles@users.noreply.github.com> Date: Sun, 1 Mar 2026 15:19:11 -0500 Subject: [PATCH] Use os.sync() instead of sync command --- archinstall/lib/installer.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index 0603639add..79b1eb120f 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -144,7 +144,8 @@ def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseExceptio # Return None to propagate the exception return None - self.sync() + info(tr('Syncing the system...')) + os.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' @@ -163,10 +164,6 @@ 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)