From 15c65ff7cecb21fee11efe2f12f65c593f3c9a9f Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sun, 30 Jul 2023 22:39:31 +0200 Subject: [PATCH] Muted partprobe --- archinstall/lib/disk/device_handler.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/archinstall/lib/disk/device_handler.py b/archinstall/lib/disk/device_handler.py index 9acf09990a..da03acce0e 100644 --- a/archinstall/lib/disk/device_handler.py +++ b/archinstall/lib/disk/device_handler.py @@ -3,6 +3,7 @@ import json import os import time +import logging from pathlib import Path from typing import List, Dict, Any, Optional, TYPE_CHECKING @@ -584,7 +585,10 @@ def partprobe(self, path: Optional[Path] = None): debug(f'Calling partprobe: {command}') SysCommand(command) except SysCallError as err: - error(f'"{command}" failed to run: {err}') + if 'have been written, but we have been unable to inform the kernel of the change' in str(err): + log(f"Partprobe was not able to inform the kernel of the new disk state (ignoring error): {err}", fg="gray", level=logging.INFO) + else: + error(f'"{command}" failed to run (continuing anyway): {err}') def _wipe(self, dev_path: Path): """